/* ==========================================================================
   Tiber Lake: live demonstration (/demo)
   The page follows the site system in /assets/css/styles.css: the page hero pinned inside the curtain, the stage
   as the opaque sheet that slides over it, the theme tokens (--tl-*), labels, numerals, marks, buttons and the
   closing band. Only what is particular to the demonstration lives here. The chat inside the phone keeps its own
   messenger look, with original icons and wallpaper: no WhatsApp logo or artwork.
   ========================================================================== */

:root {
  --chat-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --chat-bg: #efe7dc;
  --bubble-in: #ffffff;
  --bubble-out: #d9f8cf;
  --chat-ink: #111b21;
  --chat-meta: #667781;
  --chat-action: #0a7480;
  --chat-line: rgba(17, 27, 33, 0.1);
  --tick-read: #2b9fe0;
  --notice-bg: #fff3c4;
  --notice-ink: #4f5b62;
  --bubble-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  --accent: #1d7a6e;
  --sheet-radius: 18px;
  --card-line: rgba(168, 191, 176, 0.7);
  --sticky-top: 96px;
  --phone-w: 400px;
  --phone-h: clamp(640px, calc(100vh - var(--sticky-top) - 32px), 860px);
}

/* ---------- Page ---------- */
.page-demo [hidden] { display: none !important; }
/* The demonstration is itself a messaging experience: the floating WhatsApp link would compete with it. */
.page-demo .wa-float { display: none; }

/* Hero: the site's short page hero, plus the simulation notice. */
.demo-hero .lead { max-width: 52ch; }
.demo-hero__notice {
  display: flex;
  align-items: baseline;
  gap: 16px;
  max-width: 62ch;
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--tl-line-strong);
  font-size: 0.8125rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--tl-fg2);
}
.demo-hero__mark { flex: none; width: 5px; height: 5px; border: 1px solid var(--gold); transform: translateY(-2px) rotate(45deg); }

/* Stage: the opaque sheet with the businesses, the phone and the side panel. */
.demo-stage { padding-block: clamp(64px, 7vw, 112px) clamp(104px, 11vw, 176px); outline: none; }
.demo-stage__inner {
  display: grid;
  grid-template-columns: minmax(256px, 312px) var(--phone-w) minmax(256px, 1fr);
  gap: clamp(28px, 3.2vw, 56px);
  align-items: start;
}

/* ---------- Scenario picker ---------- */
.demo-picker__head h2 { font-size: clamp(2.1rem, 1.6rem + 1.2vw, 2.7rem); line-height: 1.05; }
.demo-picker__head p:last-child { margin: 14px 0 32px; font-size: 0.9375rem; line-height: 1.65; }
.demo-cards { list-style: none; display: grid; gap: 14px; }
.demo-cards__skeleton { height: 168px; border: 1px solid var(--card-line); background: linear-gradient(100deg, var(--paper) 30%, #fff 50%, var(--paper) 70%) 0 0 / 300% 100%; animation: shimmer 1.8s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }

@keyframes card-in { from { opacity: 0; transform: translate3d(0, 24px, 0); filter: blur(4px); } }
.scenario-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 4px 16px;
  width: 100%;
  padding: 22px 22px 22px 20px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  animation: card-in 1.1s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 90ms + 0.1s);
  transition: border-color 0.6s var(--ease-out), box-shadow 0.8s var(--ease-out), background-color 0.6s var(--ease-out);
}
.scenario-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease-out);
}
@media (hover: hover) { .scenario-card:hover::before { transform: scaleX(1); } }
.scenario-card__hit { position: absolute; inset: -1px; z-index: 2; width: calc(100% + 2px); height: calc(100% + 2px); padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.scenario-card__hit:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.scenario-card[data-selected='true'] { border-color: rgba(14, 59, 46, 0.35); background: #fff; box-shadow: 0 30px 60px -40px rgba(7, 32, 25, 0.5); }
.scenario-card[data-selected='true']::before { transform: scaleX(1); }
.scenario-card__avatar { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--mist-2); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--card-line); transition: box-shadow 0.6s var(--ease-out); }
.scenario-card[data-selected='true'] .scenario-card__avatar { box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--gold); }
.scenario-card__industry { align-self: end; font-size: 0.625rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-ink); }
.scenario-card__name { margin: 0; font-family: var(--font-head); font-size: 1.6rem; font-weight: 400; line-height: 1.1; color: var(--emerald); }
.scenario-card__tagline { grid-column: 1 / -1; margin: 16px 0 0; font-size: 0.875rem; line-height: 1.65; color: var(--ink-2); }
.scenario-card__label { grid-column: 1 / -1; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid rgba(30, 42, 39, 0.1); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-ink); }
.scenario-card .marks { grid-column: 1 / -1; gap: 8px; margin-top: 12px; }
.scenario-card .marks li { font-size: 0.8125rem; line-height: 1.5; color: var(--ink); }
.scenario-card__open { display: none; }

/* ---------- Side panel ---------- */
/* The insights and tour cards stay beside the phone and end on its bottom edge (the tour list scrolls inside); the
   consultation card follows at the foot of the column. */
.demo-side { display: flex; flex-direction: column; gap: 18px; align-self: stretch; }
.demo-side__track { flex: 1 0 auto; }
.demo-side__pinned { position: sticky; top: var(--sticky-top); display: flex; flex-direction: column; gap: 18px; max-height: var(--phone-h); }
.demo-side .side-card { flex: none; }
.demo-side .side-card--tour { display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; }
.demo-side__pinned .tour { max-height: none; }
/* A narrow column or a short screen: the title and the switch speak for themselves, and the tour keeps the room. */
@media (min-width: 1200px) and (max-width: 1359px), (min-width: 1200px) and (max-height: 860px) {
  .side-card--insights > p:not(.label) { display: none; }
}
.side-card { padding: 30px 28px; border: 1px solid var(--card-line); border-radius: var(--radius); background: var(--paper); }
.side-card h2 { font-size: 1.9rem; line-height: 1.1; }
.side-card p { margin: 12px 0 0; font-size: 0.9063rem; line-height: 1.65; }
.side-card .label { margin-bottom: 14px; }
.side-card__sub { font-size: 0.8438rem !important; }
.side-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 24px; }
.side-card .link-line { padding: 0; border: 0; background: none; cursor: pointer; }

/* "How the agent thinks": the highlight of the demonstration, in the colours of the page hero. */
.side-card--insights {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-color: rgba(201, 162, 75, 0.35);
  background:
    radial-gradient(110% 90% at 90% 20%, rgba(29, 122, 110, 0.5) 0%, rgba(29, 122, 110, 0) 60%),
    linear-gradient(160deg, #0B3226 0%, #0E3B2E 50%, #12493D 100%);
  color: var(--tl-fg);
}
.side-card--insights::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -36%;
  bottom: -44%;
  width: 90%;
  aspect-ratio: 1;
  background: url('../img/logo/emblem-gold.svg?v=11f702f323') center / contain no-repeat;
  opacity: 0.1;
}
.side-card--insights .switch { margin-top: 24px; }

.switch {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tl-fg);
  font: 500 0.6875rem/1.3 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}
.switch__track { position: relative; flex: none; width: 46px; height: 26px; border: 1px solid var(--tl-line-strong); border-radius: 999px; background: rgba(247, 245, 239, 0.08); transition: background-color 0.6s var(--ease-out), border-color 0.6s var(--ease-out); }
.switch__thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--mist); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.6s var(--ease-out), background-color 0.6s; }
.switch[aria-checked='true'] .switch__track { border-color: var(--gold); background: var(--gold); }
.switch[aria-checked='true'] .switch__thumb { transform: translateX(20px); background: var(--emerald); }
.switch:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.tour { list-style: none; display: grid; align-content: start; gap: 4px; margin-top: 18px; counter-reset: step; flex: 0 1 auto; min-height: 112px; max-height: 420px; overflow: auto; padding-right: 2px; overscroll-behavior: contain; scrollbar-width: thin; }
.tour:empty { min-height: 0; }
.tour.is-more { -webkit-mask-image: linear-gradient(#000 calc(100% - 48px), transparent); mask-image: linear-gradient(#000 calc(100% - 48px), transparent); }
.tour.is-less { -webkit-mask-image: linear-gradient(transparent, #000 36px); mask-image: linear-gradient(transparent, #000 36px); }
.tour.is-less.is-more { -webkit-mask-image: linear-gradient(transparent, #000 36px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(transparent, #000 36px, #000 calc(100% - 48px), transparent); }
.tour__step {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 2px 12px;
  width: 100%;
  padding: 11px 12px 12px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: none;
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.tour__step::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.05rem;
  font-variant-numeric: lining-nums;
  line-height: 1.25;
  color: var(--gold-ink);
}
@media (hover: hover) { .tour__step:hover { background: var(--mist); border-color: rgba(30, 42, 39, 0.1); } }
.tour__step:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }
.tour__step[data-done='true']::before { content: ''; justify-self: start; width: 6px; height: 11px; margin: 3px 0 0 6px; border: solid var(--teal); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.tour__step[data-done='true'] .tour__hint { color: var(--ink-2); }
.tour__step[data-done='skipped']::before { content: ''; justify-self: start; width: 12px; height: 1px; margin: 0.72em 0 0 2px; background: var(--ink-2); }
.tour__step[data-done='skipped'] .tour__hint { color: var(--ink-2); font-weight: 500; }
.tour__step[data-next='true'] { border-color: rgba(201, 162, 75, 0.45); background: #fffdf6; }
.tour__step[data-next='true']::after { content: ''; position: absolute; top: -1px; bottom: -1px; left: -1px; width: 1px; background: var(--gold); }
.tour__hint { font-size: 0.875rem; font-weight: 500; line-height: 1.4; }
.tour__shows { font-size: 0.8125rem; line-height: 1.45; color: var(--ink-2); }
.tour__step[data-kind='tap'] .tour__hint::after, .tour__step[data-kind='form'] .tour__hint::after { content: ' (in the chat)'; font-weight: 400; color: var(--ink-2); }

.side-card--cta { border-top: 1px solid var(--gold); }

/* ---------- What is real ---------- */
.demo-legal { max-width: 80ch; margin: clamp(48px, 6vw, 80px) 0 0; padding-top: 24px; border-top: 1px solid var(--tl-line); font-size: 0.8125rem; line-height: 1.7; }
.demo-noscript { padding: 20px; border: 1px solid var(--card-line); background: var(--paper); font-size: 0.9375rem; }

/* ---------- Phone ---------- */
@keyframes phone-in { from { opacity: 0; transform: translate3d(0, 40px, 0); } }
.demo-device { position: sticky; top: var(--sticky-top); }
.phone { width: var(--phone-w); margin-inline: auto; }
.js .phone { animation: phone-in 1.4s var(--ease-out) 0.15s both; }
.phone__bezel {
  position: relative;
  display: flex;
  flex-direction: column;
  height: var(--phone-h);
  padding: 11px;
  border-radius: 58px;
  background: linear-gradient(150deg, #39423f 0%, #151c1a 22%, #0b1110 60%, #222b28 100%);
  box-shadow:
    0 0 0 1px rgba(201, 162, 75, 0.3),
    inset 0 0 0 1.5px #000,
    inset 0 0 0 3px rgba(255, 255, 255, 0.06),
    0 60px 110px -50px rgba(7, 32, 25, 0.7),
    0 18px 36px -24px rgba(0, 0, 0, 0.45);
}
.phone__bezel::before, .phone__bezel::after { content: ''; position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #4a5350, #1b2321); }
.phone__bezel::before { left: -3px; top: 150px; height: 58px; box-shadow: 0 74px 0 #2a3230; }
.phone__bezel::after { right: -3px; top: 190px; height: 92px; }
.phone__status {
  position: absolute;
  z-index: 3;
  top: 11px;
  left: 11px;
  right: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 0 30px 0 36px;
  color: #fff;
  font-family: var(--chat-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}
.phone__island { position: absolute; left: 50%; top: 11px; width: 108px; height: 30px; margin-left: -54px; border-radius: 20px; background: #000; }
.phone__icons { display: inline-flex; align-items: center; gap: 6px; }
.phone__signal { width: 17px; height: 11px; background: linear-gradient(#fff, #fff) 0 100% / 3px 40% no-repeat, linear-gradient(#fff, #fff) 4.6px 100% / 3px 60% no-repeat, linear-gradient(#fff, #fff) 9.2px 100% / 3px 80% no-repeat, linear-gradient(#fff, #fff) 13.8px 100% / 3px 100% no-repeat; }
.phone__wifi { width: 15px; height: 11px; border-radius: 15px 15px 0 0; background: radial-gradient(circle at 50% 100%, #fff 0 2px, transparent 2.5px 4px, #fff 4.5px 6px, transparent 6.5px 8px, #fff 8.5px 10px, transparent 10.5px); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.phone__battery { position: relative; width: 24px; height: 11px; border: 1.5px solid rgba(255, 255, 255, 0.55); border-radius: 3.5px; }
.phone__battery::before { content: ''; position: absolute; inset: 1.5px; right: 5px; border-radius: 1.5px; background: #fff; }
.phone__battery::after { content: ''; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(255, 255, 255, 0.55); }
.phone__screen {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-radius: 47px;
  background: var(--chat-bg);
  isolation: isolate;
}
@keyframes demo-fade { from { opacity: 0; } }
.chat-empty { margin: auto; padding: 32px; text-align: center; font-family: var(--chat-font); color: var(--chat-meta); font-size: 14px; line-height: 1.45; animation: demo-fade 0.8s var(--ease-out) both; }
.chat-empty p { color: inherit; margin: 0; }
.chat-empty__title { margin-bottom: 6px !important; font-weight: 600; color: var(--chat-ink) !important; font-size: 16px; }

/* ==========================================================================
   Chat
   ========================================================================== */
.wa {
  --tl-fg: var(--chat-ink);
  --tl-fg2: var(--chat-ink);
  --tl-heading: var(--chat-ink);
  --tl-link: #027eb5;
  --accent: #1d7a6e;
  --head-bg: color-mix(in srgb, var(--accent) 74%, #000);
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  font-family: var(--chat-font);
  font-size: 14.5px;
  line-height: 1.38;
  color: var(--chat-ink);
  -webkit-font-smoothing: antialiased;
  animation: demo-fade 0.55s var(--ease-out) both;
}
.wa button { font-family: inherit; }
:where(.wa) p { margin: 0; }
:where(.wa) strong, :where(.wa) b { color: inherit; }
.wa h1, .wa h2, .wa h3, .wa h4 { font-family: var(--chat-font); color: inherit; letter-spacing: 0; line-height: 1.3; text-wrap: wrap; }
.wa :focus-visible { outline: 2px solid #f0b429; outline-offset: 2px; }

/* header */
.wa-head {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 62px;
  padding: 50px 8px 8px 8px;
  background: var(--head-bg);
  color: #fff;
}
.wa-head__back, .wa-head__btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
}
@media (hover: hover) { .wa-head__back:hover, .wa-head__btn:hover { background: rgba(255, 255, 255, 0.12); } }
.wa-head__back { display: none; }
.wa-head__who {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 2px 4px 2px 2px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
@media (hover: hover) { .wa-head__who:hover { background: rgba(255, 255, 255, 0.08); } }
.wa-head__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: rgba(255, 255, 255, 0.2); }
.wa-head__text { display: grid; min-width: 0; }
.wa-head__name { display: flex; align-items: center; gap: 5px; font-size: 16px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-head__badge { flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--head-bg); }
.wa-head__badge svg { width: 11px; height: 11px; }
.wa-head__status { font-size: 12.5px; line-height: 1.3; opacity: 0.86; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-head__status[data-typing='true'] { opacity: 1; font-weight: 600; }
.wa-head svg { width: 22px; height: 22px; }

/* body + wallpaper */
.wa-body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 10px 12px;
  background-color: var(--chat-bg);
  background-image: url('wallpaper.svg?v=11f702f323');
  background-size: 300px 300px;
  overscroll-behavior: contain;
}
.wa-log { display: flex; flex-direction: column; gap: 2px; }
.wa-notice {
  align-self: center;
  max-width: 92%;
  margin: 6px 0 4px;
  padding: 7px 12px 8px;
  border-radius: 8px;
  background: var(--notice-bg);
  box-shadow: var(--bubble-shadow);
  color: var(--notice-ink);
  font-size: 12.5px;
  line-height: 1.45;
  text-align: center;
}
.wa-notice svg { display: inline-block; width: 12px; height: 12px; margin: 0 4px -1px 0; vertical-align: baseline; }
.wa-notice strong { color: #3b4a52; }
.wa-notice--demo { background: #eef6f3; color: #34524a; }
.wa-date {
  align-self: center;
  margin: 10px 0 6px;
  padding: 5px 12px 6px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--bubble-shadow);
  color: #54656f;
  font-size: 12.5px;
  font-weight: 500;
}
.wa-sys {
  align-self: center;
  max-width: 88%;
  margin: 6px 0;
  padding: 6px 12px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--bubble-shadow);
  color: #54656f;
  font-size: 12.5px;
  text-align: center;
}

/* rows and bubbles */
.wa-row { display: flex; flex-direction: column; max-width: 100%; animation: pop 0.22s var(--ease) both; }
.wa-row--in { align-items: flex-start; }
.wa-row--out { align-items: flex-end; }
.wa-row + .wa-row { margin-top: 2px; }
.wa-row.is-first { margin-top: 8px; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.98); } }
.wa-row.no-anim { animation: none; }

.wa-bubble {
  position: relative;
  max-width: min(84%, 320px);
  min-width: 62px;
  padding: 6px 8px 7px 9px;
  border-radius: 8px;
  background: var(--bubble-in);
  box-shadow: var(--bubble-shadow);
  overflow-wrap: anywhere;
}
.wa-row--out .wa-bubble { background: var(--bubble-out); }
.wa-row.is-first .wa-bubble { border-top-left-radius: 0; }
.wa-row--out.is-first .wa-bubble { border-top-left-radius: 8px; border-top-right-radius: 0; }
.wa-row.is-first .wa-bubble::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  width: 8px;
  height: 13px;
  background: var(--bubble-in);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.wa-row--out.is-first .wa-bubble::before { left: auto; right: -8px; background: var(--bubble-out); clip-path: polygon(0 0, 100% 0, 0 100%); }
.wa-bubble--wide { width: min(84%, 320px); }
.wa-bubble--media { padding: 3px 3px 4px; }
.wa-bubble--card { padding: 0; overflow: hidden; }
.wa-bubble--card.is-first-card::before { display: none; }

.wa-sender { display: block; margin: 0 0 2px; font-size: 12.5px; font-weight: 600; color: #b5532b; }
.wa-label { display: flex; align-items: center; gap: 5px; margin-bottom: 3px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: var(--chat-action); }
.wa-label svg { width: 14px; height: 14px; }
.wa-text { white-space: pre-wrap; }
.wa-text strong { font-weight: 600; }
.wa-text code, .wa-text pre { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 13px; }
.wa-text pre { margin: 4px 0; padding: 6px 8px; border-radius: 6px; background: rgba(17, 27, 33, 0.06); white-space: pre-wrap; }
.wa-text ul, .wa-text ol { margin: 2px 0; padding-left: 20px; white-space: normal; }
.wa-text a { color: #027eb5; text-decoration: underline; text-underline-offset: 2px; }

/* meta: time + ticks */
.wa-meta {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 6px 0 -4px 10px;
  color: var(--chat-meta);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}
.wa-meta--over { position: absolute; right: 7px; bottom: 7px; float: none; margin: 0; padding: 3px 6px; border-radius: 10px; background: rgba(11, 20, 26, 0.45); color: #fff; }
.wa-meta--block { float: none; display: flex; justify-content: flex-end; margin: 4px 2px 0 0; }
.wa-ticks { display: inline-grid; width: 17px; height: 11px; color: #8696a0; }
.wa-ticks svg { grid-area: 1 / 1; width: 17px; height: 11px; transition: opacity 0.25s, color 0.3s; }
.wa-ticks .t-clock, .wa-ticks .t-one, .wa-ticks .t-two { opacity: 0; }
.wa-ticks[data-state='pending'] .t-clock { opacity: 1; }
.wa-ticks[data-state='sent'] .t-one { opacity: 1; }
.wa-ticks[data-state='delivered'] .t-two, .wa-ticks[data-state='read'] .t-two { opacity: 1; }
.wa-ticks[data-state='read'] { color: var(--tick-read); }
.wa-ticks[data-state='failed'] { color: #d0453b; }
.wa-ticks[data-state='failed'] .t-err { opacity: 1; }
.wa-ticks .t-err { opacity: 0; }
.wa-meta--over .wa-ticks { color: #fff; }
.wa-failed { margin-top: 3px; padding: 0; border: 0; background: none; color: #c0392b; font-size: 12px; cursor: pointer; text-decoration: underline; }

/* quoted reply inside a bubble */
.wa-quote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: -2px -4px 5px -5px;
  padding: 5px 8px 6px 9px;
  border-left: 4px solid var(--chat-action);
  border-radius: 6px;
  background: rgba(17, 27, 33, 0.05);
  font-size: 13px;
  color: #54656f;
}
.wa-quote b { display: block; font-size: 12.5px; color: var(--chat-action); font-weight: 600; }
.wa-quote__text { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wa-quote img { width: 38px; height: 38px; border-radius: 4px; object-fit: cover; }

/* typing indicator + streaming draft */
.wa-typing { display: inline-flex; gap: 4px; align-items: center; padding: 12px 14px; }
.wa-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa6ad; animation: typing 1.2s infinite ease-in-out; }
.wa-typing span:nth-child(2) { animation-delay: 0.15s; }
.wa-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.55; } 30% { transform: translateY(-4px); opacity: 1; } }
.wa-draft .wa-text::after { content: ''; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--chat-action); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* jump to latest: sits just above the footer (suggestions, hint and composer), whatever its height */
.wa-jump {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: calc(100% + 10px);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(11, 20, 26, 0.25);
  color: #54656f;
  cursor: pointer;
}
.wa-jump svg { width: 20px; height: 20px; }
.wa-jump[hidden] { display: none; }

/* footer: suggestions + composer */
.wa-foot { position: relative; z-index: 3; padding: 4px 8px 10px; background: var(--chat-bg); }
.wa-suggest { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.wa-suggest::-webkit-scrollbar { display: none; }
.wa-chip {
  flex: none;
  max-width: 260px;
  padding: 7px 12px;
  border: 1px solid rgba(10, 116, 128, 0.28);
  border-radius: 18px;
  background: #fff;
  color: var(--chat-action);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  box-shadow: var(--bubble-shadow);
}
@media (hover: hover) { .wa-chip:hover { background: #f2fbfa; } }
.wa-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 0 0 6px;
  padding: 6px 10px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: #3b4a52;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
}
.wa-hint[data-static='true'] { cursor: default; }
.wa-hint b { flex: none; font-weight: 700; color: var(--chat-action); }
.wa-hint span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wa-hint svg { flex: none; width: 15px; height: 15px; color: var(--chat-action); }

.wa-composer { display: flex; align-items: flex-end; gap: 6px; }
.wa-input {
  display: flex;
  align-items: flex-end;
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 3px 4px 3px 12px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--bubble-shadow);
}
.wa-input textarea {
  flex: 1;
  min-width: 0;
  max-height: 120px;
  margin: 0;
  padding: 10px 0 9px;
  border: 0;
  background: none;
  color: var(--chat-ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
  resize: none;
  outline: none;
}
.wa-input textarea::placeholder { color: #8696a0; }
.wa-input:focus-within { box-shadow: 0 0 0 2px rgba(10, 116, 128, 0.35); }
/* The rounded field shows focus with the ring above, so the message box itself needs no second outline. */
.wa-input textarea:focus-visible { outline: none; }
.wa-icon-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #54656f;
  cursor: pointer;
}
@media (hover: hover) { .wa-icon-btn:hover { background: rgba(17, 27, 33, 0.06); } }
.wa-icon-btn svg { width: 23px; height: 23px; }
.wa-send {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--head-bg);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--bubble-shadow);
  transition: transform 0.15s var(--ease), opacity 0.2s;
}
@media (hover: hover) { .wa-send:hover { transform: scale(1.04); } }
.wa-send:disabled { opacity: 0.55; cursor: default; transform: none; }
.wa-send svg { width: 21px; height: 21px; margin-left: 2px; }
.wa-count { position: absolute; right: 70px; bottom: 58px; padding: 2px 8px; border-radius: 10px; background: rgba(11, 20, 26, 0.7); color: #fff; font-size: 11px; }
.wa-count[hidden] { display: none; }

/* ==========================================================================
   Rich messages
   ========================================================================== */
.wa-media { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: #dfe5e7; cursor: zoom-in; }
.wa-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wa-media--doc img { object-position: top; }
.wa-caption { padding: 5px 5px 0 6px; }
.wa-broken { display: grid; place-items: center; min-height: 120px; color: #8696a0; font-size: 12.5px; }

.wa-album { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 266px; max-width: 100%; }
.wa-album .wa-media { aspect-ratio: 1; border-radius: 4px; }
.wa-album--3 .wa-media:first-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.wa-album__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11, 20, 26, 0.55); color: #fff; font-size: 26px; font-weight: 500; }

/* interactive footers (reply buttons / list button / view) */
.wa-actions { display: grid; margin: 7px -8px -7px -9px; border-top: 1px solid var(--chat-line); }
.wa-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-top: 1px solid var(--chat-line);
  background: none;
  color: var(--chat-action);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
}
.wa-action:first-child { border-top: 0; }
@media (hover: hover) { .wa-action:hover { background: rgba(10, 116, 128, 0.06); } }
.wa-action:disabled { color: #8696a0; cursor: default; background: none; }
.wa-action svg { width: 18px; height: 18px; }
.wa-action[data-chosen='true'] { color: #54656f; }
.wa-action[data-chosen='true']::after { content: ''; width: 5px; height: 9px; margin: -3px 0 0 4px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.wa-bubble--card .wa-actions { margin: 0; }
.wa-header-img { margin: -3px -5px 6px -6px; border-radius: 6px; overflow: hidden; }
.wa-header-img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.wa-title { margin: 0 0 3px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.wa-footer { margin-top: 3px; color: var(--chat-meta); font-size: 12.5px; }

/* product */
.wa-product__img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #f2f2f2; }
.wa-product__img--wide { aspect-ratio: 4 / 3; }
.wa-product__body { padding: 8px 10px 4px; }
.wa-product__name { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.wa-product__ar { display: block; margin-top: 1px; font-size: 13px; color: var(--chat-meta); direction: rtl; text-align: left; }
.wa-product__price { margin-top: 3px; font-size: 14.5px; font-weight: 600; color: #1d2b30; }
.wa-product__desc { margin-top: 4px; font-size: 13.5px; color: #3b4a52; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wa-stock { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 10px; background: #fff3e0; color: #8a4b00; font-size: 12px; font-weight: 600; }
.wa-stock--out { background: #fdecea; color: #a8322a; }
.wa-product.is-unavailable .wa-product__img { filter: grayscale(0.7) opacity(0.75); }
.wa-product__caption { padding: 2px 10px 4px; font-size: 13.5px; }
.wa-bubble--card .wa-meta--block { margin: 0 8px 6px 0; }

/* product list (multi-product) */
.wa-plist__head { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; align-items: center; margin: -2px -4px 6px -5px; padding: 6px; border-radius: 6px; background: rgba(17, 27, 33, 0.04); }
.wa-plist__stack { position: relative; width: 58px; height: 58px; }
.wa-plist__stack img { position: absolute; width: 44px; height: 44px; border-radius: 6px; object-fit: cover; border: 2px solid #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.wa-plist__stack img:nth-child(1) { left: 0; top: 0; z-index: 3; }
.wa-plist__stack img:nth-child(2) { left: 8px; top: 7px; z-index: 2; }
.wa-plist__stack img:nth-child(3) { left: 14px; top: 14px; z-index: 1; }
.wa-plist__count { font-size: 12.5px; color: var(--chat-meta); }

/* cart */
.wa-cart__head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 8px; border-bottom: 1px solid var(--chat-line); }
.wa-cart__head svg { width: 20px; height: 20px; color: var(--chat-action); }
.wa-cart__title { font-size: 14.5px; font-weight: 600; }
.wa-cart__live { margin-left: auto; padding: 2px 7px; border-radius: 8px; background: #e7f6f3; color: #156358; font-size: 11px; font-weight: 600; }
.wa-lines { list-style: none; margin: 0; padding: 4px 12px; }
.wa-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px; align-items: start; padding: 7px 0; border-top: 1px dashed rgba(17, 27, 33, 0.1); }
.wa-line:first-child { border-top: 0; }
.wa-line img { grid-row: span 2; width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.wa-line__name { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.wa-line__qty { color: var(--chat-meta); font-weight: 500; }
.wa-line__detail { grid-column: 2; font-size: 12.5px; color: var(--chat-meta); }
.wa-line__amount { grid-row: span 2; font-size: 13.5px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wa-line--nothumb { grid-template-columns: minmax(0, 1fr) auto; }
.wa-line--nothumb .wa-line__detail { grid-column: 1; }
.wa-empty { padding: 14px 12px; color: var(--chat-meta); font-size: 13.5px; }
.wa-totals { margin: 0; padding: 8px 12px 10px; border-top: 1px solid var(--chat-line); }
.wa-totals div { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.wa-totals dt { color: #3b4a52; }
.wa-totals dd { margin: 0; white-space: nowrap; }
.wa-totals .is-emph { margin-top: 3px; padding-top: 6px; border-top: 1px solid var(--chat-line); font-size: 15px; font-weight: 700; }
.wa-totals .is-emph dt { color: var(--chat-ink); }
.wa-totals .is-info { color: var(--chat-meta); font-size: 12.5px; }
.wa-totals .is-info dt { color: var(--chat-meta); }
.wa-totals .is-free dd { color: #157a3c; font-weight: 600; }

/* order summary / quote / tracking / estimate */
.wa-sum__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 11px 12px 9px; border-bottom: 1px solid var(--chat-line); background: linear-gradient(180deg, rgba(10, 116, 128, 0.06), transparent); }
.wa-sum__kind { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--chat-action); }
.wa-sum__title { grid-column: 1; margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.wa-sum__ref { grid-column: 1; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--chat-meta); }
.wa-pill { grid-column: 2; grid-row: 1 / span 3; align-self: center; padding: 3px 9px; border-radius: 999px; background: #eef1f2; color: #3b4a52; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.wa-pill[data-tone='warn'] { background: #fff3d6; color: #835400; }
.wa-pill[data-tone='ok'] { background: #def5e5; color: #11663a; }
.wa-pill[data-tone='info'] { background: #e3f1fb; color: #0d5a8a; }
.wa-pill[data-tone='bad'] { background: #fde6e4; color: #a12d24; }
.wa-meta-list { margin: 0; padding: 8px 12px; border-top: 1px solid var(--chat-line); display: grid; gap: 3px; }
/* Label left, value right: long values wrap; short ones (amounts, dates) stay whole and the label wraps instead. */
.wa-meta-list div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.wa-meta-list dt { flex: 0 1 auto; min-width: min-content; overflow-wrap: normal; color: var(--chat-meta); }
.wa-meta-list dd { flex: 1 1 auto; min-width: 0; margin: 0; color: #2a3940; text-align: right; }
.wa-meta-list dd.is-short { flex: 0 0 auto; white-space: nowrap; }
.wa-notes { margin: 0; padding: 8px 12px 10px 26px; border-top: 1px solid var(--chat-line); color: #54656f; font-size: 12px; line-height: 1.45; }
.wa-notes li + li { margin-top: 2px; }
.wa-timeline { list-style: none; margin: 0; padding: 10px 12px 6px; border-top: 1px solid var(--chat-line); }
.wa-step { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 0 10px; padding-bottom: 12px; }
.wa-step::before { content: ''; position: absolute; left: 8px; top: 16px; bottom: -2px; width: 2px; background: #d7dfe2; }
.wa-step:last-child::before { display: none; }
.wa-step.is-done::before { background: #3fae6a; }
.wa-step__dot { position: relative; z-index: 1; width: 18px; height: 18px; border: 2px solid #c3ccd0; border-radius: 50%; background: #fff; }
.wa-step.is-done .wa-step__dot { border-color: #3fae6a; background: #3fae6a; }
.wa-step.is-done .wa-step__dot::after { content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.wa-step.is-current .wa-step__dot { border-color: var(--chat-action); box-shadow: 0 0 0 4px rgba(10, 116, 128, 0.15); animation: pulse 1.8s ease-in-out infinite; }
.wa-step.is-current.is-done .wa-step__dot { border-color: #3fae6a; animation: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(10, 116, 128, 0.05); } }
.wa-step__label { font-size: 13.5px; line-height: 1.3; color: #8696a0; }
.wa-step.is-done .wa-step__label, .wa-step.is-current .wa-step__label { color: var(--chat-ink); }
.wa-step.is-current .wa-step__label { font-weight: 600; }
.wa-step__detail { grid-column: 2; font-size: 12px; color: var(--chat-meta); }
.wa-step__at { font-size: 11.5px; color: var(--chat-meta); white-space: nowrap; }

/* payment request + status */
.wa-pay { padding: 12px 12px 10px; }
.wa-pay__top { display: flex; align-items: center; gap: 10px; }
.wa-pay__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #e7f6f3; color: var(--chat-action); }
.wa-pay__icon svg { width: 20px; height: 20px; }
.wa-pay__label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--chat-action); }
.wa-pay__merchant { font-size: 14px; font-weight: 600; }
.wa-pay__amount { margin: 10px 0 2px; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.wa-pay__desc { font-size: 13px; color: #3b4a52; }
.wa-pay__exp { margin-top: 3px; font-size: 12px; color: var(--chat-meta); }
.wa-pay__methods { display: flex; gap: 6px; margin-top: 8px; }
.wa-pay__methods span { padding: 2px 8px; border: 1px solid var(--chat-line); border-radius: 6px; font-size: 11.5px; color: #54656f; }
.wa-sim { display: flex; align-items: center; gap: 6px; margin: 10px -12px -10px; padding: 7px 12px; background: #fff8e1; color: #6d5a17; font-size: 12px; }
.wa-sim svg { width: 14px; height: 14px; flex: none; }
.wa-pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 0;
  border-top: 1px solid var(--chat-line);
  background: var(--chat-action);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
@media (hover: hover) { .wa-pay-btn:hover { filter: brightness(1.07); } }
.wa-pay-btn svg { width: 17px; height: 17px; }
.wa-pay-btn[data-paid='true'] { background: #e8f6ec; color: #11663a; cursor: default; filter: none; }
.wa-paystat { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 10px; align-items: center; }
.wa-paystat__icon { grid-row: span 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #def5e5; color: #11663a; }
.wa-paystat__icon svg { width: 22px; height: 22px; }
.wa-paystat[data-status='failed'] .wa-paystat__icon { background: #fde6e4; color: #a12d24; }
.wa-paystat[data-status='expired'] .wa-paystat__icon, .wa-paystat[data-status='pending'] .wa-paystat__icon { background: #eef1f2; color: #54656f; }
.wa-paystat[data-status='pay_on_arrival'] .wa-paystat__icon { background: #e3f1fb; color: #0d5a8a; }
.wa-paystat__title { font-size: 14.5px; font-weight: 600; }
.wa-paystat__amount { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wa-paystat__line { font-size: 12.5px; color: #54656f; }
.wa-paystat__msg { grid-column: 1 / -1; margin-top: 6px; font-size: 13.5px; }

/* location */
.wa-loc .wa-media { aspect-ratio: 16 / 9; border-radius: 6px; }
.wa-loc__name { margin: 6px 4px 0; font-size: 14.5px; font-weight: 600; }
.wa-loc__addr { margin: 1px 4px 0; font-size: 13px; color: #54656f; }
.wa-loc__dir { margin: 4px 4px 0; font-size: 12.5px; color: #3b4a52; }
.wa-loc__note { margin: 4px 4px 0; font-size: 11.5px; color: #8696a0; }

/* document */
.wa-doc { display: block; width: 100%; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: rgba(17, 27, 33, 0.05); color: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.wa-doc__preview { display: block; width: 100%; height: 132px; object-fit: cover; object-position: top; background: #fff; border-bottom: 1px solid var(--chat-line); }
.wa-doc__row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; }
.wa-doc__icon { display: grid; place-items: center; width: 30px; height: 36px; border-radius: 4px; background: #e2513d; color: #fff; font-size: 9px; font-weight: 800; letter-spacing: 0.04em; }
.wa-doc__row > span:nth-child(2) { min-width: 0; }
.wa-doc__name { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-doc__info { display: block; font-size: 11.5px; color: var(--chat-meta); }
.wa-doc__open { color: var(--chat-meta); }
.wa-doc__open svg { width: 20px; height: 20px; }

/* contact */
.wa-contact { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 1px 10px; align-items: center; padding: 4px 2px 2px; }
.wa-contact img, .wa-contact__ph { grid-row: span 3; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #dfe5e7; }
.wa-contact__name { font-size: 14.5px; font-weight: 600; }
.wa-contact__title { font-size: 12.5px; color: #54656f; line-height: 1.35; }
.wa-contact__org { font-size: 12px; color: var(--chat-meta); }

/* booking */
.wa-booking { --kind: var(--chat-action); }
.wa-booking__band { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--kind); color: #fff; }
.wa-booking__band svg { width: 18px; height: 18px; }
.wa-booking__kind { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.wa-booking__ref { margin-left: auto; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; opacity: 0.92; }
.wa-booking__body { padding: 10px 12px 6px; }
.wa-booking__title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.wa-booking__when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 6px; }
.wa-booking__date { font-size: 18px; font-weight: 700; }
.wa-booking__time { font-size: 14px; color: #3b4a52; font-variant-numeric: tabular-nums; }
.wa-booking__with { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; }
.wa-booking__with img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.wa-booking__with > svg { flex: none; box-sizing: border-box; width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: #eef2f0; color: #54656f; }
.wa-booking__where { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: 12.5px; color: #54656f; }
.wa-booking__where svg { flex: none; width: 15px; height: 15px; margin-top: 1px; }
.wa-booking.is-cancelled .wa-booking__band { background: #8a969c; }
.wa-booking.is-cancelled .wa-booking__date, .wa-booking.is-cancelled .wa-booking__time { text-decoration: line-through; color: #8696a0; }
.wa-booking .wa-pill { grid-column: auto; grid-row: auto; margin-left: auto; align-self: center; }

/* claim / return case */
.wa-case__fields { margin: 0; padding: 8px 12px; display: grid; gap: 4px; }
.wa-case__fields div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; font-size: 12.5px; }
.wa-case__fields dt { color: var(--chat-meta); }
.wa-case__fields dd { margin: 0; color: #22313a; }
.wa-docs { list-style: none; margin: 0; padding: 8px 12px; border-top: 1px solid var(--chat-line); display: grid; gap: 5px; }
.wa-docs li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13px; }
.wa-docs svg { width: 17px; height: 17px; color: #3fae6a; }
.wa-docs li[data-received='false'] { color: #8696a0; }
.wa-docs li[data-received='false'] svg { color: #b6c0c4; }
.wa-docs img { width: 30px; height: 22px; border-radius: 3px; object-fit: cover; }
.wa-progress { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 10px 12px 4px; border-top: 1px solid var(--chat-line); }
.wa-progress span { height: 5px; border-radius: 3px; background: #dbe2e5; }
.wa-progress span.is-done { background: #3fae6a; }
.wa-progress span.is-current { background: var(--chat-action); }
.wa-progress__label { padding: 2px 12px 6px; font-size: 12px; color: #54656f; }
.wa-progress__label b { color: var(--chat-ink); font-weight: 600; }
.wa-next { margin: 0 12px 10px; padding: 8px 10px; border-radius: 8px; background: #eef7f6; color: #1f4f49; font-size: 12.5px; line-height: 1.4; }
.wa-next b { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--chat-action); }

/* forms */
.wa-form__head { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px 4px; }
.wa-form__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: #e7f6f3; color: var(--chat-action); }
.wa-form__icon svg { width: 19px; height: 19px; }
.wa-form__title { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.wa-form__intro { margin: 2px 0 0; font-size: 13px; color: #3b4a52; }
.wa-form__accepts { margin: 0 12px 8px 56px; font-size: 11.5px; color: var(--chat-meta); }
.wa-samples { display: flex; gap: 8px; overflow-x: auto; padding: 4px 12px 10px; scrollbar-width: thin; }
.wa-sample { position: relative; flex: none; width: 104px; padding: 0; border: 1px solid var(--chat-line); border-radius: 8px; overflow: hidden; background: #fff; text-align: left; cursor: pointer; }
@media (hover: hover) { .wa-sample:hover { border-color: var(--chat-action); } }
.wa-sample img { display: block; width: 100%; height: 70px; object-fit: cover; }
.wa-sample span { display: block; padding: 4px 6px 5px; font-size: 11px; line-height: 1.3; color: #3b4a52; }
.wa-sample::after { content: 'SAMPLE'; position: absolute; top: 5px; left: 5px; padding: 1px 5px; border-radius: 4px; background: rgba(160, 30, 30, 0.85); color: #fff; font-size: 8.5px; font-weight: 800; letter-spacing: 0.08em; }
.wa-sample[data-used='true'] { opacity: 0.55; }
.wa-samples__label { padding: 0 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--chat-meta); }
.wa-review { list-style: none; margin: 0; padding: 6px 12px 8px; display: grid; gap: 6px; }
.wa-review li { display: grid; grid-template-columns: minmax(0, 1fr) 18px; gap: 0 8px; }
.wa-review__label { font-size: 11.5px; color: var(--chat-meta); }
.wa-review__value { grid-column: 1; font-size: 13.5px; font-weight: 500; color: var(--chat-ink); overflow-wrap: anywhere; }
.wa-review__status { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.wa-review__status svg { width: 17px; height: 17px; }
.wa-review li[data-status='ok'] .wa-review__status { color: #3fae6a; }
.wa-review li[data-status='warning'] .wa-review__status { color: #d08a00; }
.wa-review li[data-status='error'] .wa-review__status { color: #c0392b; }
.wa-review__note { grid-column: 1 / -1; font-size: 11.5px; color: #8a6a00; }
.wa-review li[data-status='error'] .wa-review__note { color: #b03228; }
.wa-review li[data-status='ok'] .wa-review__note { color: #2f7d4c; }
.wa-done { display: flex; align-items: center; gap: 6px; margin: 4px 12px 10px; padding: 7px 10px; border-radius: 8px; background: #e8f6ec; color: #11663a; font-size: 12.5px; font-weight: 600; }
.wa-done svg { width: 15px; height: 15px; }
.wa-done--muted { background: #eef1f2; color: #54656f; }

/* consent card */
.wa-consent { border-top: 3px solid var(--gold); }
.wa-consent__brand { display: flex; align-items: center; gap: 8px; padding: 10px 12px 0; }
.wa-consent__brand img { width: 26px; height: 26px; }
.wa-consent__brand span { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); }
.wa-consent__fields { margin: 0; padding: 6px 12px; display: grid; gap: 4px; }
.wa-consent__fields div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; font-size: 12.5px; }
.wa-consent__fields dt { color: var(--chat-meta); }
.wa-consent__fields dd { margin: 0; overflow-wrap: anywhere; }
.wa-consent__edit { margin: 2px 12px 0; padding: 0; border: 0; background: none; color: var(--chat-action); font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.wa-consent__text { margin: 8px 12px 10px; padding: 8px 10px; border: 1px solid rgba(201, 162, 75, 0.55); border-radius: 8px; background: #fffaf0; color: #4d4428; font-size: 12px; line-height: 1.45; }
.wa-consent__form { display: grid; gap: 8px; padding: 6px 12px 10px; }

/* hand-off */
.wa-handoff { align-self: center; width: min(92%, 330px); margin: 8px 0; padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: var(--bubble-shadow); text-align: center; animation: pop 0.25s var(--ease) both; }
.wa-handoff__icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #e7f6f3; color: var(--chat-action); }
.wa-handoff__icon svg { width: 22px; height: 22px; }
.wa-handoff__title { margin: 6px 0 2px; font-size: 14px; font-weight: 600; }
.wa-handoff__line { font-size: 12.5px; color: #54656f; }
.wa-handoff__ticket { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--chat-meta); }
.wa-handoff details { margin-top: 8px; text-align: left; font-size: 12.5px; color: #3b4a52; }
.wa-handoff summary { cursor: pointer; color: var(--chat-action); font-weight: 600; }
.wa-handoff.is-joined .wa-handoff__icon { background: #dcf3e4; color: #1f8a4c; }
.wa-handoff__dots { display: inline-flex; gap: 3px; margin-left: 4px; }
.wa-handoff__dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: typing 1.2s infinite; }
.wa-handoff__dots i:nth-child(2) { animation-delay: 0.15s; }
.wa-handoff__dots i:nth-child(3) { animation-delay: 0.3s; }
.wa-group { display: flex; flex-direction: column; }
.wa-joined { align-self: center; max-width: 90%; margin: 8px 0 2px; padding: 4px 12px; border-radius: 8px; background: #e3f1fb; color: #0d5a8a; font-size: 12px; font-weight: 600; text-align: center; box-shadow: var(--bubble-shadow); }
.wa-demo-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; background: #eef1f2; color: #54656f; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; vertical-align: 1px; }

/* resting / limits notices */
.wa-resting { align-self: center; width: min(92%, 330px); margin: 8px 0; padding: 14px; border-radius: 12px; background: #fff; box-shadow: var(--bubble-shadow); text-align: center; }
.wa-resting__icon { font-size: 26px; line-height: 1; }
.wa-resting p { margin: 6px 0 10px; font-size: 13px; color: #3b4a52; }
.wa-resting .wa-btn { width: 100%; }
.wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 20px;
  background: var(--head-bg);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
@media (hover: hover) { .wa-btn:hover { color: #fff; filter: brightness(1.08); } }
.wa-btn svg { flex: none; width: 18px; height: 18px; }
.wa-btn--ghost { border: 1px solid rgba(10, 116, 128, 0.35); background: #fff; color: var(--chat-action); }
@media (hover: hover) { .wa-btn--ghost:hover { color: var(--chat-action); background: #f2fbfa; filter: none; } }
.wa-btn:disabled { opacity: 0.6; cursor: default; }
.wa-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 12px 12px; }
.wa-btn-row--stack { grid-template-columns: 1fr; }

/* ==========================================================================
   Sheets, lightbox, menus
   ========================================================================== */
.wa-overlay { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(11, 20, 26, 0.42); animation: fade 0.18s ease both; }
@keyframes fade { from { opacity: 0; } }
.wa-sheet {
  display: flex;
  flex-direction: column;
  max-height: 88%;
  border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
  background: #fff;
  box-shadow: 0 -8px 30px rgba(11, 20, 26, 0.2);
  animation: rise 0.24s var(--ease) both;
  outline: none;
}
@keyframes rise { from { transform: translateY(40px); opacity: 0.4; } }
.wa-sheet__grab { width: 38px; height: 4px; margin: 8px auto 2px; border-radius: 2px; background: #d1d7db; }
.wa-sheet__head { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: center; gap: 6px; padding: 4px 8px 8px; border-bottom: 1px solid var(--chat-line); }
.wa-sheet__title { margin: 0; font-size: 16px; font-weight: 600; text-align: center; color: var(--chat-ink); }
.wa-sheet__close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; color: #54656f; cursor: pointer; }
@media (hover: hover) { .wa-sheet__close:hover { background: rgba(17, 27, 33, 0.06); } }
.wa-sheet__close svg { width: 22px; height: 22px; }
.wa-sheet__body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 0 8px; overscroll-behavior: contain; }
.wa-sheet__foot { padding: 10px 14px 14px; border-top: 1px solid var(--chat-line); }
.wa-sheet__foot .wa-btn { width: 100%; }
.wa-sheet__section { padding: 12px 16px 4px; font-size: 13px; font-weight: 600; color: var(--chat-action); }
.wa-option { display: grid; grid-template-columns: minmax(0, 1fr) 22px; gap: 1px 12px; align-items: center; width: 100%; padding: 10px 16px; border: 0; border-bottom: 1px solid rgba(17, 27, 33, 0.06); background: none; color: var(--chat-ink); text-align: left; cursor: pointer; }
@media (hover: hover) { .wa-option:hover { background: #f5f7f8; } }
.wa-option__title { font-size: 15px; }
.wa-option__desc { grid-column: 1; font-size: 13px; color: var(--chat-meta); }
.wa-radio { grid-row: 1 / span 2; grid-column: 2; width: 20px; height: 20px; border: 2px solid #8696a0; border-radius: 50%; }
.wa-option[aria-checked='true'] .wa-radio { border-color: var(--chat-action); box-shadow: inset 0 0 0 4px #fff; background: var(--chat-action); }
.wa-pitem { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; width: 100%; padding: 10px 16px; border: 0; border-bottom: 1px solid rgba(17, 27, 33, 0.06); background: none; color: inherit; text-align: left; cursor: pointer; }
@media (hover: hover) { .wa-pitem:hover { background: #f5f7f8; } }
.wa-pitem img { grid-column: 1; grid-row: 1 / span 3; width: 60px; height: 60px; border-radius: 8px; object-fit: cover; }
.wa-pitem__name { grid-column: 2; grid-row: 1; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.wa-pitem__sum { grid-column: 2; font-size: 12.5px; color: var(--chat-meta); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wa-pitem__price { grid-column: 2; font-size: 13.5px; font-weight: 600; color: #1d2b30; }
.wa-pitem__go { grid-column: 3; grid-row: 1 / span 3; color: #8696a0; }
.wa-pitem__go svg { width: 18px; height: 18px; }
.wa-pitem.is-unavailable { opacity: 0.6; }
.wa-detail__img { display: block; width: 100%; max-height: 300px; aspect-ratio: 4 / 3; object-fit: cover; background: #f2f2f2; }
.wa-detail { padding: 12px 16px 4px; }
.wa-detail__name { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.25; }
.wa-detail__price { margin-top: 4px; font-size: 16px; font-weight: 600; }
.wa-detail__desc { margin-top: 8px; font-size: 14px; line-height: 1.5; color: #3b4a52; }
.wa-detail__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wa-detail__tags span { padding: 2px 8px; border-radius: 10px; background: #eef1f2; font-size: 11.5px; color: #54656f; }
.wa-variants { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wa-variant { padding: 7px 12px; border: 1px solid #c8d0d4; border-radius: 18px; background: #fff; color: var(--chat-ink); font-size: 13px; cursor: pointer; }
.wa-variant[aria-pressed='true'] { border-color: var(--chat-action); background: #e9f6f5; color: var(--chat-action); font-weight: 600; }
.wa-variant:disabled { color: #a9b3b8; text-decoration: line-through; cursor: not-allowed; }
.wa-variants__label { margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--chat-meta); }

/* fields in sheets and cards */
.wa-fields { display: grid; gap: 12px; padding: 12px 16px; }
.wa-field { display: grid; gap: 5px; }
.wa-field > label, .wa-field > .wa-field__label { font-size: 13px; font-weight: 600; color: #3b4a52; }
.wa-field .req { color: #b03228; }
.wa-field input[type='text'], .wa-field input[type='email'], .wa-field input[type='tel'], .wa-field input[type='number'], .wa-field input[type='date'], .wa-field textarea, .wa-field select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #c8d0d4;
  border-radius: 10px;
  background: #fff;
  color: var(--chat-ink);
  font: inherit;
  font-size: 15px;
}
.wa-field textarea { min-height: 82px; resize: vertical; }
.wa-field input:focus, .wa-field textarea:focus, .wa-field select:focus { outline: none; border-color: var(--chat-action); box-shadow: 0 0 0 3px rgba(10, 116, 128, 0.18); }
.wa-field [aria-invalid='true'] { border-color: #c0392b; }
.wa-field__error { font-size: 12px; color: #b03228; }
.wa-field__error:empty { display: none; }
.wa-check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13.5px; color: #3b4a52; }
.wa-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--chat-action); }
.wa-form-note { padding: 0 16px; font-size: 12px; color: var(--chat-meta); }

/* attach menu */
.wa-attach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px 16px 20px; }
.wa-attach__item { display: grid; justify-items: center; gap: 6px; padding: 8px 4px; border: 0; border-radius: 12px; background: none; color: #3b4a52; font-size: 12.5px; cursor: pointer; }
@media (hover: hover) { .wa-attach__item:hover { background: #f5f7f8; } }
.wa-attach__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; }
.wa-attach__icon svg { width: 24px; height: 24px; }
.wa-attach__item[data-kind='file'] .wa-attach__icon { background: #7f66ff; }
.wa-attach__item[data-kind='camera'] .wa-attach__icon { background: #ff2e74; }
.wa-attach__item[data-kind='samples'] .wa-attach__icon { background: #00a5a8; }
.wa-attach__item[data-kind='location'] .wa-attach__icon { background: #1fa855; }
.wa-sample-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px 16px; }
.wa-sample-grid .wa-sample { width: auto; }
.wa-sample-grid .wa-sample img { height: 96px; }
.wa-sample-grid .wa-sample span { font-size: 12px; }
.wa-sample__desc { color: var(--chat-meta) !important; padding-top: 0 !important; font-size: 11px !important; }

/* business info */
.wa-info { padding: 18px 16px 10px; text-align: center; }
.wa-info img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.wa-info h3 { margin: 10px 0 2px; font-family: var(--chat-font); font-size: 19px; font-weight: 600; color: var(--chat-ink); letter-spacing: 0; }
.wa-info__cat { font-size: 13px; color: var(--chat-meta); }
.wa-info dl { margin: 14px 0 0; display: grid; gap: 1px; text-align: left; border-radius: 12px; overflow: hidden; background: var(--chat-line); }
.wa-info dl div { padding: 10px 12px; background: #fff; }
.wa-info dt { font-size: 11.5px; color: var(--chat-meta); }
.wa-info dd { margin: 1px 0 0; font-size: 14px; color: var(--chat-ink); }
.wa-info__note { margin-top: 12px; font-size: 12px; color: var(--chat-meta); }
.wa-menu { position: absolute; z-index: 25; top: 58px; right: 8px; min-width: 210px; padding: 6px 0; border-radius: 10px; background: #fff; box-shadow: 0 6px 24px rgba(11, 20, 26, 0.25); animation: fade 0.12s ease both; }
.wa-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 16px; border: 0; background: none; color: var(--chat-ink); font-size: 14.5px; text-align: left; cursor: pointer; }
@media (hover: hover) { .wa-menu button:hover { background: #f5f7f8; } }
.wa-menu svg { width: 18px; height: 18px; color: #54656f; }

/* lightbox */
.wa-lightbox { position: absolute; inset: 0; z-index: 30; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgba(11, 20, 26, 0.96); color: #fff; animation: fade 0.18s ease both; outline: none; }
.wa-lightbox__bar { display: flex; align-items: center; gap: 8px; padding: 52px 8px 6px; }
.wa-lightbox__count { flex: 1; font-size: 14px; opacity: 0.85; padding-left: 8px; }
.wa-lightbox__btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; cursor: pointer; }
@media (hover: hover) { .wa-lightbox__btn:hover { background: rgba(255, 255, 255, 0.2); } }
.wa-lightbox__btn svg { width: 22px; height: 22px; }
.wa-lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 8px; }
.wa-lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.wa-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.wa-lightbox__nav--prev { left: 8px; }
.wa-lightbox__nav--next { right: 8px; }
.wa-lightbox__caption { padding: 10px 16px 18px; font-size: 14px; line-height: 1.45; text-align: center; color: rgba(255, 255, 255, 0.9); }

/* in-chat toast */
.wa-toast { position: absolute; z-index: 40; left: 50%; bottom: 84px; max-width: 86%; padding: 9px 14px; border-radius: 10px; background: rgba(32, 44, 51, 0.94); color: #fff; font-size: 13px; text-align: center; transform: translateX(-50%); animation: fade 0.2s ease both; pointer-events: none; }

/* ==========================================================================
   "Show how the agent thinks"
   ========================================================================== */
.wa-insight { display: none; }
.wa.show-insights .wa-insight { display: block; }
.wa-insight {
  align-self: stretch;
  margin: 8px 2px 4px;
  border: 1px solid rgba(201, 162, 75, 0.55);
  border-radius: 12px;
  background: #0e3b2e;
  color: #e9efe9;
  font-size: 12.5px;
  line-height: 1.45;
  box-shadow: 0 6px 16px -10px rgba(14, 59, 46, 0.8);
  animation: pop 0.22s var(--ease) both;
  overflow: hidden;
}
.wa-insight__head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.wa-insight__head svg { flex: none; width: 16px; height: 16px; color: #c9a24b; }
.wa-insight__title { font-weight: 600; letter-spacing: 0.01em; color: #fff; }
.wa-insight__state { margin-left: auto; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; color: #a8bfb0; white-space: nowrap; }
.wa-insight__state[data-live='true']::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #7fc4b8; vertical-align: 1px; animation: blink 1s steps(1) infinite; }
.wa-insight__think { padding: 8px 10px 0; }
.wa-insight__label { display: block; margin-bottom: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #c9a24b; }
.wa-insight__thought { margin: 0; max-height: 96px; overflow: hidden; color: #d5e0d8; white-space: pre-wrap; font-style: italic; mask-image: linear-gradient(180deg, #000 70%, transparent); }
.wa-insight.is-open .wa-insight__thought { max-height: none; mask-image: none; }
.wa-insight__more { margin: 2px 0 0; padding: 0; border: 0; background: none; color: #7fc4b8; font-size: 11.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.wa-insight__tools { list-style: none; margin: 0; padding: 6px 10px 2px; }
.wa-tool { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 0 8px; padding: 5px 0; border-top: 1px dashed rgba(255, 255, 255, 0.08); }
.wa-tool:first-child { border-top: 0; }
.wa-tool__icon { width: 16px; height: 16px; margin-top: 1px; color: #7fc4b8; }
.wa-tool[data-ok='false'] .wa-tool__icon { color: #f2a097; }
.wa-tool[data-running='true'] .wa-tool__icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.wa-tool__title { color: #fff; font-weight: 600; }
.wa-tool__ms { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 10.5px; color: #8fb0a2; }
.wa-tool__call { grid-column: 2 / -1; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; color: #a8bfb0; overflow-wrap: anywhere; }
.wa-tool__call b { color: #e7c776; font-weight: 500; }
.wa-tool__result { grid-column: 2 / -1; color: #d5e0d8; }
.wa-tool[data-ok='false'] .wa-tool__result { color: #f6c2bb; }
.wa-insight__events { list-style: none; margin: 0; padding: 4px 10px 2px; }
.wa-insight__events li { display: flex; gap: 6px; padding: 3px 0; color: #e7c776; font-size: 11.5px; }
.wa-insight__foot { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 6px 10px 8px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 10.5px; color: #8fb0a2; }
.wa-insight--event { background: #173f33; }
.wa-insight--event .wa-insight__head { border-bottom: 0; }


/* ==========================================================================
   Responsive: tablets, then phones (a chooser, then a full-screen chat)
   ========================================================================== */
@media (max-width: 1199px) {
  .demo-stage__inner { grid-template-columns: minmax(260px, 1fr) var(--phone-w); }
  .demo-side { grid-column: 1; grid-row: 2; align-self: start; }
  .demo-side__pinned { position: static; max-height: none; }
  .demo-side__pinned .tour { max-height: 420px; }
  .demo-device { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 960px) {
  :root { --sticky-top: 84px; }
}

@media (max-width: 899px) {
  .demo-stage { padding-block: clamp(48px, 12vw, 72px) clamp(80px, 18vw, 112px); }
  .demo-stage__inner { grid-template-columns: minmax(0, 1fr); }
  .demo-device { display: none; position: static; }
  .demo-side { grid-row: auto; grid-column: 1; }
  .side-card--insights { display: none; }
  .scenario-card { grid-template-columns: 56px minmax(0, 1fr) 36px; padding: 20px 18px; }
  .scenario-card__avatar { grid-column: 1; grid-row: 1 / span 2; width: 56px; height: 56px; }
  .scenario-card__industry { grid-column: 2; grid-row: 1; }
  .scenario-card__name { grid-column: 2; grid-row: 2; align-self: start; }
  .scenario-card__open { display: grid; place-items: center; grid-column: 3; grid-row: 1 / span 2; align-self: center; width: 36px; height: 36px; border: 1px solid rgba(201, 162, 75, 0.55); border-radius: 50%; color: var(--gold-ink); }
  .scenario-card__open svg { width: 16px; height: 16px; }
  .scenario-card[data-selected='true'] { box-shadow: none; }

  /* The chat opens over the page like an app screen. */
  @keyframes chat-open { from { opacity: 0; transform: translate3d(0, 32px, 0); } }
  .demo-chat-open { overflow: hidden; }
  body.demo-chat-open::after { display: none; }
  /* The stage is a stacking context (section--solid): lift it, with the chat inside, above the fixed site header. */
  .demo-chat-open .demo-stage { z-index: 75; }
  .demo-chat-open .site-header { visibility: hidden; }
  .demo-chat-open .demo-device {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    background: var(--chat-bg);
    animation: chat-open 0.55s var(--ease-out) both;
  }
  .demo-chat-open .phone { width: 100%; height: 100%; animation: none; }
  .demo-chat-open .phone__bezel { height: 100%; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .demo-chat-open .phone__bezel::before, .demo-chat-open .phone__bezel::after { display: none; }
  .demo-chat-open .phone__status { display: none; }
  .demo-chat-open .phone__screen { border-radius: 0; }
  .demo-chat-open .wa-head { min-height: 60px; padding: calc(env(safe-area-inset-top, 0px) + 8px) 6px 8px 4px; }
  .demo-chat-open .wa-head__back { display: grid; }
  .demo-chat-open .wa-foot { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); }
  .demo-chat-open .wa-lightbox__bar { padding-top: calc(env(safe-area-inset-top, 0px) + 8px); }
  .demo-chat-open .wa-toast { bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); }
}

@media (max-width: 640px) {
  .demo-hero .scroll-cue { display: none; }
}

@media (max-width: 420px) {
  .wa-bubble { max-width: 86%; }
  .wa-bubble--wide { width: 86%; }
  .demo-hero__notice { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .phone, .scenario-card, .chat-empty, .demo-chat-open .demo-device, .wa,
  .wa-row, .wa-insight, .wa-sheet, .wa-overlay, .wa-lightbox, .wa-handoff, .wa-toast { animation: none !important; }
  .demo-cards__skeleton { animation: none; }
  .wa-typing span { animation: none; opacity: 0.7; }
  .wa-step.is-current .wa-step__dot { animation: none; }
  .wa-body { scroll-behavior: auto; }
}

@media print {
  .demo-stage, .demo-facts { display: none; }
}
