/* Variables & Design Tokens */

/* --------------------------------------------------------------------------
   1. INLINE STAFF / SERVICE VOICE BUTTON (Matches Message Button)
   -------------------------------------------------------------------------- */

.start-voice-agent-btn.bookingor-voice-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  color: #4a5568 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  padding: 4px 11px !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin-left: 8px !important;
  cursor: pointer !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
  vertical-align: middle !important;
  position: relative !important;
  /* Live Pulsating Indicator Dot */
}

.start-voice-agent-btn.bookingor-voice-btn:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #6366f1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 8px -1px rgba(99, 102, 241, 0.4) !important;
}

.start-voice-agent-btn.bookingor-voice-btn:hover svg {
  color: #6366f1 !important;
  transform: scale(1.08);
}

.start-voice-agent-btn.bookingor-voice-btn:hover .voice-pulse-dot {
  background: #6366f1;
  box-shadow: 0 0 8px #6366f1;
}

.start-voice-agent-btn.bookingor-voice-btn:active {
  transform: translateY(0) !important;
}

.start-voice-agent-btn.bookingor-voice-btn svg {
  color: #6366f1 !important;
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
  transition: all 0.2s ease !important;
}

.start-voice-agent-btn.bookingor-voice-btn .voice-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  position: relative;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
  animation: voiceDotPulse 1.8s infinite ease-in-out;
}

@keyframes voiceDotPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* --------------------------------------------------------------------------
   2. FLOATING CALL DOCK WIDGET (Bottom Right)
   -------------------------------------------------------------------------- */

.bookingor-floating-voice-pill {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999990;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  color: #f8fafc;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 0 15px -3px rgba(99, 102, 241, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
}

.bookingor-floating-voice-pill:hover {
  transform: translateY(-2px) scale(1.03);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 14px 30px -4px rgba(0, 0, 0, 0.5), 0 0 22px 0px rgba(99, 102, 241, 0.4);
  color: #ffffff;
}

.bookingor-floating-voice-pill .pill-orb-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
}

.bookingor-floating-voice-pill .pill-orb-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.bookingor-floating-voice-pill .pill-badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  padding: 2px 7px;
  border-radius: 9999px;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* --------------------------------------------------------------------------
   3. EXPANDABLE GLASSMORPHIC VOICE CALL MODAL
   -------------------------------------------------------------------------- */

.bookingor-voice-modal {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 360px;
  height: 520px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 35px -5px rgba(99, 102, 241, 0.3);
  display: flex;
  flex-direction: column;
  z-index: 999995;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #f8fafc;
  /* Header */
  /* Animated Orb Center Stage */
  /* Transcript Body */
  /* Footer Actions */
}

.bookingor-voice-modal.voice-hidden {
  display: none !important;
}

.bookingor-voice-modal .voice-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bookingor-voice-modal .voice-modal-header .voice-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bookingor-voice-modal .voice-modal-header .voice-header-info .voice-avatar-wrap {
  position: relative;
  width: 36px;
  height: 36px;
}

.bookingor-voice-modal .voice-modal-header .voice-header-info .voice-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.bookingor-voice-modal .voice-modal-header .voice-header-info .voice-avatar-wrap .avatar-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid #0f172a;
}

.bookingor-voice-modal .voice-modal-header .voice-header-info .voice-header-text {
  display: flex;
  flex-direction: column;
}

.bookingor-voice-modal .voice-modal-header .voice-header-info .voice-header-text .voice-agent-title {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.2;
}

.bookingor-voice-modal .voice-modal-header .voice-header-info .voice-header-text .voice-agent-sub {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bookingor-voice-modal .voice-modal-header .voice-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  /* Language Selector Pill */
}

.bookingor-voice-modal .voice-modal-header .voice-header-actions .voice-lang-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 9999px;
  padding: 3px 8px;
  cursor: pointer;
  outline: none;
}

.bookingor-voice-modal .voice-modal-header .voice-header-actions .voice-lang-select option {
  background: #0f172a;
  color: #f8fafc;
}

.bookingor-voice-modal .voice-modal-header .voice-header-actions .voice-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 2px;
  transition: color 0.15s, transform 0.15s;
}

.bookingor-voice-modal .voice-modal-header .voice-header-actions .voice-close-btn:hover {
  color: #ffffff;
  transform: scale(1.1);
}

.bookingor-voice-modal .voice-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 16px 12px;
  position: relative;
}

.bookingor-voice-modal .voice-stage .voice-orb-ring {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.bookingor-voice-modal .voice-stage .voice-orb-ring .voice-orb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.bookingor-voice-modal .voice-stage .voice-orb-ring .voice-orb svg {
  width: 30px;
  height: 30px;
  fill: #ffffff;
}

.bookingor-voice-modal .voice-stage .voice-orb-ring.speaking .voice-orb {
  animation: orbPulseSpeaking 1.2s infinite alternate ease-in-out;
  box-shadow: 0 0 45px rgba(168, 85, 247, 0.8);
}

.bookingor-voice-modal .voice-stage .voice-orb-ring.listening .voice-orb {
  animation: orbPulseListening 1.8s infinite alternate ease-in-out;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.6);
}

.bookingor-voice-modal .voice-stage .voice-status-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bookingor-voice-modal .voice-stage .voice-status-pill.active {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
}

.bookingor-voice-modal .voice-transcript-area {
  flex: 1;
  overflow-y: auto;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bookingor-voice-modal .voice-transcript-area .voice-bubble {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.45;
  max-width: 88%;
  word-break: break-word;
}

.bookingor-voice-modal .voice-transcript-area .voice-bubble .bubble-author {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2px;
  letter-spacing: 0.03em;
  opacity: 0.8;
}

.bookingor-voice-modal .voice-transcript-area .voice-bubble.agent-bubble {
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #f1f5f9;
  align-self: flex-start;
}

.bookingor-voice-modal .voice-transcript-area .voice-bubble.user-bubble {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #ecfdf5;
  align-self: flex-end;
  text-align: right;
}

.bookingor-voice-modal .voice-modal-footer {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  gap: 8px;
}

.bookingor-voice-modal .voice-modal-footer .btn-voice-mute {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.bookingor-voice-modal .voice-modal-footer .btn-voice-mute:hover {
  background: rgba(255, 255, 255, 0.14);
}

.bookingor-voice-modal .voice-modal-footer .btn-voice-mute.is-muted {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.bookingor-voice-modal .voice-modal-footer .btn-voice-hangup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 10px;
  background: #ef4444;
  border: none;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  transition: all 0.2s;
}

.bookingor-voice-modal .voice-modal-footer .btn-voice-hangup:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

@keyframes orbPulseSpeaking {
  0% {
    transform: scale(0.96);
  }

  100% {
    transform: scale(1.12);
  }
}

@keyframes orbPulseListening {
  0% {
    transform: scale(0.98);
  }

  100% {
    transform: scale(1.05);
  }
}

/* Mobile Responsive */

@media (max-width: 480px) {
  .bookingor-floating-voice-pill {
    bottom: 16px;
    right: 16px;
    padding: 8px 14px;
    font-size: 12.5px;
  }

  .bookingor-voice-modal {
    bottom: 10px;
    right: 10px;
    left: 10px;
    width: auto;
    height: 480px;
  }
}


