/* ──────────────────────────────────────────────────────────────────
   AWWEE — Locked direction
   Header chrome locked · welcome separate · subtle chat thread below
   ────────────────────────────────────────────────────────────────── */

:root {
  --yellow: #FEB602;
  --yellow-dk: #E89F00;
  --yellow-lt: #FFF1C2;
  --blue: #383BF1;
  --green: #2BC26A;

  --L-surface: #FBF7EE;
  --L-card: #FFFFFF;
  --L-ink: #0F0D0B;
  --L-muted: rgba(15, 13, 11, .62);
  --L-faint: rgba(15, 13, 11, .42);
  --L-line: rgba(15, 13, 11, .10);
  --L-line-2: rgba(15, 13, 11, .20);

  --D-surface: #100E0C;
  --D-card: #1A1612;
  --D-ink: #FFFFFF;
  --D-muted: rgba(255, 255, 255, .68);
  --D-faint: rgba(255, 255, 255, .42);
  --D-line: rgba(255, 255, 255, .10);
  --D-line-2: rgba(255, 255, 255, .22);
}

#my-chat.awwee-chat-shell,
#my-chat.awwee-chat-shell *,
#my-chat.awwee-chat-shell *::before,
#my-chat.awwee-chat-shell *::after {
  box-sizing: border-box;
}

#my-chat .host {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  box-sizing: border-box;
}

#my-chat .host.l {
  background: #E8E4D6;
}

#my-chat .host.d {
  background: #06050A;
}

/* ═════════════════════════════════════════════════════════════════
   PANEL
   ═════════════════════════════════════════════════════════════════ */
.aw {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 24px;

  display: flex;
  flex-direction: column;
  font-family: 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  border: 1px solid;
  isolation: isolate;
  overflow: hidden;
}

.aw.light {
  background: var(--L-surface);
  color: var(--L-ink);
  border-color: var(--L-line);
  box-shadow:
    0 1px 2px rgba(15, 13, 11, .04),
    0 24px 60px -22px rgba(15, 13, 11, .25),
    0 60px 120px -40px rgba(15, 13, 11, .30);
}

.aw.dark {
  background: var(--D-surface);
  color: var(--D-ink);
  border-color: var(--D-line);
  box-shadow:
    0 24px 60px -22px rgba(0, 0, 0, .65),
    0 60px 120px -40px rgba(0, 0, 0, .55);
}

.aw.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .05) 1px, transparent 1.4px);
  background-size: 20px 20px;
  z-index: 0;
  mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
}

/* ═════════════════════════════════════════════════════════════════
   HEADER (locked)
   ═════════════════════════════════════════════════════════════════ */
.aw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid;
  position: relative;
  z-index: 5;
  flex-shrink: 0;
}

.aw.light .aw-header {
  border-color: rgba(15, 13, 11, .07);
}

.aw.dark .aw-header {
  border-color: rgba(255, 255, 255, .07);
}

.aw-id {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  flex: 1;
}

/* Awwee avatar — responsive size so the header text still has room */
.aw {
  --aw-avatar-size: 55px;
  --chat-avatar-size: 50px;
}

.aw.size-tablet {
  --aw-avatar-size: 50px;
  --chat-avatar-size: 50px;
}

.aw.size-mobile {
  --aw-avatar-size: 48px;
  --chat-avatar-size: 45px;
}

.aw-avatar {
  width: var(--aw-avatar-size);
  height: var(--aw-avatar-size);
  border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(circle at 32% 30%, #fff4c2 0%, var(--yellow) 55%, var(--yellow-dk) 100%);
  box-shadow:
    inset 0 -3px 5px rgba(232, 159, 0, .55),
    inset 0 2px 3px rgba(255, 255, 255, .55),
    0 4px 10px -3px rgba(232, 159, 0, .55);
  position: relative;
}

.aw-avatar::before,
.aw-avatar::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  background: #0F0D0B;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.aw-avatar::before {
  left: calc(var(--aw-avatar-size) * .29);
}

.aw-avatar::after {
  right: calc(var(--aw-avatar-size) * .29);
}

/* green online dot — keeps pulsing */
.aw-avatar .pulse {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px var(--L-surface);
  animation: dotBlink 1.6s ease-in-out infinite;
}

.aw.dark .aw-avatar .pulse {
  box-shadow: 0 0 0 2px var(--D-surface);
}

.aw-avatar .pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: dotPulse 1.8s ease-out infinite;
}

@keyframes dotPulse {
  0% {
    transform: scale(1);
    opacity: .6
  }

  100% {
    transform: scale(2.6);
    opacity: 0
  }
}

@keyframes dotBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .55;
  }
}

.aw-id-text {
  min-width: 0;
  line-height: 1.1;
}

#my-chat .aw-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.022em;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: #0F0D0B !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: currentColor !important;
}

#my-chat .aw.dark .aw-name {
  color: #FFFFFF !important;
}

/* AI badge — blinks subtly */
#my-chat .aw-name .badge {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: .16em;
  background: var(--yellow);
  color: #0F0D0B;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  animation: badgeBlink 2.4s ease-in-out infinite;
  position: relative;
  -webkit-text-fill-color: #0F0D0B;
  text-shadow: none;
}

#my-chat .aw.dark .aw-name .badge {
  color: #0F0D0B;
  -webkit-text-fill-color: #0F0D0B;
}

@keyframes badgeBlink {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(254, 182, 2, .55);
  }

  50% {
    opacity: .78;
    box-shadow: 0 0 0 4px rgba(254, 182, 2, .0);
  }
}

.aw-tag {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 11px;
  margin-top: 2px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
}

.aw.size-tablet .aw-tag {
  font-size: 10.8px;
}

.aw.size-mobile .aw-tag {
  font-size: 10.4px;
}

.aw.light .aw-tag {
  color: var(--L-muted);
}

.aw.dark .aw-tag {
  color: var(--D-muted);
}

.aw-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.aw-toggle {
  width: 48px;
  height: 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  position: relative;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  transition: background .25s;
}

.aw.light .aw-toggle {
  background: rgba(15, 13, 11, .08);
}

.aw.dark .aw-toggle {
  background: rgba(255, 255, 255, .12);
}

.aw-toggle .thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: #0F0D0B;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .18);
  transition: transform .28s cubic-bezier(.4, .2, .2, 1), background .25s, color .25s;
}

.aw.dark .aw-toggle .thumb {
  transform: translateX(22px);
  background: #0F0D0B;
  color: var(--yellow);
}

.aw-toggle svg {
  width: 12px;
  height: 12px;
}

/* Login — thin visible border */
#my-chat .aw-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 14px;
  border-radius: 999px;
  border: 1px solid;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  cursor: pointer;
  background: transparent;
  transition: background .15s, transform .15s, border-color .15s;
}

#my-chat .aw.light .aw-login {
  border-color: var(--L-line-2);
  color: var(--L-ink);
}

#my-chat .aw.dark .aw-login {
  border-color: var(--D-line-2);
  color: var(--D-ink);
}

#my-chat .aw-login:hover {
  transform: translateY(-1px);
}

#my-chat .aw.light .aw-login:hover {
  background: #fff;
  border-color: rgba(15, 13, 11, .35);
}

#my-chat .aw.dark .aw-login:hover {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .36);
}

/* Hide login text on mobile, keep only icon */
#my-chat .aw-login svg {
  width: 11px;
  height: 11px;
  stroke-width: 2.2;
}

#my-chat .aw.size-mobile .aw-login {
  display: none !important;
}

#my-chat .aw-iconbtn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}

#my-chat .aw.light .aw-iconbtn {
  color: var(--L-muted);
}

#my-chat .aw.dark .aw-iconbtn {
  color: var(--D-muted);
}

#my-chat .aw.light .aw-iconbtn:hover {
  background: rgba(15, 13, 11, .07);
  color: var(--L-ink);
}

#my-chat .aw.dark .aw-iconbtn:hover {
  background: rgba(255, 255, 255, .10);
  color: var(--D-ink);
}

/* ═════════════════════════════════════════════════════════════════
   STAGE — Apple-landing minimal
   ═════════════════════════════════════════════════════════════════ */
#my-chat .stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 48px 40px 24px;
  position: relative;
  z-index: 2;
  min-height: 0;
  overflow: hidden;
}

#my-chat .aw.size-tablet .stage {
  padding: 44px 36px 22px;
}

#my-chat .aw.size-mobile .stage {
  padding: 30px 24px 18px;
}

#my-chat .stage.is-chatting {
  flex: 0 0 auto;
  min-height: auto;
  padding: 22px 28px 12px;
  overflow: visible;
}

#my-chat .aw.size-mobile .stage.is-chatting {
  padding: 18px 20px 10px;
}

/* — Layout A: Big Hello — */
#my-chat .stage.a {
  justify-content: space-between;
}

#my-chat .stage.a .hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 8px;
}

#my-chat .stage.is-chatting .hero {
  gap: 8px;
  margin-top: 0;
}

#my-chat .stage.a .hello {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 84px;
  line-height: .94;
  letter-spacing: -.05em;
  margin: 0;
}

#my-chat .stage.is-chatting .hello {
  font-size: 34px;
  line-height: 1;
}

/* size variants for hello */
#my-chat .aw.size-tablet .stage.a .hello {
  font-size: 72px;
}

#my-chat .aw.size-mobile .stage.a .hello {
  font-size: 60px;
}

#my-chat .aw.size-tablet .stage.is-chatting .hello,
#my-chat .aw.size-mobile .stage.is-chatting .hello {
  font-size: 34px;
}

#my-chat .aw.light .stage.a .hello {
  color: var(--L-ink);
}

#my-chat .aw.dark .stage.a .hello {
  color: var(--D-ink);
}

#my-chat .stage.a .hello .dot {
  color: var(--yellow-dk);
}

#my-chat .aw.dark .stage.a .hello .dot {
  color: var(--yellow);
}

#my-chat .stage.a .sub {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -.005em;
  max-width: 30ch;
  margin: 0;
}

#my-chat .stage.is-chatting .sub {
  max-width: 100%;
  font-size: 13px;
}

#my-chat .aw.light .stage.a .sub {
  color: var(--L-muted);
}

#my-chat .aw.dark .stage.a .sub {
  color: var(--D-muted);
}

#my-chat .stage.a .sub em {
  font-style: normal;
  font-weight: 700;
}

#my-chat .aw.light .stage.a .sub em {
  color: var(--L-ink);
}

#my-chat .aw.dark .stage.a .sub em {
  color: var(--D-ink);
}

#my-chat .stage.a .qa {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 8px;
}

#my-chat .stage.a .line {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  row-gap: 6px;
  align-items: baseline;
}

#my-chat .stage.a .line .ovl {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding-top: 3px;
  grid-column: 1;
  align-self: start;
}

#my-chat .aw.light .stage.a .line .ovl {
  color: var(--L-faint);
}

#my-chat .aw.dark .stage.a .line .ovl {
  color: var(--D-faint);
}

#my-chat .stage.a .line .v {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -.028em;
  line-height: 1.18;
  grid-column: 2;
  margin: 0;
}

#my-chat .aw.size-mobile .stage.a .line .v {
  font-size: 20px;
}

#my-chat .stage.a .line.you .v {
  color: inherit;
}

#my-chat .stage.a .line.awwee .v {
  color: var(--yellow-dk);
}

#my-chat .aw.dark .stage.a .line.awwee .v {
  color: var(--yellow);
}

#my-chat .stage.a .rule {
  height: 1px;
  width: 100%;
  grid-column: 1 / -1;
}

#my-chat .aw.light .stage.a .rule {
  background: rgba(15, 13, 11, .10);
}

#my-chat .aw.dark .stage.a .rule {
  background: rgba(255, 255, 255, .10);
}

#my-chat .dots-mini {
  display: flex;
  gap: 4px;
  align-items: center;
}

#my-chat .dots-mini span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .18;
  transition: opacity .3s, width .3s, background .3s;
}

#my-chat .dots-mini span.on {
  width: 16px;
  border-radius: 3px;
  opacity: 1;
  background: var(--yellow-dk);
}

#my-chat .aw.dark .dots-mini span.on {
  background: var(--yellow);
}

/* — Layout B: Spec Sheet — */
#my-chat .stage.b {
  justify-content: center;
  gap: 46px;
}

#my-chat .stage.b .display {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 64px;
  line-height: .96;
  letter-spacing: -.045em;
  margin: 0;
}

#my-chat .stage.b .display .accent {
  color: var(--yellow-dk);
}

#my-chat .aw.dark .stage.b .display .accent {
  color: var(--yellow);
}

#my-chat .stage.b .display .small-sub {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -.005em;
  margin-top: 14px;
}

#my-chat .aw.light .stage.b .display .small-sub {
  color: var(--L-muted);
}

#my-chat .aw.dark .stage.b .display .small-sub {
  color: var(--D-muted);
}

#my-chat .stage.b .spec {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding-top: 6px;
}

#my-chat .stage.b .spec .row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#my-chat .stage.b .spec .row .k {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#my-chat .aw.light .stage.b .spec .row .k {
  color: var(--L-faint);
}

#my-chat .aw.dark .stage.b .spec .row .k {
  color: var(--D-faint);
}

#my-chat .stage.b .spec .row .k .dotyel {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
}

#my-chat .stage.b .spec .row .v {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -.028em;
  line-height: 1.16;
  margin: 0;
}

#my-chat .stage.b .spec .row.b .v {
  color: var(--yellow-dk);
}

#my-chat .aw.dark .stage.b .spec .row.b .v {
  color: var(--yellow);
}

#my-chat .swap {
  animation: swapIn .55s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes swapIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═════════════════════════════════════════════════════════════════
   COMPOSER — prominent
   ═════════════════════════════════════════════════════════════════ */
.aw-composer {
  margin: 0 18px 18px;
  position: relative;
  z-index: 2;
  border-radius: 18px;
  padding: 7px 7px 7px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  flex-shrink: 0;
}

.aw.size-mobile .aw-composer {
  margin: 0 14px 14px;
  padding-left: 14px;
}

.aw.light .aw-composer {
  background: #FFFFFF;
  border-color: #0F0D0B;
  box-shadow: 0 8px 24px -10px rgba(15, 13, 11, .22), 0 2px 0 rgba(15, 13, 11, .08);
}

.aw.dark .aw-composer {
  background: #221E1A;
  border-color: #FFFFFF;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .5);
}

.aw-composer:focus-within {
  border-color: var(--yellow);
}

.aw.light .aw-composer:focus-within {
  box-shadow: 0 0 0 4px rgba(254, 182, 2, .20);
}

.aw.dark .aw-composer:focus-within {
  box-shadow: 0 0 0 4px rgba(254, 182, 2, .25);
}

.aw-input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.005em;
  color: inherit;
  padding: 10px 0;
  width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
}

.aw.size-mobile .aw-input {
  font-size: 12.5px;
}

.aw.light .aw-input::placeholder {
  color: rgba(15, 13, 11, .50);
}

.aw.dark .aw-input::placeholder {
  color: rgba(255, 255, 255, .55);
}

.aw-send {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  background: var(--yellow);
  color: #0F0D0B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -2px 3px rgba(232, 159, 0, .55),
    0 6px 14px -4px rgba(254, 182, 2, .6);
  transition: transform .15s;
  flex-shrink: 0;
}

.aw.size-mobile .aw-send {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.aw-send:hover {
  transform: translateY(-1px) scale(1.04);
}

.aw-send svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.3;
}

#my-chat .icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ═════════════════════════════════════════════════════════════════
   CHAT THREAD  (data-aw-thread)
   Hidden until chat starts; chat.js renders all content into #chat-box
   ═════════════════════════════════════════════════════════════════ */
.aw-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.aw-thread.d-none {
  display: none !important;
}

/* The scrollable message list */
.aw-thread .chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
}

.aw-thread #chat-box {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  padding: 14px 16px 8px !important;
}

.aw.size-mobile .aw-thread #chat-box {
  padding: 10px 12px 6px !important;
}

/* Chat messages inside the popup only */
#my-chat .chat-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#my-chat .aw-intro {
  padding: 4px 0 2px;
}

#my-chat .aw-intro .sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

#my-chat .chat-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

#my-chat .bot-content {
  align-self: flex-start;
  width: 100%;
}

#my-chat .chat-content {
  align-self: flex-end;
  max-width: 86%;
}

#my-chat .bot-row {
  justify-content: flex-start;
}

#my-chat .user-row {
  justify-content: flex-end;
}

#my-chat .bot-img {
  flex: 0 0 var(--chat-avatar-size);
  width: var(--chat-avatar-size);
  min-width: var(--chat-avatar-size);
}

#my-chat .chat-avatar {
  width: var(--chat-avatar-size) !important;
  height: var(--chat-avatar-size) !important;
  object-fit: contain;
  display: block;
}

#my-chat .bot {
  max-width: min(78%, 380px);
}

#my-chat .bot:not(.bot-cards) {
  padding: 8px 11px;
  border-radius: 12px;
}

#my-chat .aw.light .bot:not(.bot-cards) {
  background: #fff;
  color: var(--L-ink);
  border: 1px solid var(--L-line);
}

#my-chat .aw.dark .bot:not(.bot-cards) {
  background: var(--D-card);
  color: var(--D-ink);
  border: 1px solid var(--D-line);
}

#my-chat .bot.bot-cards {
  max-width: 100%;
  width: 100%;
  min-width: 0;
}

#my-chat .bot-cards .main-message,
#my-chat .bot-cards .next-step-text {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 8px 11px;
  border-radius: 12px;
  margin-bottom: 10px;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#my-chat .bot-cards .main-message:empty,
#my-chat .bot-cards .next-step-text:empty {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
}

#my-chat .aw.light .bot-cards .main-message,
#my-chat .aw.light .bot-cards .next-step-text {
  background: #fff;
  color: var(--L-ink);
  border: 1px solid var(--L-line);
}

#my-chat .aw.dark .bot-cards .main-message,
#my-chat .aw.dark .bot-cards .next-step-text {
  background: var(--D-card);
  color: var(--D-ink);
  border: 1px solid var(--D-line);
}

#my-chat .user {
  max-width: min(100%, 360px);
  padding: 8px 11px;
  border-radius: 12px;
  background: var(--yellow);
  color: #0F0D0B;
  border: 1px solid rgba(15, 13, 11, .12);
}

#my-chat .user span,
#my-chat .bot span {
  line-height: 1.4;

}

#my-chat .bot-cards .blog-grid {
  row-gap: 8px;
}

#my-chat .aw-thread #chat-box,
#my-chat .side-panel {
  overflow-x: hidden;
}

/* Chat loader inside panel */
.aw-thread .chat-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  font-size: 13px;
}

.aw.light .aw-thread .chat-loader {
  color: var(--L-muted);
}

.aw.dark .aw-thread .chat-loader {
  color: var(--D-muted);
}

/* Scroll-to-bottom button */
.aw-thread .scroll-to-bottom {
  position: absolute;
  bottom: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: opacity .2s;
}

.aw.light .aw-thread .scroll-to-bottom {
  border-color: var(--L-line-2);
  color: var(--L-ink);
  background: #fff;
}

.aw.dark .aw-thread .scroll-to-bottom {
  border-color: var(--D-line-2);
  color: var(--D-ink);
  background: var(--D-card);
}

.aw-thread .scroll-to-bottom.d-none {
  display: none !important;
}

/* ─── Restyle the real .chat-textarea inside the new composer ───── */
/* The composer div already has the new panel's border/shadow styling.
   We just make the contenteditable feel native to it.              */
.aw-composer .chat-textarea.aw-input {
  flex: 1;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.005em;
  color: inherit;
  padding: 10px 0;
  min-width: 0;
  max-height: 120px;
  overflow-y: auto;
  overscroll-behavior: contain;
  line-height: 1.45;
  word-break: break-word;
}

.aw.size-mobile .aw-composer .chat-textarea.aw-input {
  font-size: 12.5px;
}

.aw-composer .chat-textarea.aw-input:empty::before {
  content: attr(data-placeholder);
  pointer-events: none;
}

.aw.light .aw-composer .chat-textarea.aw-input:empty::before {
  color: rgba(15, 13, 11, .50);
}

.aw.dark .aw-composer .chat-textarea.aw-input:empty::before {
  color: rgba(255, 255, 255, .55);
}

/* Restyle the real .chat-send-btn inside the new composer */
.aw-composer .chat-send-btn.aw-send {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  background: var(--yellow);
  color: #0F0D0B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -2px 3px rgba(232, 159, 0, .55),
    0 6px 14px -4px rgba(254, 182, 2, .6);
  transition: transform .15s;
  flex-shrink: 0;
}

.aw.size-mobile .aw-composer .chat-send-btn.aw-send {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.aw-composer .chat-send-btn.aw-send:hover {
  transform: translateY(-1px) scale(1.04);
}

.aw-composer .chat-send-btn.aw-send .chat-button-enabled__icon {
  width: 18px;
  height: 18px;
}

/* Disabled state */
.aw-composer .chat-send-btn.aw-send.disabled,
.aw-composer .chat-send-btn.aw-send:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#my-chat .grid-col.col-with-exp {
  position: absolute;
  inset: 0;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
  padding: 0 8px 0 24px;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

#my-chat .grid-col.col-with-exp.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#my-chat .chat-slider-content {
  display: none !important;
}

#my-chat .side-panel {
  position: relative;
  width: min(520px, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--L-surface);
  color: var(--L-ink);
  border-radius: 0;
  padding-top: 0 !important;
  box-shadow: none;
  margin: auto;
}

#my-chat[data-aw-theme="dark"] .side-panel {
  background: var(--D-surface);
  color: var(--D-ink);
}

#my-chat .side-panel::before {
  display: none !important;
}

#my-chat .chat-filter-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  background: var(--L-surface);
  color: #0F0D0B;
  box-shadow: none;
  z-index: 25;
}

#my-chat[data-aw-theme="dark"] .chat-filter-close {
  background: var(--D-surface);
  color: #fff;
}

#my-chat .side-panel .row.row-cols-1 {
  margin-top: 0;
}

@media (min-width:768px) and (max-width:991.98px) {
  #my-chat .aw-thread .bot-cards .blog-grid {
    row-gap: 18px;
  }

  #my-chat .aw-thread .bot-cards .col-lg-4 {
    width: 100%;
  }

  #my-chat .aw-thread .bot-cards .c .loc {
    font-size: 10px;
    padding: 5px 9px 5px 8px;
    top: 30px
  }

  #my-chat .aw-thread .bot-cards .c .meta-bottom {
    gap: 6px;
  }

  #my-chat .aw-thread .bot-cards .c .rating {
    font-size: 10px;
    padding: 4px 8px;
  }

  #my-chat .aw-thread .bot-cards .c .avail {
    font-size: 9px;
    padding: 4px 8px;
    gap: 4px;
  }

  #my-chat .aw-thread .bot-cards .highlight-badge-container .highlight-badge-text,
  #my-chat .aw-thread .bot-cards .highlight-badge-container span {
    font-size: 15px !important;
  }

  #my-chat .aw-thread .bot-cards .highlight-badge-container .highlight-badge-img:not(.green-badge) span {
    top: 48px;
    font-size: 15px !important;
  }

  #my-chat .aw-thread .bot-cards .highlight-badge-container .highlight-badge-text img {
    transform: scale(.88);
    transform-origin: center;
  }

  #my-chat .aw-thread .bot-cards .c .title {
    font-size: 16px;
    line-height: 1.2;
    padding: 8px 12px;
  }

  #my-chat .aw-thread .bot-cards .c .cta-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 66px;
  }

  #my-chat .aw-thread .bot-cards .c .price-block {
    padding: 10px 12px;
  }

  #my-chat .aw-thread .bot-cards .c .pnow {
    font-size: 19px;
  }

  #my-chat .aw-thread .bot-cards .c .price-foot {
    gap: 5px;
    margin-top: 4px;
    flex-wrap: wrap;
  }

  #my-chat .aw-thread .bot-cards .c .pold {
    font-size: 10px;
  }

  #my-chat .aw-thread .bot-cards .c .save-inline {
    font-size: 8px;
    padding: 2px 6px;
  }

  #my-chat .aw-thread .bot-cards .c .book {
    font-size: 13px;
    padding: 10px 12px;
    width: 100%;
    height: 100%;
    min-width: 0;
    align-self: stretch;
    justify-self: stretch;
    box-sizing: border-box;
    display: flex;
  }
}

@media (max-width: 600px) {
  #my-chat .grid-col.col-with-exp.active {
    background: var(--L-surface) !important;
    margin: auto;
    margin-left: 10px;

  }

  #my-chat .aw-thread .bot-cards .highlight-badge-container .highlight-badge-img:not(.green-badge) span {
    top: 20px;
  }

  [data-aw-theme="dark"]#my-chat .grid-col.col-with-exp.active {
    background: black !important;

  }

  #my-chat .bot .highlight-badge-container:has(.green-badge) span {
    top: 4px !important;
    margin-left: 9px !important;
  }
}

/* ═════════════════════════════════════════════════════════════════
   MOBILE — force cards to stack vertically (one per row)
   ═════════════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {

  #my-chat .aw-thread .bot-cards .blog-grid,
  #my-chat .bot-cards .blog-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
  }

  #my-chat .aw-thread .bot-cards .blog-grid>[class*="col-"],
  #my-chat .bot-cards .blog-grid>[class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* ═════════════════════════════════════════════════════════════════
   HOME PAGE BACKDROP — blur behind popup when chat is open
   ═════════════════════════════════════════════════════════════════ */
.awwee-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10040;
  /* just below the chat popup (10050) */
  background: rgba(0, 0, 0, .38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

body.awwee-chat-open .awwee-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ═════════════════════════════════════════════════════════════════
   DESKTOP — larger card typography now that popup is 680 px wide
   ═════════════════════════════════════════════════════════════════ */
@media (min-width: 992px) {
  #my-chat .aw-thread .bot-cards .c .loc {
    font-size: 12px;
    padding: 4px 9px 1px 9px;
    margin-top: -2px
  }

  #my-chat .aw-thread .bot-cards .c .meta-bottom {
    gap: 8px;
  }

  #my-chat .aw-thread .bot-cards .c .rating {
    font-size: 12px;
    padding: 5px 10px;
  }

  #my-chat .aw-thread .bot-cards .c .avail {
    font-size: 11px;
    padding: 5px 10px;
    gap: 5px;
  }

  #my-chat .aw-thread .bot-cards .c .title {
    font-size: 18px;
    line-height: 1.22;
    padding: 10px 14px;
  }

  #my-chat .aw-thread .bot-cards .c .cta-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 72px;
  }

  #my-chat .aw-thread .bot-cards .c .price-block {
    padding: 12px 14px;
  }

  #my-chat .aw-thread .bot-cards .c .pnow {
    font-size: 22px;
  }

  #my-chat .aw-thread .bot-cards .c .price-foot {
    gap: 6px;
    margin-top: 4px;
  }

  #my-chat .aw-thread .bot-cards .c .pold {
    font-size: 12px;
  }

  #my-chat .aw-thread .bot-cards .c .save-inline {
    font-size: 10px;
    padding: 3px 7px;
  }

  #my-chat .aw-thread .bot-cards .c .book {
    font-size: 15px;
    padding: 12px 14px;
    width: 100%;
    height: 100%;
    min-width: 0;
    align-self: stretch;
    justify-self: stretch;
    box-sizing: border-box;
    display: flex;
  }
}

#my-chat .aw-thread .bot-cards .highlight-badge-container .highlight-badge-text,
#my-chat .aw-thread .bot-cards .highlight-badge-container span {
  font-size: 12px !important;
}

#my-chat .aw-thread .bot-cards .c .cta-bar {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

#my-chat .chat-see-more {
  margin-left: 10px !important;
}

#my-chat .aw-thread .bot-cards .c .book {
  width: 100%;
  height: 100%;
  min-width: 0;
  align-self: stretch;
  justify-self: stretch;
  box-sizing: border-box;
  display: flex;
  margin: 0;
}
}

/* ── Frozen hello intro at top of chat thread ─────────────────── */
#my-chat .aw-chat-intro {
  padding: 18px 4px 14px;
  border-bottom: 1px solid;
  margin-bottom: 10px;
  flex-shrink: 0;
}

#my-chat .aw.light .aw-chat-intro,
#my-chat[data-aw-theme="light"] .aw-chat-intro {
  border-color: rgba(15, 13, 11, .08);
}

#my-chat .aw.dark .aw-chat-intro,
#my-chat[data-aw-theme="dark"] .aw-chat-intro {
  border-color: rgba(255, 255, 255, .08);
}

#my-chat .aw.light .aw-chat-intro .hello,
#my-chat[data-aw-theme="light"] .aw-chat-intro .hello {
  color: var(--L-ink);
}

#my-chat .aw.dark .aw-chat-intro .hello,
#my-chat[data-aw-theme="dark"] .aw-chat-intro .hello {
  color: var(--D-ink);
}

#my-chat .aw-chat-intro .hello .dot {
  color: var(--yellow-dk);
}

#my-chat .aw.dark .aw-chat-intro .hello .dot {
  color: var(--yellow);
}

#my-chat .aw.light .aw-chat-intro .sub {
  color: var(--L-muted);
}

#my-chat .aw.dark .aw-chat-intro .sub {
  color: var(--D-muted);
}

/* ═════════════════════════════════════════════════════════════════
   MOBILE & TABLET (≤ 991 px)
   • Logo above bubble (bot left, user right)
   • Bigger avatars
   • Vertical card stacking
   ═════════════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {

  /* ── Avatar size bump ─────────────────────────────────────────── */
  #my-chat {
    --chat-avatar-size: 36px;
  }

  /* ── Stack bot row: avatar on top-left, bubble below ─────────── */
  #my-chat .chat-row.bot-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  /* ── Stack user row: avatar on top-right, bubble below ───────── */
  #my-chat .chat-row.user-row {
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
  }

  /* Force user avatar to render BEFORE the bubble in DOM flow */
  #my-chat .chat-row.user-row .bot-img {
    order: -1;
  }

  /* Bot bubble stretches full width */
  #my-chat .chat-row.bot-row .bot {
    max-width: 100%;
    width: 100%;
  }

  /* Wrapper widths */
  #my-chat .bot-content {
    width: 100%;
  }

  #my-chat .chat-content {
    align-self: flex-end;
    max-width: 88%;
  }

  /* ── Vertical card stacking ───────────────────────────────────── */
  #my-chat .aw-thread .bot-cards .blog-grid,
  #my-chat .bot-cards .blog-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
  }

  #my-chat .aw-thread .bot-cards .blog-grid>[class*="col-"],
  #my-chat .bot-cards .blog-grid>[class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* ═════════════════════════════════════════════════════════════════
   CHAT INPUT — bigger font so typed text is easy to read
   ═════════════════════════════════════════════════════════════════ */
.aw-composer .chat-textarea.aw-input {
  font-size: 16px;
}


/* ═════════════════════════════════════════════════════════════════
   "YOU ASK / AWWEE SAYS" TRENDING TEXT — bigger on mobile
   ═════════════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {

  #my-chat .aw.size-mobile .stage.a .line .v,
  #my-chat .aw.size-tablet .stage.a .line .v {
    font-size: 22px;
  }
}

/* ═════════════════════════════════════════════════════════════════
   SCROLL-TO-BOTTOM — centered horizontally
   ═════════════════════════════════════════════════════════════════ */
.aw-thread .scroll-to-bottom {
  right: 50% !important;
  transform: translateX(50%);
}

/* ═════════════════════════════════════════════════════════════════
   SEE MORE BUTTON — text-only, bold, no background, light+dark
   ═════════════════════════════════════════════════════════════════ */
#my-chat .chat-see-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 !important;
  margin-top: 10px;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s;
}

#my-chat .chat-see-more::after {
  content: '→';
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform .15s;
}

#my-chat .chat-see-more:hover::after {
  transform: translateX(3px);
}

#my-chat .chat-see-more:hover {
  opacity: .72;
}

/* Light mode */
#my-chat .aw.light .chat-see-more {
  color: #b45309;
  padding-bottom:10px !important;
}

/* Dark mode */
#my-chat .aw.dark .chat-see-more {
  color: var(--yellow);
  padding-bottom:14px !important;
}

@media (max-width: 991.98px) {
  #my-chat .aw-thread .bot-cards .c .price-block {
    text-align: center;
  }

  #my-chat .aw-thread .bot-cards .c .price-foot {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  #scrollToBottomBtn {
    margin-left: -25px !important;
  }

  #my-chat .aw-thread .bot-cards .highlight-badge-container .highlight-badge-img:not(.green-badge) span {
    top: 22px !important;
  }
}

#my-chat .chat-see-more {
  margin-left: 10px !important;
}

#my-chat .side-panel .row.row-cols-1 {
  margin-right: 10px !important;
}

@media(min-width:768px) and (max-width: 991px) {
  #my-chat .grid-col.col-with-exp.active {
    background: var(--L-surface) !important;

  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  #my-chat .aw-thread .bot-cards .c {
    font-size: 13px;
  }

  /* Cap the card image height so card doesn't tower */
  #my-chat .aw-thread .bot-cards .c .card-img-top,
  #my-chat .aw-thread .bot-cards .c .img-fluid,
  #my-chat .aw-thread .bot-cards .c .card-image img,
  #my-chat .aw-thread .bot-cards .c>img {
    max-height: 160px;
    object-fit: cover;
    width: 100%;
  }

  /* Tighten title */
  #my-chat .aw-thread .bot-cards .c .title {
    font-size: 14px !important;
    padding: 6px 10px !important;
  }

  /* Shrink price + book */
  #my-chat .aw-thread .bot-cards .c .pnow {
    font-size: 16px !important;
  }

  #my-chat .aw-thread .bot-cards .c .price-block {
    padding: 8px 10px !important;
  }

  #my-chat .aw-thread .bot-cards .c .book {
    font-size: 12px !important;
    padding: 8px 10px !important;
  }

  /* Tighten meta row */
  #my-chat .aw-thread .bot-cards .c .loc,
  #my-chat .aw-thread .bot-cards .c .rating,
  #my-chat .aw-thread .bot-cards .c .avail {
    font-size: 9px !important;
    padding: 3px 7px !important;
  }
}

@media (max-width: 767.98px) {
  #my-chat .side-panel .c .loc {
    font-size: 11px;
    padding: 4px 8px;
  }
}

@media (max-width: 767.98px) {
  #my-chat .aw-thread .bot-cards .c .loc {
    font-size: 11px;
    padding: 4px 8px;
  }
}

@media (max-width: 767.98px) {
  #my-chat .aw-thread .bot-cards .c .avail {
    font-size: 11px;
  }

  #my-chat .aw-thread .bot-cards .c .save-inline {
    font-size: 10px;
  }

  #my-chat .aw-thread .bot-cards .c .rating {
    font-size: 11px;
  }
}

#my-chat .chat-see-more {
  font-size: 15px;
}

@media (min-width: 992px) {
  #my-chat .chat-see-more {
    font-size: 17px;
  }

  #my-chat .aw-thread .bot-cards .c .avail {
    font-size: 11px !important;
  }
}

#my-chat .aw.light .chat-see-more {
  color: #2563EB;
  padding-bottom:10px !important;
}

#my-chat .chat-see-more {
  white-space: nowrap;
}

#my-chat [data-aw-close] .icon{
  width: 22px;
  height: 22px;
}
