/* ==============================================================================
   thegradszn · Booking assistant (floating chat panel)
   One corner button: opens the assistant, with WhatsApp one tap away inside.
   ============================================================================== */
.ast-launch {
  position: fixed; right: clamp(1rem, 2vw, 1.6rem); bottom: clamp(1rem, 2vw, 1.6rem); z-index: 60;
  width: 3.75rem; height: 3.5rem; padding: 0; border: 0; background: none; cursor: pointer;
  transition: transform 160ms var(--sc-ease-out, ease), opacity 160ms;
}
/* the grad bot: a burgundy face with gold eyes and smile, wearing the TheGradSzn cap */
.ast-bot { position: relative; display: block; width: 100%; height: 100%; animation: ast-bob 3.2s ease-in-out infinite; }
.ast-bot__head {
  position: absolute; inset: 0; display: block; border-radius: 1.15rem 1.15rem 1.15rem .4rem; background: var(--burgundy);
  box-shadow: 0 10px 26px -10px hsl(var(--sc-shadow-color) / .6), 0 2px 6px hsl(var(--sc-shadow-color) / .2);
  transition: background-color 160ms;
}
.ast-bot__eyes { position: absolute; top: 40%; left: 0; right: 0; display: flex; justify-content: center; gap: .75rem; }
.ast-bot__eyes i { display: block; width: .55rem; height: .7rem; border-radius: .3rem; background: var(--gold-light, #DDBD84); animation: ast-blink 4s infinite; }
.ast-bot__smile { position: absolute; left: 50%; top: 64%; display: block; width: 1rem; height: .5rem; margin-left: -.5rem; border: .16rem solid var(--gold-light, #DDBD84); border-top: 0; border-radius: 0 0 .75rem .75rem; }
.ast-bot__cap { position: absolute; left: .35rem; top: -1.25rem; display: block; width: 3.1rem; color: var(--gold-light, #DDBD84); transform: rotate(-8deg); transform-origin: 70% 100%; animation: ast-tip 6s ease-in-out infinite; }
.ast-bot__cap svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .25)); }
@keyframes ast-blink { 0%, 44%, 48%, 100% { transform: scaleY(1); } 46% { transform: scaleY(.1); } }
@keyframes ast-bob { 50% { transform: translateY(-3px); } }
@keyframes ast-tip { 0%, 80%, 100% { transform: rotate(-8deg); } 86% { transform: rotate(-22deg) translateY(-4px); } 92% { transform: rotate(-8deg); } }
/* label on hover (pointer devices), unless the talking label is already out */
.ast-launch__tip {
  position: absolute; right: calc(100% + .6rem); top: 50%; transform: translate(6px, -50%); white-space: nowrap;
  padding: .45rem .7rem; border-radius: 6px; background: var(--sc-ink, #241418); color: #fff;
  font: 500 .74rem/1 var(--sc-font-text); letter-spacing: .1em; text-transform: uppercase;
  opacity: 0; pointer-events: none; transition: opacity 160ms, transform 160ms var(--sc-ease-out, ease);
}
@media (hover: hover) { .ast-launch:hover .ast-launch__tip, .ast-launch:focus-visible .ast-launch__tip { opacity: 1; transform: translate(0, -50%); } }
.ast-saying .ast-launch__tip { display: none; }
.ast-launch:hover .ast-bot__head { background: var(--burgundy-dk); }
.ast-launch:active { transform: scale(.94); }
.ast-launch:focus-visible { outline: none; }
.ast-launch:focus-visible .ast-bot__head { outline: 2px solid var(--gold); outline-offset: 3px; }
.ast-open .ast-launch { transform: scale(.9); opacity: 0; pointer-events: none; }
@media (max-width: 600px) { .ast-launch { width: 3.4rem; height: 3.2rem; } .ast-bot__cap { width: 2.8rem; top: -1.1rem; left: .3rem; } .ast-bot__eyes { gap: .65rem; } }

/* talking label beside the bot: slides out from behind it, swaps to a second line, then slides back */
.ast-say {
  position: fixed; z-index: 59; right: calc(clamp(1rem, 2vw, 1.6rem) + 4.35rem); bottom: calc(clamp(1rem, 2vw, 1.6rem) + .55rem);
  max-width: calc(100vw - 7rem); min-height: 2.5rem; padding: .6rem .85rem; border: 0; border-radius: 12px 12px 4px 12px;
  background: var(--paper); color: var(--sc-ink); font: 500 .9rem/1.25 var(--sc-font-text); text-align: left; cursor: pointer;
  box-shadow: 0 10px 26px -10px hsl(var(--sc-shadow-color) / .5), 0 2px 6px hsl(var(--sc-shadow-color) / .12);
  transform-origin: right center; animation: ast-slide 560ms cubic-bezier(.2, .9, .25, 1) both;
}
.ast-say:hover { color: var(--burgundy); }
.ast-say:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ast-say__msg { white-space: nowrap; }
.ast-say__msg { display: inline-block; }
.ast-say__msg.is-new { animation: ast-rise 360ms cubic-bezier(.2, .8, .2, 1) both; }
.ast-say.is-leaving { animation: ast-leave 320ms cubic-bezier(.5, 0, .75, 0) both; }
@keyframes ast-slide { 0% { opacity: 0; transform: translateX(3rem) scaleX(.35); } 45% { opacity: 1; } 70% { transform: translateX(-4px) scaleX(1.01); } 100% { opacity: 1; transform: none; } }
@keyframes ast-rise { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes ast-leave { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(3rem) scaleX(.35); } }
.ast-open .ast-say { display: none; }
@media (max-width: 600px) { .ast-say { right: calc(clamp(1rem, 2vw, 1.6rem) + 4rem); bottom: calc(clamp(1rem, 2vw, 1.6rem) + .4rem); font-size: .86rem; } }

.ast-panel {
  position: fixed; right: clamp(1rem, 2vw, 1.6rem); bottom: clamp(1rem, 2vw, 1.6rem); z-index: 61;
  width: min(25rem, calc(100vw - 2rem)); height: min(38rem, calc(100vh - 2rem));
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; background: var(--paper);
  border: 1px solid var(--sc-hairline); border-radius: 10px; overflow: hidden;
  box-shadow: 0 24px 60px -18px hsl(var(--sc-shadow-color) / .45), 0 4px 14px hsl(var(--sc-shadow-color) / .12);
  transform-origin: bottom right; transition: opacity 180ms, transform 220ms var(--sc-ease-out, ease);
}
.ast-panel[hidden] { display: none; }
.ast-panel.is-entering { opacity: 0; transform: translateY(12px) scale(.98); }
@media (max-width: 600px) {
  .ast-panel { right: 0; left: 0; bottom: 0; width: 100%; height: 88vh; height: 88dvh; border-radius: 14px 14px 0 0; }
}

.ast-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .8rem; align-items: start; padding: 1rem 1.1rem .9rem; background: var(--burgundy); color: #fff; }
.ast-head strong { display: block; font-family: var(--sc-font-display); font-weight: 500; font-size: 1.2rem; letter-spacing: -.01em; }
.ast-head strong { display: flex; align-items: center; gap: .4rem; }
.ast-head__spark { display: block; width: 1.1rem; height: 1.1rem; color: var(--gold-light, #E9CF8F); }
.ast-head__spark svg { width: 100%; height: 100%; display: block; }
.ast-ai { padding: .15rem .4rem; border: 1px solid color-mix(in oklab, var(--gold-light, #E9CF8F) 70%, transparent); border-radius: 4px; font: 600 .62rem/1 var(--sc-font-text); letter-spacing: .12em; color: var(--gold-light, #E9CF8F); }
.ast-head p { margin: .2rem 0 0; font-size: .86rem; color: var(--burgundy-ink); opacity: .9; }
.ast-head .ast-badge { display: inline-block; margin-top: .5rem; padding: .25rem .5rem; border: 1px solid color-mix(in oklab, var(--gold-light) 70%, transparent); border-radius: 999px; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.ast-close { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; font-size: 1.3rem; line-height: 1; }
.ast-close:hover { background: rgba(255, 255, 255, .12); }

.ast-log { position: relative; overflow-y: auto; padding: 1rem 1rem .5rem; display: flex; flex-direction: column; gap: .7rem; background: var(--ivory); overscroll-behavior: contain; }
.ast-msg { max-width: 86%; padding: .7rem .9rem; border-radius: 12px; font-size: .95rem; line-height: 1.45; white-space: pre-line; }
.ast-msg--bot { align-self: flex-start; background: var(--paper); color: var(--sc-ink); border: 1px solid var(--sc-hairline); border-bottom-left-radius: 4px; }
.ast-msg--me { align-self: flex-end; background: var(--burgundy); color: #fff; border-bottom-right-radius: 4px; }
.ast-msg strong { font-weight: 600; }
.ast-cta { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .6rem; }
.ast-cta a { display: inline-block; padding: .5rem .8rem; border-radius: 999px; background: var(--burgundy); color: #fff; text-decoration: none; font-size: .82rem; font-weight: 500; }
.ast-cta a.ast-cta--line { background: transparent; color: var(--burgundy); border: 1px solid color-mix(in oklab, var(--burgundy) 45%, transparent); }
.ast-typing { align-self: flex-start; display: inline-flex; gap: .25rem; padding: .8rem .9rem; background: var(--paper); border: 1px solid var(--sc-hairline); border-radius: 12px; border-bottom-left-radius: 4px; }
.ast-typing i { width: .4rem; height: .4rem; border-radius: 50%; background: var(--gold); animation: ast-dot 1s infinite ease-in-out; }
.ast-typing i:nth-child(2) { animation-delay: .15s; } .ast-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ast-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.ast-chips { display: flex; gap: .45rem; padding: .6rem 1rem; overflow-x: auto; background: var(--ivory); border-top: 1px solid var(--sc-hairline); scrollbar-width: none; }
.ast-chips::-webkit-scrollbar { display: none; }
.ast-chips:empty { display: none; }
.ast-chip { flex: none; padding: .5rem .8rem; border: 1px solid color-mix(in oklab, var(--burgundy) 35%, transparent); border-radius: 999px; background: var(--paper); color: var(--burgundy); font: 500 .84rem/1.1 var(--sc-font-text); cursor: pointer; }
.ast-chip:hover { background: color-mix(in oklab, var(--burgundy) 7%, var(--paper)); }

.ast-foot { padding: .7rem .8rem .8rem; background: var(--paper); border-top: 1px solid var(--sc-hairline); display: grid; gap: .55rem; }
.ast-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
.ast-form input { min-width: 0; height: 2.8rem; padding: 0 .9rem; border: 1px solid color-mix(in oklab, var(--sc-ink) 18%, transparent); border-radius: 999px; font: 400 1rem var(--sc-font-text); color: var(--sc-ink); background: var(--paper); }
.ast-form input:focus { outline: 2px solid color-mix(in oklab, var(--burgundy) 50%, transparent); outline-offset: 1px; }
.ast-form button { width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--burgundy); color: #fff; cursor: pointer; }
.ast-form button svg { width: 1.1rem; height: 1.1rem; }
.ast-wa { display: flex; align-items: center; justify-content: center; gap: .45rem; font-size: .84rem; color: var(--sc-ink-soft); text-decoration: none; }
.ast-wa svg { width: 1rem; height: 1rem; fill: #25D366; }
.ast-wa:hover { color: var(--burgundy); }

/* the assistant replaces the separate WhatsApp bubble */
.has-assistant .wa-float { display: none !important; }
.ast-ask { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; padding: 0; border: 0; background: none; color: var(--burgundy); font: 500 1rem var(--sc-font-text); cursor: pointer; border-bottom: 1px solid color-mix(in oklab, var(--burgundy) 40%, transparent); }
@media (prefers-reduced-motion: reduce) { .ast-panel, .ast-launch { transition: none; } .ast-typing i, .ast-bot, .ast-bot__eyes i, .ast-bot__cap, .ast-say, .ast-say.is-leaving, .ast-say__msg.is-new { animation: none; } }
