/* SIPTRUNK Contact Widget — styles */

#scw-root {
  position: fixed;
  bottom: 20px;
  z-index: 999999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Space Grotesk", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
#scw-root.scw-right { right: 20px; }
#scw-root.scw-left  { left: 20px; align-items: flex-start; }

/* ---------- Launcher ---------- */
.scw-launcher {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--scw-color, #1A237E);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 13px 22px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.scw-launcher:hover { transform: translateY(-3px); opacity: 0.93; }
.scw-launcher-icon { display: flex; }

/* ---------- Menu ---------- */
.scw-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
  min-width: 210px;
}
.scw-menu.scw-open { display: flex; }
.scw-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--scw-color, #1A237E);
  text-align: left;
  transition: background 0.15s ease;
}
.scw-item:hover { background: rgba(26, 35, 126, 0.08); }
.scw-item svg { color: var(--scw-accent, #FF6D00); flex-shrink: 0; }

/* ---------- Panneau d'appel flottant ---------- */
.scw-panel {
  display: none;
  flex-direction: column;
  width: 400px;
  max-width: calc(100vw - 32px);
  height: 620px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.35);
}
.scw-panel.scw-open { display: flex; }
.scw-panel.scw-min .scw-panel-body { display: none; }
.scw-panel.scw-min { height: auto; width: 260px; }

.scw-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--scw-color, #1A237E);
  color: #fff;
  padding: 10px 12px;
}
.scw-panel-title {
  font-size: 14px;
  font-weight: 700;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scw-panel-live {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #B9F6CA;
}
.scw-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #00E676;
  animation: scw-pulse 1.2s infinite;
}
@keyframes scw-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.scw-hbtn {
  background: rgba(255, 255, 255, 0.14);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 8px;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.scw-hbtn:hover { background: rgba(255, 255, 255, 0.28); }

.scw-panel-body { flex: 1; background: #F4F5FA; }
.scw-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ---------- Fallback iframe bloquée ---------- */
.scw-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  padding: 24px;
  text-align: center;
  color: #333;
  font-size: 14px;
}
.scw-fallback-btn {
  background: var(--scw-accent, #FF6D00);
  color: #fff !important;
  text-decoration: none !important;
  padding: 11px 22px;
  border-radius: 50px;
  font-weight: 700;
}

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
  .scw-panel {
    width: calc(100vw - 24px);
    height: calc(100vh - 110px);
  }
  .scw-launcher-label { display: none; }
  .scw-launcher { padding: 15px; }
}
