:root {
  --halo-accent: #23385c;
  --halo-gold: #c9a227;
  --halo-bg: #ffffff;
  --halo-surface: #f7f4ee;
  --halo-text: #1d1d1f;
  --halo-muted: #6b6b70;
  --halo-border: #e3ddd2;
}

.halo-visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.halo-icon { width: 40px; height: auto; max-height: 30px; object-fit: contain; color: var(--halo-gold); flex: none; }

/* Launcher */
.halo-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 2147483000;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 10px; border: 0; border-radius: 999px;
  background: var(--halo-accent); color: #fff; font: 600 15px/1 system-ui, sans-serif;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); cursor: pointer;
}
.halo-launcher:hover { transform: translateY(-1px); }
.halo-launcher:focus-visible { outline: 3px solid var(--halo-gold); outline-offset: 2px; }
.halo-open .halo-launcher { display: none; }
/* While a person is chatting through Zendesk, Halo steps aside. */
.halo-live .halo-launcher, .halo-live .halo-panel { display: none !important; }
/* Out of the way while the shopper types, while a drawer or popup is open, and on phone
   product pages (set by halo.js). Google's store badge steps aside at the same times. */
.halo-tuck .halo-launcher { display: none; }
.halo-open #merchantwidgetiframe, .halo-open iframe[src*="merchantwidget"],
.halo-open iframe[src*="google.com/shopping"],
.halo-tuck #merchantwidgetiframe, .halo-tuck iframe[src*="merchantwidget"],
.halo-tuck iframe[src*="google.com/shopping"] { display: none !important; }

/* Panel */
.halo-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 2147483001;
  width: min(400px, calc(100vw - 32px)); height: min(640px, calc(100vh - 40px));
  display: flex; flex-direction: column;
  background: var(--halo-bg); color: var(--halo-text);
  border: 1px solid var(--halo-border); border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; overflow: hidden;
}
.halo-panel[hidden] { display: none; }
@media (max-width: 520px) {
  .halo-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; }
}

.halo-panel__header {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--halo-accent); color: #fff;
}
.halo-panel__header > div { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.halo-panel__tag { font-size: 12px; opacity: 0.8; }
.halo-panel__new, .halo-panel__close {
  background: transparent; border: 0; color: #fff; cursor: pointer; font: inherit;
}
.halo-panel__new { font-size: 13px; opacity: 0.85; text-decoration: underline; }
.halo-panel__close { display: flex; align-items: center; padding: 2px; }

.halo-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }

.halo-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; overflow-wrap: anywhere; }
.halo-msg--halo { align-self: flex-start; background: var(--halo-surface); border-bottom-left-radius: 4px; }
.halo-msg--customer { align-self: flex-end; background: var(--halo-accent); color: #fff; border-bottom-right-radius: 4px; }
.halo-msg.halo-error { background: #fdecea; color: #8a1c13; }
.halo-typing::before, .halo-error::before {
  content: ""; display: block; width: 48px; height: 34px; margin-bottom: 4px;
  background: center / contain no-repeat;
}
.halo-typing::before { background-image: var(--halo-thinking-art, none); animation: halo-bob 1.6s ease-in-out infinite; }
.halo-error::before { background-image: var(--halo-sorry-art, none); }
.halo-typing::after { content: "\2026"; animation: halo-pulse 1s infinite; }
@keyframes halo-bob { 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .halo-typing::before { animation: none; } }
@keyframes halo-pulse { 50% { opacity: 0.3; } }

/* Product cards */
.halo-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.halo-card {
  display: flex; flex-direction: column; gap: 6px; padding: 8px;
  border: 1px solid var(--halo-border); border-radius: 12px; background: #fff;
}
.halo-card__link { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.halo-card__link img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: #fff; }
.halo-card__title { font-size: 13px; font-weight: 600; line-height: 1.3; }
.halo-card__price { font-size: 13px; }
.halo-card__price s { color: var(--halo-muted); }
.halo-card__add {
  margin-top: auto; padding: 7px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--halo-accent); color: #fff; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.2;
  text-align: center; text-decoration: none;
}
.halo-card__add:disabled { opacity: 0.7; cursor: default; }

/* Input */
.halo-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--halo-border); }
.halo-input textarea {
  flex: 1; resize: none; max-height: 120px; padding: 9px 11px;
  border: 1px solid var(--halo-border); border-radius: 10px; font: inherit; color: inherit;
}
.halo-input button {
  width: 42px; border: 0; border-radius: 10px; background: var(--halo-accent); color: #fff;
  font-size: 18px; cursor: pointer;
}
.halo-disclaimer { margin: 0; padding: 0 12px 10px; font-size: 11px; color: var(--halo-muted); }

/* Homepage hero block */
.halo-hero { max-width: 760px; margin: 0 auto; padding: 32px 16px; text-align: center; }
.halo-hero__mascot { display: block; width: min(220px, 55vw); height: auto; margin: 0 auto 12px; }
/* The video has a white background; multiply makes white disappear on light sections. */
video.halo-hero__mascot { width: min(280px, 70vw); mix-blend-mode: multiply; pointer-events: none; }
.halo-hero__heading { margin: 0 0 6px; }
.halo-hero__sub { margin: 0 0 18px; color: var(--halo-muted); }
.halo-hero__form { display: flex; gap: 8px; }
.halo-hero__input {
  flex: 1; min-width: 0; padding: 14px 16px; font-size: 17px;
  border: 2px solid var(--halo-border); border-radius: 12px;
}
.halo-hero__input:focus { border-color: var(--halo-gold); outline: none; }
.halo-hero__button {
  padding: 0 20px; border: 0; border-radius: 12px; background: var(--halo-accent); color: #fff;
  font-weight: 600; font-size: 16px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.halo-hero__button-icon { width: 34px; height: auto; max-height: 22px; object-fit: contain; flex: none; }
.halo-hero__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.halo-hero__chip {
  padding: 8px 14px; border: 1px solid var(--halo-border); border-radius: 999px;
  background: var(--halo-surface); color: inherit; font: inherit; font-size: 14px; cursor: pointer;
}
.halo-hero__note {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px;
  margin-top: 14px; font-size: 12px; color: var(--halo-muted);
}
.halo-hero__links { display: inline-flex; gap: 6px; }
.halo-hero__link {
  padding: 4px 10px; border: 1px solid var(--halo-border); border-radius: 999px;
  color: var(--halo-accent); font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.halo-hero__link:hover { border-color: var(--halo-accent); }
@media (max-width: 520px) { .halo-hero__form { flex-direction: column; } .halo-hero__button { padding: 12px; } }
