/* Scoped styles keep the existing forms, gallery and navigation unchanged. */
#glow-chat {
  --glow-ink: #35116e;
  --glow-deep: #1d093c;
  --glow-gold: #f1d391;
  --glow-cream: #fffaf3;
  --glow-text: #302a31;
  --glow-line: #e6dace;
  position: fixed;
  z-index: 45;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  color: var(--glow-text);
  font-family: Montserrat, system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: normal;
  text-align: left;
  color-scheme: light;
}
#glow-chat *, #glow-chat *::before, #glow-chat *::after { box-sizing: border-box; }
#glow-chat button, #glow-chat textarea, #glow-chat a { font: inherit; letter-spacing: normal; text-transform: none; }
#glow-chat button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
#glow-chat button:disabled { cursor: default; }
#glow-chat button:focus-visible, #glow-chat a:focus-visible, #glow-chat textarea:focus-visible { outline: 3px solid #bd8a2c; outline-offset: 3px; }
#glow-chat svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
#glow-chat .glow-chat-launcher {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  margin: 0 0 0 auto;
  padding: 11px 20px 11px 15px;
  border: 1px solid #e0bf7c;
  border-radius: 999px;
  background: var(--glow-ink);
  color: white;
  box-shadow: 0 6px 24px #1d093c26;
  transition: background .18s ease, box-shadow .18s ease;
}
#glow-chat .glow-chat-launcher:hover { background: #461c83; box-shadow: 0 8px 26px #1d093c38; }
#glow-chat .glow-chat-launcher > svg { width: 29px; height: 29px; color: var(--glow-gold); }
#glow-chat .glow-chat-launcher-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
#glow-chat .glow-chat-launcher strong { font-size: 13px; font-weight: 600; line-height: 1.4; }
#glow-chat .glow-chat-launcher small { font-size: 10px; line-height: 1.3; color: #f3e8ff; }
#glow-chat .glow-chat-panel {
  display: flex;
  flex-direction: column;
  width: 390px;
  max-width: calc(100vw - 32px);
  height: 610px;
  max-height: calc(100vh - 112px);
  max-height: calc(100dvh - 112px);
  margin: 0 0 13px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d8c4ad;
  border-radius: 22px;
  background: var(--glow-cream);
  box-shadow: 0 16px 64px #1d093c33;
}
#glow-chat .glow-chat-panel[hidden] { display: none !important; }
#glow-chat .glow-chat-header { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; gap: 8px; padding: 18px 15px 16px 18px; background: var(--glow-deep); color: white; }
#glow-chat .glow-chat-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
#glow-chat .glow-chat-brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #e0bf7c66; border-radius: 50%; color: var(--glow-gold); }
#glow-chat .glow-chat-brand-copy { min-width: 0; }
#glow-chat h2 { margin: 0; color: white; font-family: "Cormorant Garamond", Georgia, serif; font-size: 27px; font-weight: 500; line-height: 1.04; }
#glow-chat .glow-chat-brand-copy p { margin: 5px 0 0; color: #ead7ff; font-size: 8px; font-weight: 600; letter-spacing: .13em; line-height: 1.4; }
#glow-chat .glow-chat-header-actions { display: flex; gap: 3px; flex: 0 0 auto; }
#glow-chat .glow-chat-icon-button { display: grid; place-items: center; width: 36px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: white; }
#glow-chat .glow-chat-icon-button:hover { background: #ffffff18; }
#glow-chat .glow-chat-icon-button svg { width: 19px; height: 19px; }
#glow-chat .glow-chat-subtitle { margin: 0; flex: 0 0 auto; padding: 11px 20px; border-bottom: 1px solid var(--glow-line); color: #675374; font-size: 10px; line-height: 1.6; }
#glow-chat .glow-chat-transcript { flex: 1 1 auto; min-height: 80px; padding: 20px 18px 12px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d7c4df transparent; }
#glow-chat .glow-chat-message { width: fit-content; max-width: 94%; margin: 0 0 16px; padding: 13px 15px 14px; border: 1px solid var(--glow-line); border-radius: 4px 17px 17px; background: white; overflow-wrap: anywhere; }
#glow-chat .glow-chat-message-user { margin-left: auto; border-color: transparent; border-radius: 17px 4px 17px 17px; background: #eee5f8; color: #28123e; }
#glow-chat .glow-chat-message-label { display: block; margin-bottom: 5px; color: #705b7c; font-size: 9px; font-weight: 650; line-height: 1.4; }
#glow-chat .glow-chat-message-copy { margin: 0; font-size: 12px; line-height: 1.75; white-space: pre-wrap; }
#glow-chat .glow-chat-message-error { border-color: #ccab79; background: #fff9ed; }
#glow-chat .glow-chat-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
#glow-chat .glow-chat-links a { display: inline-flex; align-items: center; min-height: 36px; max-width: 100%; padding: 7px 12px; border: 1px solid #ccb8de; border-radius: 14px; background: #f7f1fc; color: var(--glow-ink); font-size: 10px; font-weight: 600; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
#glow-chat .glow-chat-links a:hover { background: #eee2fa; }
#glow-chat .glow-chat-starters { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 16px; }
#glow-chat .glow-chat-starter { min-height: 36px; max-width: 100%; padding: 8px 12px; border: 1px solid #d0bddc; border-radius: 999px; background: transparent; color: var(--glow-ink); font-size: 10px; font-weight: 600; line-height: 1.4; }
#glow-chat .glow-chat-starter:hover { border-color: var(--glow-ink); background: #f1e7fb; }
#glow-chat .glow-chat-starter:disabled { opacity: .55; }
#glow-chat .glow-chat-thinking { padding: 0 8px 12px; color: #715b7a; font-size: 10px; }
#glow-chat .glow-chat-retry { min-height: 36px; margin: 10px 0 0; padding: 6px 0; border: 0; background: transparent; color: var(--glow-ink); font-size: 11px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
#glow-chat .glow-chat-form { flex: 0 0 auto; display: block; margin: 0; padding: 11px 14px 12px; border-top: 1px solid var(--glow-line); background: white; }
#glow-chat .glow-chat-privacy { margin: 0 3px 10px; color: #736675; font-size: 9px; line-height: 1.55; }
#glow-chat .glow-chat-input-row { display: flex; align-items: flex-end; gap: 7px; padding: 5px 5px 5px 10px; border: 1px solid #d1c2db; border-radius: 18px; background: #fffcf8; }
#glow-chat .glow-chat-input-row:focus-within { border-color: var(--glow-ink); box-shadow: 0 0 0 1px #35116e; }
#glow-chat .glow-chat-input { display: block; flex: 1 1 auto; width: 100%; min-width: 0; min-height: 37px; max-height: 104px; margin: 0; padding: 8px 2px 7px; resize: none; overflow-y: auto; border: 0; border-radius: 0; outline: none; box-shadow: none; background: transparent; color: var(--glow-text); font-size: 12px; line-height: 1.7; }
#glow-chat .glow-chat-input:focus-visible { outline: none; }
#glow-chat .glow-chat-input::placeholder { color: #827585; opacity: 1; }
#glow-chat .glow-chat-send { display: grid; place-items: center; flex: 0 0 auto; width: 37px; height: 37px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--glow-ink); color: white; }
#glow-chat .glow-chat-send:hover { background: #54268a; }
#glow-chat .glow-chat-send:disabled { background: #e9e0ef; color: #96849f; }
#glow-chat .glow-chat-send svg { width: 21px; height: 21px; }
#glow-chat .glow-chat-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin: 9px 3px 0; color: #75667c; font-size: 9px; line-height: 1.4; }
#glow-chat .glow-chat-footer a { flex: 0 0 auto; color: #5f3c79; text-decoration: underline; text-underline-offset: 3px; }
#glow-chat .glow-chat-status { min-height: 13px; }
@media (max-width: 540px) {
  #glow-chat { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
  #glow-chat .glow-chat-launcher { min-height: 52px; padding: 8px 16px 8px 12px; }
  #glow-chat .glow-chat-launcher strong { font-size: 12px; }
  #glow-chat .glow-chat-launcher small { font-size: 9px; }
  #glow-chat .glow-chat-launcher > svg { width: 25px; height: 25px; }
  #glow-chat .glow-chat-panel { width: calc(100vw - 24px); max-width: 390px; height: 640px; max-height: calc(100vh - 92px); max-height: calc(100dvh - 92px); margin-bottom: 10px; border-radius: 20px; }
  #glow-chat .glow-chat-input { font-size: 16px; line-height: 1.4; padding-top: 7px; }
  #glow-chat .glow-chat-message-copy { font-size: 13px; }
}
@media (max-height: 550px) {
  #glow-chat.glow-chat-open .glow-chat-launcher { display: none; }
  #glow-chat .glow-chat-panel { height: calc(100vh - 24px); max-height: calc(100dvh - 24px); margin: 0; }
  #glow-chat .glow-chat-subtitle { display: none; }
  #glow-chat .glow-chat-header { padding-block: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  #glow-chat * { transition: none !important; scroll-behavior: auto !important; }
}

/* Wrapper plumbing is needed year round; seasonal decoration never reserves room. */
#glow-chat .glow-chat-transcript-area {
  flex: 1 1 auto;
  min-height: 80px;
  position: relative;
  display: flex;
  isolation: isolate;
  overflow: hidden;
}
#glow-chat .glow-chat-transcript-area > .glow-chat-transcript {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  background: transparent;
}
#glow-chat .glow-chat-holiday-art[hidden],
#glow-chat .glow-chat-holiday-garland[hidden] {
  display: none !important;
}

/* Three graceful hanging swags, kept in the existing header's top padding. */
#glow-chat.glow-chat-holiday .glow-chat-header {
  position: relative;
}
#glow-chat.glow-chat-holiday .glow-chat-holiday-garland {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 9px;
  left: 9px;
  height: 20px;
  display: flex;
  gap: 1px;
  pointer-events: none;
  user-select: none;
}
#glow-chat.glow-chat-holiday .glow-chat-holiday-swag {
  position: relative;
  top: -4px;
  display: block;
  flex: 1 1 0;
  min-width: 0;
  height: 14px;
  border: 1px solid #d7b675b3;
  border-top: 0;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
#glow-chat.glow-chat-holiday .glow-chat-holiday-swag:nth-child(2) {
  top: -3px;
}
#glow-chat.glow-chat-holiday .glow-chat-holiday-bulb {
  position: absolute;
  left: var(--bulb-x);
  top: var(--bulb-y);
  display: block;
  width: 6px;
  height: 9px;
  border: 1px solid #f0cf876b;
  border-radius: 42% 42% 48% 48%;
  background: radial-gradient(ellipse at 40% 32%, #fffef0 0 19%, #fff0bc 40%, #e9b65c 100%);
  box-shadow: 0 0 4px #ffe3a1b3, 0 0 9px #edbf5c42;
  transform: translateX(-50%) rotate(var(--bulb-tilt));
  transform-origin: 50% 0;
  font-style: normal;
}
#glow-chat.glow-chat-holiday .glow-chat-holiday-bulb::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 2px;
  width: 1px;
  height: 4px;
  background: #d7b675b3;
}
#glow-chat.glow-chat-holiday .glow-chat-holiday-bulb::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 6px;
  height: 2px;
  border-radius: 1px;
  background: #aa874f;
}
#glow-chat.glow-chat-holiday .glow-chat-holiday-bulb:nth-child(1) { --bulb-x: 8%; --bulb-y: 3px; --bulb-tilt: -21deg; }
#glow-chat.glow-chat-holiday .glow-chat-holiday-bulb:nth-child(2) { --bulb-x: 28%; --bulb-y: 9px; --bulb-tilt: -10deg; }
#glow-chat.glow-chat-holiday .glow-chat-holiday-bulb:nth-child(3) { --bulb-x: 50%; --bulb-y: 12px; --bulb-tilt: 0deg; }
#glow-chat.glow-chat-holiday .glow-chat-holiday-bulb:nth-child(4) { --bulb-x: 72%; --bulb-y: 9px; --bulb-tilt: 10deg; }
#glow-chat.glow-chat-holiday .glow-chat-holiday-bulb:nth-child(5) { --bulb-x: 92%; --bulb-y: 3px; --bulb-tilt: 21deg; }

/* Champagne light, a hint of lilac, and a clear tree behind crisp messages. */
#glow-chat.glow-chat-holiday .glow-chat-transcript-area {
  background:
    radial-gradient(ellipse at 91% 94%, #efd69bc7 0, #f5e5c76b 27%, transparent 62%),
    linear-gradient(145deg, #fffaf0 3%, #f2e7f5 60%, #f7ecdb 100%);
}
#glow-chat.glow-chat-holiday .glow-chat-holiday-art {
  position: absolute;
  z-index: 0;
  right: 7px;
  bottom: 3px;
  width: 150px;
  height: 185px;
  pointer-events: none;
  user-select: none;
}
#glow-chat.glow-chat-holiday .glow-chat-holiday-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/glow-winter-2026/tree.webp") right bottom / 134px auto no-repeat;
  opacity: .8;
}
#glow-chat.glow-chat-holiday .glow-chat-holiday-art > .glow-chat-holiday-bow {
  position: absolute;
  right: 55px;
  bottom: 34px;
  width: 14px;
  height: 13px;
  border: 1px solid #8f203a;
  border-radius: 4px;
  background: linear-gradient(100deg, #92203b, #f690a0 36%, #d64a63 58%, #9f203d);
  box-shadow: inset 1px 0 #ffc2c861, 0 2px 3px #62233b21;
  filter: drop-shadow(0 2px 2px #62233b1c);
}
#glow-chat.glow-chat-holiday .glow-chat-holiday-art > .glow-chat-holiday-bow::before,
#glow-chat.glow-chat-holiday .glow-chat-holiday-art > .glow-chat-holiday-bow::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 24px;
  height: 39px;
  background: linear-gradient(125deg, #f294a4 1%, #de526d 25%, #9f1f3c 52%, #c93553 73%, #ed7188);
  clip-path: polygon(3% 0, 100% 21%, 100% 43%, 66% 55%, 91% 100%, 51% 84%, 18% 98%, 32% 56%, 0 43%);
}
#glow-chat.glow-chat-holiday .glow-chat-holiday-art > .glow-chat-holiday-bow::before {
  left: -22px;
}
#glow-chat.glow-chat-holiday .glow-chat-holiday-art > .glow-chat-holiday-bow::after {
  right: -22px;
  transform: scaleX(-1);
}
#glow-chat.glow-chat-holiday .glow-chat-message-assistant:not(.glow-chat-message-error) {
  background: #fffefd;
  box-shadow: 0 2px 7px #4a294109;
}
#glow-chat.glow-chat-holiday .glow-chat-starter {
  background: #fffaf3;
  box-shadow: 0 1px 3px #4a294109;
}
#glow-chat.glow-chat-holiday .glow-chat-starter:hover {
  background: #f1e7fb;
}

@media (max-width: 360px) {
  #glow-chat.glow-chat-holiday .glow-chat-holiday-art {
    right: 3px;
    width: 132px;
    height: 170px;
  }
  #glow-chat.glow-chat-holiday .glow-chat-holiday-art::before {
    background-size: 116px auto;
  }
  #glow-chat.glow-chat-holiday .glow-chat-holiday-art > .glow-chat-holiday-bow {
    right: 46px;
    bottom: 31px;
  }
}
@media (max-height: 550px) {
  #glow-chat.glow-chat-holiday .glow-chat-holiday-garland {
    top: -2px;
    transform: scaleY(.66);
    transform-origin: 50% 0;
  }
  #glow-chat.glow-chat-holiday .glow-chat-holiday-art {
    width: 126px;
    height: 148px;
  }
  #glow-chat.glow-chat-holiday .glow-chat-holiday-art::before {
    background-size: 108px auto;
  }
  #glow-chat.glow-chat-holiday .glow-chat-holiday-art > .glow-chat-holiday-bow {
    right: 43px;
    bottom: 30px;
  }
}

@media (max-width: 360px) {
  #glow-chat .glow-chat-header { padding-inline: 13px 10px; gap: 6px; }
  #glow-chat .glow-chat-brand { gap: 8px; }
  #glow-chat h2 { font-size: 23px; }
}
