/* ==========================================================================
   Jivanta Herbal Australia - AI Skin Concierge & Voice Concierge Styling
   Luxury Botanical Skincare Theme: Warm Ivory, Deep Forest Green, Champagne Gold
   ========================================================================== */

/* 1. Floating Collapsed Launcher Button */

.skin-concierge-widget {
  --launcher-size: 72px;
  --launcher-bottom: max(24px, env(safe-area-inset-bottom));
  --chat-gap: 16px;
  --chat-bottom: calc(var(--launcher-bottom) + var(--launcher-size) + var(--chat-gap));
  position: fixed;
  bottom: var(--launcher-bottom);
  right: 24px;
  z-index: 9998;
  font-family: var(
    --font-sans,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif
  );
}


/* Wrapper for circular button + floating label */
.concierge-launcher-wrap {
  position: relative;

  width: var(--launcher-size);
  height: var(--launcher-size);
}


/* Main circular launcher */
.concierge-launcher-btn {
  position: relative;

  width: var(--launcher-size);
  height: var(--launcher-size);

  padding: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #162821;

  border:
    2px solid rgba(194, 164, 120, 0.75);

  box-shadow:
    0 10px 28px rgba(22, 40, 33, 0.25),
    0 3px 8px rgba(0, 0, 0, 0.10);

  cursor: pointer;

  outline: none;

  transition:
    transform 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}


/* Hover */
.concierge-launcher-btn:hover {
  background: #1F3A30;

  border-color: #C2A478;

  transform:
    translateY(-3px)
    scale(1.05);

  box-shadow:
    0 15px 34px rgba(22, 40, 33, 0.30),
    0 5px 14px rgba(194, 164, 120, 0.18);
}


/* When chatbot is open */
.concierge-launcher-btn.active {
  transform: scale(0.94);
  opacity: 0.92;
}

.concierge-launcher-wrap:has(.active) .launcher-floating-label {
  opacity: 0;
}


/* Jivanta flower logo inside circle */
.launcher-flower-logo {
  width: 43px;
  height: 43px;

  object-fit: contain;

  display: block;

  pointer-events: none;

  transition:
    transform 0.3s ease;
}


.concierge-launcher-btn:hover
.launcher-flower-logo {
  transform: scale(1.08);
}


/* Floating Ask Jivanta label */
.launcher-floating-label {
  position: absolute;

  right: 48px;
  bottom: 55px;

  padding:
    7px 13px;

  background:
    rgba(22, 40, 33, 0.96);

  color: #FAF8F5;

  border:
    1px solid rgba(194, 164, 120, 0.55);

  border-radius: 999px;

  font-size: 0.76rem;

  font-weight: 600;

  line-height: 1;

  letter-spacing: 0.025em;

  white-space: nowrap;

  box-shadow:
    0 7px 18px rgba(22, 40, 33, 0.18);

  pointer-events: none;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}


/* Small premium movement on hover */
.concierge-launcher-wrap:hover
.launcher-floating-label {
  transform:
    translate(-2px, -2px);
}


/* Small notification dot */
.launcher-ping {
  position: absolute;

  top: 5px;
  right: 5px;

  width: 9px;
  height: 9px;

  background: #C2A478;

  border-radius: 50%;

  box-shadow:
    0 0 0 2px #162821;

  animation:
    launcherPulse 2.4s infinite ease-in-out;
}


@keyframes launcherPulse {

  0% {
    transform: scale(0.9);

    box-shadow:
      0 0 0 0
      rgba(194, 164, 120, 0.60);
  }

  70% {
    transform: scale(1.15);

    box-shadow:
      0 0 0 7px
      rgba(194, 164, 120, 0);
  }

  100% {
    transform: scale(0.9);

    box-shadow:
      0 0 0 0
      rgba(194, 164, 120, 0);
  }

}

/* 2. Expanded Chatbot Window */
.concierge-window {
  position: fixed;
  bottom: var(--chat-bottom);
  right: 24px;
  width: 410px;
  max-width: calc(100vw - 32px);
  height: 640px;
  max-height: calc(100dvh - var(--chat-bottom) - max(16px, env(safe-area-inset-top)));
  background: #FAF8F5;
  border: 1px solid rgba(198, 169, 114, 0.35);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(22, 40, 33, 0.2), 0 8px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.96);
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}

.concierge-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Header */
.concierge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  background: #162821;
  color: #FAF8F5;
  border-bottom: 1px solid rgba(198, 169, 114, 0.25);
}

.concierge-header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.concierge-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(194, 164, 120, 0.35) 0%, rgba(22, 40, 33, 0.8) 100%);
  border: 1px solid rgba(194, 164, 120, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.concierge-title {
  font-family: var(--font-serif, serif);
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  color: #FAF8F5;
  letter-spacing: 0.02em;
}

.concierge-subtitle {
  font-size: 0.7rem;
  color: #C2A478;
  margin: 0.1rem 0 0;
  letter-spacing: 0.02em;
}

.concierge-header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.concierge-header-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FAF8F5;
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
}

.concierge-header-btn:hover {
  background: rgba(194, 164, 120, 0.25);
  border-color: #C2A478;
  color: #C2A478;
}

.concierge-header-btn.close-btn {
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.2rem 0.55rem;
}

.voice-trigger-btn {
  background: linear-gradient(135deg, rgba(194, 164, 120, 0.3), rgba(22, 40, 33, 0.4));
  border-color: rgba(194, 164, 120, 0.45);
  color: #C2A478;
  font-weight: 600;
}

.voice-trigger-btn:hover {
  background: #C2A478;
  color: #162821;
}

/* Contextual Product Banner */
.concierge-product-banner {
  background: #F3ECE2;
  border-bottom: 1px solid rgba(198, 169, 114, 0.3);
  padding: 0.6rem 1rem;
}

.banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.banner-info {
  display: flex;
  flex-direction: column;
}

.banner-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8C6A2E;
}

.banner-info strong {
  font-size: 0.8rem;
  color: #162821;
}

.banner-ask-btn {
  background: #162821;
  color: #FAF8F5;
  border: none;
  border-radius: 9999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.banner-ask-btn:hover {
  background: #A87E2B;
}

/* Messages Body */
.concierge-messages-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #FAF8F5;
  scroll-behavior: smooth;
}

.concierge-msg {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  max-width: 90%;
  animation: msgFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.bot-msg {
  align-self: flex-start;
}

.user-msg {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.bot-msg .msg-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #EDE6D8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.msg-bubble {
  padding: 0.85rem 1.05rem;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.52;
}

.bot-msg .msg-bubble {
  background: #FFFFFF;
  color: #232A26;
  border: 1px solid rgba(198, 169, 114, 0.25);
  border-top-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(22, 40, 33, 0.04);
}

.user-msg .msg-bubble {
  background: #162821;
  color: #FAF8F5;
  border-top-right-radius: 4px;
}

.msg-text strong {
  color: #162821;
}

.user-msg .msg-text strong {
  color: #FAF8F5;
}

/* Typing Indicator */
.typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: #C2A478;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}

/* Interactive Ritual Card inside Chat */
.concierge-ritual-card {
  margin-top: 0.85rem;
  background: #FBF9F5;
  border: 1px solid rgba(198, 169, 114, 0.35);
  border-radius: 12px;
  padding: 1rem;
}

.ritual-header {
  border-bottom: 1px solid rgba(198, 169, 114, 0.2);
  padding-bottom: 0.65rem;
  margin-bottom: 0.85rem;
}

.ritual-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #8C6A2E;
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 0.2rem;
}

.ritual-title {
  font-family: var(--font-serif, serif);
  font-size: 0.98rem;
  margin: 0;
  color: #162821;
}

.ritual-meta {
  font-size: 0.74rem;
  color: #63736B;
  margin: 0.2rem 0 0;
}

.ritual-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.ritual-step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #FFFFFF;
  border: 1px solid rgba(198, 169, 114, 0.2);
  border-radius: 8px;
  padding: 0.75rem;
  position: relative;
}

.step-num {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #A87E2B;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.step-img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.step-prod-details {
  flex: 1;
}

.step-prod-details strong {
  display: block;
  font-size: 0.82rem;
  color: #162821;
  line-height: 1.25;
}

.step-prod-price {
  font-size: 0.78rem;
  font-weight: 700;
  color: #A87E2B;
}

.step-note {
  font-size: 0.72rem;
  color: #55665E;
  margin: 0.25rem 0 0.45rem;
  line-height: 1.35;
}

.step-actions {
  display: flex;
  gap: 0.4rem;
}

.step-add-btn {
  background: #162821;
  color: #FAF8F5;
  border: none;
  border-radius: 4px;
  padding: 0.3rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.step-add-btn:hover {
  background: #A87E2B;
}

.step-view-btn {
  background: transparent;
  color: #162821;
  border: 1px solid rgba(22, 40, 33, 0.2);
  border-radius: 4px;
  padding: 0.3rem 0.65rem;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.step-view-btn:hover {
  border-color: #162821;
  background: #FAF8F5;
}

.ritual-footer {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(198, 169, 114, 0.2);
  font-size: 0.72rem;
  color: #63736B;
  text-align: center;
}

/* Product Mini Grid */
.concierge-product-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.concierge-mini-product {
  background: #FFFFFF;
  border: 1px solid rgba(198, 169, 114, 0.25);
  border-radius: 8px;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mini-prod-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.4rem;
}

.mini-prod-info strong {
  display: block;
  font-size: 0.76rem;
  color: #162821;
  line-height: 1.25;
  height: 28px;
  overflow: hidden;
}

.mini-prod-price {
  font-size: 0.74rem;
  font-weight: 700;
  color: #A87E2B;
  margin: 0.2rem 0 0.45rem;
  display: block;
}

.mini-prod-btns {
  display: flex;
  gap: 0.3rem;
  width: 100%;
}

.mini-add-btn {
  flex: 1;
  background: #162821;
  color: #FFF;
  border: none;
  border-radius: 4px;
  padding: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
}

.mini-add-btn:hover { background: #A87E2B; }

.mini-view-btn {
  background: transparent;
  border: 1px solid rgba(22, 40, 33, 0.2);
  border-radius: 4px;
  padding: 0.3rem 0.5rem;
  font-size: 0.68rem;
  cursor: pointer;
}

/* Comparison Box */
.concierge-comparison-box {
  margin-top: 0.75rem;
  background: #FAF8F5;
  border: 1px solid rgba(198, 169, 114, 0.3);
  border-radius: 10px;
  padding: 0.85rem;
}

.comparison-header strong {
  font-family: var(--font-serif, serif);
  font-size: 0.95rem;
  color: #162821;
}

.comparison-intro {
  font-size: 0.75rem;
  color: #63736B;
  margin: 0.2rem 0 0.65rem;
}

.comparison-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.comp-col {
  background: #FFFFFF;
  border: 1px solid rgba(198, 169, 114, 0.2);
  border-radius: 8px;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
}

.comp-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  margin-bottom: 0.3rem;
  align-self: flex-start;
}

.comp-badge.day { background: #F6F1E5; color: #8C6A2E; }
.comp-badge.night { background: #EAEFF2; color: #2C485A; }

.comp-col strong {
  font-size: 0.8rem;
  color: #162821;
  margin-bottom: 0.2rem;
}

.comp-col p {
  font-size: 0.72rem;
  color: #55665E;
  margin: 0 0 0.3rem;
  line-height: 1.35;
  flex: 1;
}

.comp-col small {
  font-size: 0.68rem;
  color: #7E8D86;
  margin-bottom: 0.45rem;
}

.comp-buy-btn {
  background: #162821;
  color: #FFF;
  border: none;
  border-radius: 4px;
  padding: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.comp-buy-btn:hover { background: #A87E2B; }

.comparison-footer {
  margin-top: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(198, 169, 114, 0.2);
  font-size: 0.74rem;
  color: #55665E;
}

/* Order Lookup Card */
.concierge-order-card {
  margin-top: 0.75rem;
  background: #FFFFFF;
  border: 1px solid rgba(198, 169, 114, 0.3);
  border-radius: 10px;
  padding: 0.85rem;
}

.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #EBE4D8;
  margin-bottom: 0.6rem;
}

.order-status-badge {
  background: #E8F2EC;
  color: #2E5A44;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
}

.order-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
}

.order-field span { color: #63736B; }
.order-field strong { color: #162821; }

.order-items-list {
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px dashed #E2DBD0;
  color: #55665E;
}

/* Human Handoff Card */
.concierge-handoff-card {
  margin-top: 0.75rem;
  background: #FFFFFF;
  border: 1px solid rgba(198, 169, 114, 0.3);
  border-radius: 10px;
  padding: 0.85rem;
}

.handoff-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: #162821;
  margin-bottom: 0.35rem;
}

.handoff-btn.email-btn {
  display: block;
  background: #162821;
  color: #FFF;
  text-decoration: none;
  text-align: center;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  margin: 0.5rem 0;
  transition: all 0.2s ease;
}

.handoff-btn.email-btn:hover { background: #A87E2B; }

.handoff-phone-box {
  font-size: 0.72rem;
  color: #63736B;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

/* Quick Action Chips Tray */
.concierge-chips-tray {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.55rem 1.15rem;
  background: #FAF8F5;
  border-top: 1px solid rgba(198, 169, 114, 0.15);
  scrollbar-width: none;
}

.concierge-chips-tray::-webkit-scrollbar {
  display: none;
}

.concierge-chip-btn {
  background: #FFFFFF;
  color: #162821;
  border: 1px solid rgba(198, 169, 114, 0.4);
  border-radius: 9999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 4px rgba(22, 40, 33, 0.04);
}

.concierge-chip-btn:hover {
  background: #162821;
  color: #FAF8F5;
  border-color: #162821;
  transform: translateY(-1px);
}

/* Footer Input */
.concierge-footer {
  padding: 0.75rem 1.15rem;
  background: #FAF8F5;
  border-top: 1px solid rgba(198, 169, 114, 0.25);
}

.concierge-input-form {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid rgba(198, 169, 114, 0.4);
  border-radius: 9999px;
  padding: 0.25rem 0.35rem 0.25rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.concierge-input-form:focus-within {
  border-color: #A87E2B;
  box-shadow: 0 0 0 3px rgba(168, 126, 43, 0.15);
}

.concierge-input-field {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 0.84rem;
  color: #162821;
}

.concierge-input-field::placeholder {
  color: #8C9992;
}

.concierge-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #162821;
  color: #FAF8F5;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.concierge-send-btn:hover {
  background: #A87E2B;
  transform: scale(1.06);
}

.concierge-disclaimer-note {
  font-size: 0.65rem;
  color: #8C9992;
  text-align: center;
  margin-top: 0.45rem;
}

.concierge-disclaimer-note a {
  color: #A87E2B;
  text-decoration: underline;
}

/* 3. Luxury Voice Agent Call Overlay Modal */
.voice-call-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.voice-call-overlay.open {
  opacity: 1;
  visibility: visible;
}

.voice-call-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.voice-call-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: radial-gradient(circle at center, #1E382D 0%, #11201A 100%);
  border: 1px solid rgba(198, 169, 114, 0.4);
  border-radius: 24px;
  padding: 2rem 2.2rem 1.8rem;
  color: #FAF8F5;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(194, 164, 120, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.voice-call-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 1.5rem;
}

.voice-brand-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif, serif);
  font-size: 0.95rem;
  color: #C2A478;
  letter-spacing: 0.04em;
}

.voice-close-icon {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #FAF8F5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.voice-close-icon:hover { background: rgba(255, 255, 255, 0.2); }

/* Central Pulsing Audio Aura */
.voice-visualizer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1rem 0 1.5rem;
}

.voice-visualizer-aura {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.aura-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(194, 164, 120, 0.35);
  transition: all 0.3s ease;
}

.aura-circle.c1 { width: 100px; height: 100px; }
.aura-circle.c2 { width: 125px; height: 125px; }
.aura-circle.c3 { width: 148px; height: 148px; }

.voice-visualizer-aura.speaking .aura-circle.c1 {
  animation: auraPulse 1.8s infinite ease-out;
  border-color: rgba(212, 175, 55, 0.7);
}
.voice-visualizer-aura.speaking .aura-circle.c2 {
  animation: auraPulse 1.8s infinite 0.4s ease-out;
  border-color: rgba(212, 175, 55, 0.5);
}
.voice-visualizer-aura.speaking .aura-circle.c3 {
  animation: auraPulse 1.8s infinite 0.8s ease-out;
  border-color: rgba(212, 175, 55, 0.3);
}

.voice-visualizer-aura.listening .aura-circle {
  border-color: rgba(144, 238, 144, 0.5);
  animation: listeningBreathe 2s infinite ease-in-out;
}

@keyframes auraPulse {
  0% { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

@keyframes listeningBreathe {
  0%, 100% { transform: scale(0.95); opacity: 0.4; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

.aura-core {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle, #C2A478 0%, #8C6A2E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(194, 164, 120, 0.5);
  z-index: 2;
}

.aura-lotus {
  font-size: 2rem;
}

.voice-status-tag {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #C2A478;
  background: rgba(194, 164, 120, 0.15);
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 0.6rem;
}

.voice-assist-hint {
  font-size: 0.78rem;
  color: #A3B5AC;
  max-width: 340px;
  line-height: 1.4;
  margin: 0;
}

/* SMS / Link Dispatch Box in Voice */
.voice-sms-dispatch-box {
  width: 100%;
  margin-bottom: 1.25rem;
  animation: msgFadeIn 0.3s ease;
}

.sms-dispatch-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(194, 164, 120, 0.5);
  border-radius: 12px;
  padding: 1rem;
  text-align: left;
}

.sms-dispatch-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.sms-dispatch-header strong {
  display: block;
  font-size: 0.86rem;
  color: #FAF8F5;
}

.sms-dispatch-header small {
  font-size: 0.7rem;
  color: #C2A478;
}

.sms-item-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}

.sms-prod-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
}

.sms-item-info strong {
  display: block;
  font-size: 0.82rem;
  color: #FAF8F5;
}

.sms-item-info span {
  font-size: 0.72rem;
  color: #C2A478;
}

.sms-actions {
  display: flex;
  gap: 0.5rem;
}

.sms-open-link-btn {
  flex: 1;
  background: #C2A478;
  color: #162821;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
  padding: 0.45rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.sms-open-link-btn:hover { background: #D4AF37; }

.sms-copy-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #FFF;
  border: none;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.76rem;
  cursor: pointer;
}

/* Live Transcript Log */
.voice-transcript-wrapper {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.transcript-title {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #C2A478;
  margin-bottom: 0.45rem;
}

.voice-transcript-log {
  max-height: 100px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.78rem;
  line-height: 1.4;
}

.voice-transcript-row.agent .transcript-sender {
  color: #C2A478;
  font-weight: 600;
}

.voice-transcript-row.user .transcript-sender {
  color: #8FD9B6;
  font-weight: 600;
}

/* Fallback Text Input */
.voice-fallback-form {
  display: flex;
  width: 100%;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.voice-fallback-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  color: #FFF;
  outline: none;
}

.voice-fallback-input:focus {
  border-color: #C2A478;
}

.voice-fallback-send-btn {
  background: #C2A478;
  color: #162821;
  border: none;
  border-radius: 9999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

/* Voice Call Action Controls */
.voice-call-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
}

.voice-ctrl-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FAF8F5;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.68rem;
  font-weight: 600;
}

.voice-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.voice-ctrl-btn.end-call-btn {
  background: #C0392B;
  border-color: #E74C3C;
}

.voice-ctrl-btn.end-call-btn:hover {
  background: #D94436;
}

/* 4. Analytics Intelligence Modal */
.concierge-analytics-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.concierge-analytics-modal.open {
  opacity: 1;
  visibility: visible;
}

.analytics-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 40, 33, 0.75);
  backdrop-filter: blur(8px);
}

.analytics-panel {
  position: relative;
  width: 100%;
  max-width: 680px;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow-y: auto;
}

.analytics-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid #EDE6D8;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.analytics-header h3 {
  font-family: var(--font-serif, serif);
  font-size: 1.35rem;
  color: #162821;
  margin: 0;
}

.analytics-header p {
  font-size: 0.8rem;
  color: #63736B;
  margin: 0.2rem 0 0;
}

.analytics-close-btn {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #162821;
}

.analytics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.analytics-kpi-card {
  background: #FBF9F5;
  border: 1px solid rgba(198, 169, 114, 0.3);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.kpi-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: #162821;
  font-family: var(--font-serif, serif);
}

.kpi-label {
  font-size: 0.72rem;
  color: #63736B;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.analytics-splits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.analytics-subcard {
  background: #FAF8F5;
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid #EBE4D8;
}

.analytics-subcard h4 {
  font-size: 0.85rem;
  color: #162821;
  margin: 0 0 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #E2DBD0;
}

.analytics-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  padding: 0.3rem 0;
  border-bottom: 1px dashed #EDE6D8;
}

.analytics-row strong { color: #A87E2B; }

.analytics-footer {
  font-size: 0.72rem;
  color: #7E8D86;
  text-align: center;
  padding-top: 0.85rem;
  border-top: 1px solid #EDE6D8;
}

/* Toast Message */
.concierge-toast {
  position: fixed;
  bottom: 96px;
  right: 28px;
  background: #162821;
  color: #FAF8F5;
  border: 1px solid #C2A478;
  border-radius: 8px;
  padding: 0.65rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 10010;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
  pointer-events: none;
}

.concierge-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* 5. Mobile Responsiveness */
@media (max-width: 600px) {
  .concierge-window {
    bottom: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .skin-concierge-widget {
  bottom: 18px;
  right: 18px;
}


.concierge-launcher-wrap {
  width: 20px;
  height: 20px;
}


.concierge-launcher-btn {
  width: 20px;
  height: 20px;
}


.launcher-flower-logo {
  width: 20px;
  height: 20px;
}


.launcher-floating-label {
  right: 30px;
  bottom: 30px;

  padding:
    6px 10px;

  font-size: 0.68rem;
  }

  .analytics-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .analytics-splits {
    grid-template-columns: 1fr;
  }

  
}

/* Live AI chat and the compact AI Property voice demo. */
.skin-concierge-widget [hidden] { display: none !important; }
.concierge-window { width: 440px; }
.concierge-text-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.concierge-conversation { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.concierge-text-panel > .concierge-footer { flex-shrink: 0; }
.concierge-text-panel .concierge-messages-body { min-height: 0; }
.concierge-mode-tabs { display: flex; gap: 6px; padding: 10px 16px; background: #f3efe7; flex-shrink: 0; border-bottom: 1px solid #e4ded2; }
.concierge-mode-tabs button { flex: 1; border: 0; border-radius: 8px; padding: 9px; font: 600 14px 'Plus Jakarta Sans', sans-serif; color: #4d6255; background: transparent; cursor: pointer; }
.concierge-mode-tabs button[aria-selected="true"] { color: #fff; background: #24483a; }
.concierge-voice-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #faf8f5; }
.concierge-demo-frame { width: 100%; flex: 1; min-height: 0; border: 0; background: #faf8f5; }
.concierge-voice-help { display: grid; gap: 5px; padding: 10px 16px; font-size: 12px; line-height: 1.5; border-top: 1px solid #e4ded2; color: #526357; }
.concierge-voice-help a { color: #24483a; text-decoration: underline; }
.concierge-voice-status { padding: 16px; font-size: 14px; line-height: 1.6; }
.concierge-voice-retry { margin: 0 16px 16px; padding: 12px; border: 1px solid #24483a; border-radius: 8px; background: white; color: #24483a; cursor: pointer; }
.concierge-msg .msg-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.65; }
.concierge-error { margin: 0 16px 8px; padding: 10px; background: #fff1e8; border: 1px solid #eed3b9; border-radius: 8px; font-size: 13px; line-height: 1.5; color: #6b3f27; }
.concierge-error button { display: block; border: 0; background: transparent; text-decoration: underline; color: inherit; padding: 8px 0 0; cursor: pointer; font: inherit; }
.concierge-thinking { padding: 4px 0 12px; font-size: 13px; color: #526357; }
.concierge-product-banner { padding: 10px 16px; font-size: 13px; }
.concierge-input-field { min-width: 0; font-size: 16px; }
.concierge-send-btn { font-size: 24px; }
.concierge-send-btn:disabled { opacity: .45; cursor: wait; }
.concierge-launcher-btn { touch-action: none; }
.skin-concierge-widget :focus-visible { outline: 2px solid #b28b43; outline-offset: 3px; }
/* The rounded form supplies the message field's focus indicator. */
.skin-concierge-widget .concierge-input-field:focus-visible { outline: none; }
@media (max-width: 480px) {
  .concierge-window { left: 12px; right: 12px; bottom: 84px; width: auto; max-width: none; max-height: calc(100dvh - 100px); }
  .concierge-header { padding: 14px; }
  .concierge-mode-tabs button { min-height: 40px; }
}

/* Hide the concierge while the shopping bag drawer is open so it doesn't cover the checkout buttons */
body.cart-open .skin-concierge-widget {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Native voice panel, served entirely as static files. */
.concierge-mode-tabs [hidden], .website-voice [hidden] { display: none !important; }
.website-voice { padding: 24px 22px; overflow-y: auto; text-align: center; color: #24483a; }
.website-voice-orb { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: #24483a; color: #d3af69; font-size: 40px; box-shadow: 0 0 0 8px #24483a0d; }
.website-voice-orb[data-status="speaking"] { animation: voice-orb-pulse 1.5s ease-in-out infinite; }
.website-voice h3 { font-family: 'Playfair Display', serif; font-size: 24px; margin: 0 0 10px; }
.website-voice-intro { font-size: 13px; line-height: 1.7; margin: 0 0 20px; }
.website-voice-status { font-size: 14px; font-weight: 600; line-height: 1.6; min-height: 24px; }
.website-voice-detail { font-size: 11px; line-height: 1.5; min-height: 18px; margin: 8px 0 16px; }
.website-voice-meter { height: 4px; background: #e3e8e0; max-width: 160px; margin: 12px auto 0; border-radius: 4px; overflow: hidden; }
.website-voice-meter span { display: block; height: 100%; width: 0; background: #b59557; transition: width 100ms; }
.website-voice-consent { display: flex; align-items: flex-start; gap: 10px; text-align: left; font-size: 12px; line-height: 1.6; margin: 18px 0; cursor: pointer; }
.website-voice-consent input { margin-top: 4px; flex-shrink: 0; accent-color: #24483a; }
.website-voice button { width: 100%; padding: 13px; border: 1px solid #24483a; border-radius: 8px; font: 600 14px 'Plus Jakarta Sans', sans-serif; cursor: pointer; }
.website-voice-start { background: #24483a; color: white; }
.website-voice-stop, .website-voice-retry { background: white; color: #24483a; }
.website-voice button:disabled { opacity: .45; cursor: not-allowed; }
.website-voice-privacy { font-size: 10px; line-height: 1.7; color: #69776d; margin: 18px 0 0; }
@keyframes voice-orb-pulse { 50% { box-shadow: 0 0 0 14px #24483a12; } }
@media (prefers-reduced-motion: reduce) { .website-voice-orb { animation: none !important; } }

/* Conversation modes live below the composer; text is the default. */
.concierge-mode-tabs { order: 3; border-top: 1px solid #e4ded2; border-bottom: 0; padding: 8px 16px; }
.concierge-mode-tabs button { font-size: 12px; padding: 8px; }
.concierge-quiz-link { display: block; margin-top: 14px; padding: 11px 12px; border: 1px solid #b6975f; border-radius: 8px; color: #24483a; background: #f5f0e3; text-decoration: none; font-size: 12px; font-weight: 600; line-height: 1.5; }
.concierge-quiz-link:hover { background: #ece4d2; }
.concierge-msg[data-interrupted="true"] .msg-bubble { border: 1px solid #d4aa81; }

.concierge-disclaimer-note details { margin-top: 3px; }
.concierge-disclaimer-note summary { cursor: pointer; }
.concierge-disclaimer-note details p { margin: 5px 0 0; line-height: 1.5; }
.concierge-chip-btn:disabled { opacity: .45; cursor: not-allowed; }
.concierge-send-btn:disabled { cursor: not-allowed; }

/* Use the same brand flower as the launcher in the header and every reply. */
.concierge-avatar img, .bot-msg .msg-avatar img { display: block; width: 75%; height: 75%; object-fit: contain; }
.concierge-partial-note { font-size: 0.75rem; color: #963d26; margin: 0.6rem 0 0; }
