/* ══════════════════════════════════════════════════════════
   MemTrex AI Concierge — premium "assistant-hero" UI
   Centered modal panel · voice-ready · two-state stage
   ══════════════════════════════════════════════════════════ */

/* z-index sits BELOW cart drawer so cart wins when triggered from chat */

/* ═══ Floating launcher (bottom-right) ═══ */
.mxt-chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 7000;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  background: var(--bg-page, #F2EFEA);
  color: var(--text-primary, #1F2124);
  border: 1px solid var(--border, #E5E0D8);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(20, 18, 16, 0.18), 0 2px 6px rgba(20, 18, 16, 0.08);
  cursor: pointer;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: transform .25s cubic-bezier(.22,.61,.36,1),
              box-shadow .25s ease,
              background .15s ease;
}
.mxt-chat-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(20, 18, 16, 0.22), 0 4px 10px rgba(20, 18, 16, 0.10);
}
.mxt-chat-launcher:focus-visible {
  outline: 2px solid var(--brand-primary, #C62D2D);
  outline-offset: 3px;
}
.mxt-chat-launcher.hidden {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
}
.mxt-chat-launcher__avatar {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-primary, #C62D2D) 0%, var(--brand-terrain, #2A3B2A) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.mxt-chat-launcher__avatar::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 2px solid var(--brand-primary, #C62D2D);
  opacity: 0;
  animation: mxt-pulse-ring 2.6s ease-out infinite;
}
@keyframes mxt-pulse-ring {
  0%   { opacity: 0.7; transform: scale(1);    }
  100% { opacity: 0;   transform: scale(1.35); }
}
.mxt-chat-launcher__avatar svg {
  width: 20px; height: 20px;
  fill: #fff;
}
.mxt-chat-launcher__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  line-height: 1;
}
.mxt-chat-launcher__title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary, #1F2124);
}
.mxt-chat-launcher__sub {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary, #6B6760);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.mxt-chat-launcher__sub::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 999px;
  background: #3FB07A;
  box-shadow: 0 0 0 3px rgba(63, 176, 122, 0.18);
}
@keyframes mxt-nudge {
  0%, 100% { box-shadow: 0 12px 32px rgba(20,18,16,0.18), 0 0 0 0 rgba(198, 45, 45, 0); }
  50%      { box-shadow: 0 12px 32px rgba(20,18,16,0.18), 0 0 0 14px rgba(198, 45, 45, 0.20); }
}
.mxt-chat-launcher.nudge { animation: mxt-nudge 1.4s ease-in-out 2; }

/* ═══ Backdrop ═══ */
.mxt-chat-backdrop {
  position: fixed;
  inset: 0;
  z-index: 7001;
  background: radial-gradient(ellipse at 70% 30%, rgba(42, 59, 42, 0.45) 0%, rgba(20, 18, 16, 0.78) 90%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
}
.mxt-chat-backdrop.open { opacity: 1; visibility: visible; }

/* ═══ Panel container (centered, large, two stages) ═══ */
.mxt-chat-shell {
  position: fixed;
  inset: 0;
  z-index: 7002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  pointer-events: none;
}
.mxt-chat-shell.open { pointer-events: auto; }

.mxt-chat-panel {
  width: min(720px, 100%);
  max-height: min(880px, calc(100vh - 64px));
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(242,239,234,0.92) 100%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 28px;
  box-shadow:
    0 40px 90px rgba(20, 18, 16, 0.35),
    0 16px 40px rgba(20, 18, 16, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.5);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity .35s cubic-bezier(.22,.61,.36,1),
              transform .35s cubic-bezier(.22,.61,.36,1);
}
.mxt-chat-shell.open .mxt-chat-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Decorative background tints (the elite "hero" feel) */
.mxt-chat-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%,  rgba(198, 45, 45, 0.10) 0%, transparent 32%),
    radial-gradient(circle at 88% 14%, rgba(42, 59, 42, 0.10) 0%, transparent 30%),
    radial-gradient(circle at 50% 110%, rgba(198, 45, 45, 0.06) 0%, transparent 50%);
  z-index: 0;
}

/* ═══ Header ═══ */
.mxt-chat-header {
  position: relative;
  z-index: 2;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(229, 224, 216, 0.6);
  flex-shrink: 0;
}
.mxt-chat-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.mxt-chat-header__avatar {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-primary, #C62D2D) 0%, var(--brand-terrain, #2A3B2A) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mxt-chat-header__avatar svg { width: 20px; height: 20px; fill: #fff; }
.mxt-chat-header__copy {
  display: flex; flex-direction: column; gap: 2px; line-height: 1;
}
.mxt-chat-header__title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary, #1F2124);
  letter-spacing: -0.01em;
}
.mxt-chat-header__sub {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary, #6B6760);
  display: inline-flex; align-items: center; gap: 6px;
}
.mxt-chat-header__sub::before {
  content: '';
  width: 6px; height: 6px; border-radius: 999px;
  background: #3FB07A;
  box-shadow: 0 0 0 3px rgba(63, 176, 122, 0.18);
}
.mxt-chat-header__actions {
  display: inline-flex; align-items: center; gap: 8px;
}
.mxt-chat-iconbtn {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border, #E5E0D8);
  color: var(--text-secondary, #6B6760);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.mxt-chat-iconbtn:hover {
  background: var(--bg-page, #F2EFEA);
  color: var(--text-primary, #1F2124);
}
.mxt-chat-iconbtn svg { width: 16px; height: 16px; }
.mxt-chat-iconbtn--human {
  width: auto;
  padding: 0 14px;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  gap: 6px;
}

/* ═══ Stage (the swappable inner content area) ═══ */
.mxt-chat-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(20,18,16,0.16) transparent;
}
.mxt-chat-stage::-webkit-scrollbar { width: 6px; }
.mxt-chat-stage::-webkit-scrollbar-track { background: transparent; }
.mxt-chat-stage::-webkit-scrollbar-thumb {
  background: rgba(20,18,16,0.16);
  border-radius: 3px;
}

/* ─── LANDING state (no messages yet) ─── */
.mxt-chat-landing {
  padding: 36px 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.mxt-chat-landing__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-primary, #C62D2D);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mxt-chat-landing__eyebrow::before,
.mxt-chat-landing__eyebrow::after {
  content: '';
  width: 24px; height: 1px;
  background: currentColor;
  opacity: 0.45;
}
.mxt-chat-landing__greeting {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: 800;
  font-size: clamp(26px, 4.4vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-primary, #1F2124);
  max-width: 540px;
  margin: 0;
}
.mxt-chat-landing__greeting em {
  font-style: italic;
  color: var(--brand-primary, #C62D2D);
}
.mxt-chat-landing__lede {
  font-size: 14.5px;
  color: var(--text-secondary, #6B6760);
  line-height: 1.55;
  max-width: 460px;
  margin: 0;
}
.mxt-chat-landing__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}
.mxt-chat-landing__card {
  padding: 14px 16px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--border, #E5E0D8);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.mxt-chat-landing__card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-primary, #C62D2D);
  background: rgba(255,255,255,0.92);
}
.mxt-chat-landing__card-icon {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--brand-primary, #C62D2D) 12%, transparent);
  color: var(--brand-primary, #C62D2D);
  border-radius: 8px;
  margin-bottom: 4px;
}
.mxt-chat-landing__card-icon svg { width: 14px; height: 14px; }
.mxt-chat-landing__card-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-primary, #1F2124);
  letter-spacing: -0.01em;
}
.mxt-chat-landing__card-sub {
  font-size: 11.5px;
  color: var(--text-secondary, #6B6760);
  line-height: 1.4;
}

/* Trust strip on landing */
.mxt-chat-landing__trust {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light, #9A968D);
}
.mxt-chat-landing__trust span { display: inline-flex; align-items: center; gap: 5px; }

/* ─── CONVERSATION state ─── */
.mxt-chat-conv {
  padding: 20px 24px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mxt-msg {
  padding: 13px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.55;
  max-width: 88%;
  word-wrap: break-word;
  animation: mxt-msg-in .28s cubic-bezier(.22,.61,.36,1);
}
@keyframes mxt-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mxt-msg strong { font-weight: 700; color: var(--text-primary, #1F2124); }
.mxt-msg ul { margin: 6px 0 0; padding-left: 1.1rem; }
.mxt-msg li { margin: 2px 0; }

.mxt-msg--bot {
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(229, 224, 216, 0.7);
  color: var(--text-primary, #1F2124);
  align-self: flex-start;
  border-bottom-left-radius: 6px;
}
.mxt-msg--user {
  background: linear-gradient(135deg, var(--brand-primary, #C62D2D) 0%, color-mix(in srgb, var(--brand-primary, #C62D2D) 78%, #000) 100%);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  box-shadow: 0 6px 16px rgba(198, 45, 45, 0.22);
}
.mxt-msg--system {
  align-self: center;
  background: transparent;
  color: var(--text-secondary, #6B6760);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 0;
  max-width: 100%;
  border-radius: 0;
}

/* CTA buttons inside messages */
.mxt-msg-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 9px 16px;
  background: var(--brand-primary, #C62D2D);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, filter .15s ease;
  box-shadow: 0 4px 12px rgba(198, 45, 45, 0.22);
}
.mxt-msg-cta:hover { transform: translateY(-1px); filter: brightness(1.06); }
.mxt-msg-cta:disabled { background: var(--brand-terrain, #2A3B2A); cursor: default; box-shadow: none; }
.mxt-msg-cta--outline {
  background: transparent;
  color: var(--text-primary, #1F2124);
  border: 1px solid var(--border, #E5E0D8);
  box-shadow: none;
}
.mxt-msg-cta--outline:hover { background: rgba(255,255,255,0.86); }
.mxt-msg-cta--cart { background: var(--brand-terrain, #2A3B2A); box-shadow: 0 4px 12px rgba(42, 59, 42, 0.25); }
.mxt-msg-cta--checkout { background: var(--brand-primary, #C62D2D); }

/* Product card */
.mxt-product-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  margin-top: 10px;
  padding: 12px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border, #E5E0D8);
  border-radius: 16px;
  align-items: center;
  box-shadow: 0 4px 12px rgba(20,18,16,0.06);
}
.mxt-product-card-img {
  width: 92px; height: 92px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--bg-page, #F2EFEA);
}
.mxt-product-card-name {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: 800;
  font-size: 14px;
  color: var(--text-primary, #1F2124);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.mxt-product-card-desc {
  font-size: 12px;
  color: var(--text-secondary, #6B6760);
  margin-top: 4px;
  line-height: 1.4;
}
.mxt-product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 8px;
}
.mxt-product-card-price {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: 800;
  font-size: 16px;
  color: var(--brand-primary, #C62D2D);
  letter-spacing: -0.01em;
}
.mxt-product-card-link {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 12px;
  color: var(--brand-terrain, #2A3B2A);
  text-decoration: none;
  white-space: nowrap;
}
.mxt-product-card-link:hover { text-decoration: underline; }

/* Suggestion chips in conversation */
.mxt-chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.mxt-chat-chip {
  padding: 8px 14px;
  background: rgba(255,255,255,0.86);
  color: var(--text-primary, #1F2124);
  border: 1px solid var(--border, #E5E0D8);
  border-radius: 999px;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.mxt-chat-chip:hover {
  background: var(--brand-primary, #C62D2D);
  color: #fff;
  border-color: var(--brand-primary, #C62D2D);
}

/* Typing indicator */
.mxt-typing {
  display: inline-flex;
  gap: 5px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(229, 224, 216, 0.7);
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  align-self: flex-start;
}
.mxt-typing-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-secondary, #6B6760);
  animation: mxt-bounce 1.4s infinite ease-in-out both;
}
.mxt-typing-dot:nth-child(2) { animation-delay: .16s; }
.mxt-typing-dot:nth-child(3) { animation-delay: .32s; }
@keyframes mxt-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%           { transform: scale(1);   opacity: 1; }
}

/* ═══ Voice/text mode toggle ═══ */
.mxt-mode-toggle {
  position: relative;
  z-index: 2;
  margin: 0 24px;
  padding: 6px;
  display: inline-flex;
  align-self: center;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border, #E5E0D8);
  border-radius: 999px;
}
.mxt-mode-toggle__btn {
  padding: 6px 14px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary, #6B6760);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s ease, color .15s ease;
}
.mxt-mode-toggle__btn svg { width: 12px; height: 12px; }
.mxt-mode-toggle__btn.is-active {
  background: var(--text-primary, #1F2124);
  color: #fff;
}
.mxt-mode-toggle__btn:not(.is-active):hover {
  color: var(--text-primary, #1F2124);
}
.mxt-mode-toggle__pill {
  margin-left: 8px;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  background: rgba(198, 45, 45, 0.14);
  color: var(--brand-primary, #C62D2D);
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 800;
}

/* ═══ Voice waveform area (placeholder when idle, animated when listening) ═══ */
.mxt-voice-stage {
  position: relative;
  z-index: 2;
  margin: 8px 24px 0;
  padding: 22px 18px;
  background: linear-gradient(135deg, rgba(31, 33, 36, 0.94) 0%, rgba(42, 59, 42, 0.92) 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  overflow: hidden;
}
.mxt-voice-stage[hidden] { display: none !important; }
.mxt-voice-stage__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mxt-voice-stage__status {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.mxt-voice-stage__hint {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.mxt-voice-stage__waveform {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
}
.mxt-voice-stage__bar {
  width: 4px;
  height: 8px;
  background: linear-gradient(to top, var(--brand-primary, #C62D2D), color-mix(in srgb, var(--brand-primary, #C62D2D) 50%, #fff));
  border-radius: 4px;
  opacity: 0.55;
}
.mxt-voice-stage.is-active .mxt-voice-stage__bar {
  animation: mxt-bar 1.1s ease-in-out infinite;
  opacity: 1;
}
.mxt-voice-stage__bar:nth-child(1) { animation-delay: 0s; }
.mxt-voice-stage__bar:nth-child(2) { animation-delay: 0.1s; }
.mxt-voice-stage__bar:nth-child(3) { animation-delay: 0.2s; }
.mxt-voice-stage__bar:nth-child(4) { animation-delay: 0.3s; }
.mxt-voice-stage__bar:nth-child(5) { animation-delay: 0.4s; }
.mxt-voice-stage__bar:nth-child(6) { animation-delay: 0.5s; }
.mxt-voice-stage__bar:nth-child(7) { animation-delay: 0.6s; }
.mxt-voice-stage__bar:nth-child(8) { animation-delay: 0.7s; }
.mxt-voice-stage__bar:nth-child(9) { animation-delay: 0.8s; }
@keyframes mxt-bar {
  0%, 100% { height: 6px; }
  50%      { height: 28px; }
}

/* ═══ Composer (input row) ═══ */
.mxt-composer {
  position: relative;
  z-index: 2;
  padding: 16px 20px 18px;
  border-top: 1px solid rgba(229, 224, 216, 0.6);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255,255,255,0.7);
}
.mxt-composer__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 18px;
  background: var(--bg-page, #F2EFEA);
  border: 1px solid var(--border, #E5E0D8);
  border-radius: 999px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mxt-composer__row:focus-within {
  border-color: var(--brand-primary, #C62D2D);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-primary, #C62D2D) 14%, transparent);
}
.mxt-composer__input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text-primary, #1F2124);
  padding: 10px 0;
  min-width: 0;
}
.mxt-composer__input::placeholder { color: var(--text-light, #9A968D); }

.mxt-composer__mic {
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(20, 18, 16, 0.08);
  color: var(--text-primary, #1F2124);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease, transform .15s ease;
  position: relative;
}
.mxt-composer__mic:hover {
  background: rgba(20, 18, 16, 0.14);
}
.mxt-composer__mic:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.mxt-composer__mic.is-recording {
  background: var(--brand-primary, #C62D2D);
  color: #fff;
}
.mxt-composer__mic svg { width: 18px; height: 18px; }
.mxt-composer__mic[data-soon]::after {
  content: 'SOON';
  position: absolute;
  top: -7px; right: -8px;
  background: var(--brand-terrain, #2A3B2A);
  color: #fff;
  font-size: 8.5px;
  letter-spacing: 0.1em;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 999px;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
}
.mxt-composer__send {
  width: 44px; height: 44px;
  background: var(--brand-primary, #C62D2D);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center; justify-content: center;
  transition: transform .15s ease, filter .15s ease;
  flex-shrink: 0;
}
.mxt-composer__send:hover { filter: brightness(1.06); transform: translateY(-1px); }
.mxt-composer__send:disabled { opacity: 0.45; cursor: default; transform: none; }
.mxt-composer__send svg { width: 18px; height: 18px; fill: currentColor; }

.mxt-composer__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light, #9A968D);
}
.mxt-composer__meta a {
  color: var(--text-secondary, #6B6760);
  text-decoration: none;
}
.mxt-composer__meta a:hover { color: var(--brand-primary, #C62D2D); }

/* ═══ Lead capture form (voice_website pattern + phone) ═══ */
.mxt-lead-form {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border, #E5E0D8);
  border-radius: 18px;
  padding: 20px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(20,18,16,0.08);
}
.mxt-lead-form-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: 800;
  font-size: 16px;
  color: var(--text-primary, #1F2124);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.mxt-lead-form-meta {
  font-size: 11px;
  color: var(--text-secondary, #6B6760);
  line-height: 1.5;
}
.mxt-lead-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mxt-lead-form-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary, #6B6760);
}
.mxt-lead-form-input {
  padding: 11px 14px;
  background: var(--bg-page, #F2EFEA);
  border: 1px solid var(--border, #E5E0D8);
  border-radius: 12px;
  color: var(--text-primary, #1F2124);
  font-family: inherit;
  font-size: 13.5px;
  resize: vertical;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mxt-lead-form-input:focus {
  outline: 0;
  border-color: var(--brand-primary, #C62D2D);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-primary, #C62D2D) 14%, transparent);
}
.mxt-input--error {
  border-color: var(--brand-primary, #C62D2D);
  background: color-mix(in srgb, var(--brand-primary, #C62D2D) 6%, rgba(255,255,255,0.92));
}
.mxt-lead-form-submit {
  margin-top: 4px;
  padding: 12px 18px;
  background: var(--brand-primary, #C62D2D);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
  box-shadow: 0 6px 16px rgba(198, 45, 45, 0.25);
}
.mxt-lead-form-submit:hover { filter: brightness(1.06); transform: translateY(-1px); }
.mxt-lead-form-submit:disabled { opacity: 0.6; cursor: default; transform: none; }

/* ═══ Mobile (bottom-sheet) ═══ */
@media (max-width: 640px) {
  .mxt-chat-shell { padding: 0; align-items: flex-end; }
  .mxt-chat-panel {
    width: 100vw;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%) scale(1);
  }
  .mxt-chat-shell.open .mxt-chat-panel {
    transform: translateY(0) scale(1);
  }
  .mxt-chat-landing { padding: 28px 20px 16px; }
  .mxt-chat-landing__greeting { font-size: 24px; }
  .mxt-chat-conv { padding: 16px 18px 8px; }
  .mxt-composer { padding: 14px 16px 16px; }
  .mxt-composer__mic { width: 40px; height: 40px; }
  .mxt-composer__send { width: 40px; height: 40px; }
  .mxt-chat-launcher {
    right: 16px; bottom: 16px;
    padding: 8px 14px 8px 8px;
  }
  .mxt-chat-launcher__copy { display: none; }
  .mxt-chat-launcher { padding: 8px; }
  .mxt-chat-launcher__avatar { width: 44px; height: 44px; }
  .mxt-chat-launcher__avatar svg { width: 22px; height: 22px; }
  .mxt-chat-header { padding: 14px 18px; }
  .mxt-chat-iconbtn--human { padding: 0 10px; font-size: 11px; }
}
