html[data-ehub-holiday] {
  --ehub-holiday-height: 54px;
  --ehub-holiday-gold: #f1d1ac;
  --ehub-holiday-backdrop:
    linear-gradient(90deg, #142e2240, #73202e48 50%, #142e2240),
    #4d1820 url("./header-background.webp") center / 100% 125% no-repeat;
  --ehub-holiday-garland: url("./header-garland.webp");
  --ehub-holiday-sans: "Inter Variable", Inter, system-ui, sans-serif;
  --ehub-holiday-display: "Inter Tight Variable", "Inter Variable", Inter, system-ui, sans-serif;
}

html[data-ehub-holiday="standalone"] {
  --ehub-holiday-sans: Inter, "Segoe UI", system-ui, sans-serif;
  --ehub-holiday-display: var(--ehub-holiday-sans);
}

html[data-ehub-holiday] .in-header,
html[data-ehub-holiday] .in-page-progress,
html[data-ehub-holiday] .nx-page-progress {
  top: var(--ehub-holiday-offset, var(--ehub-holiday-height));
}

/* The homepage navigation stays relative to the homepage as the greeting
   occupies the space above the app. Internal navigation is fixed. */
html[data-ehub-holiday] .nx-home {
  position: relative;
}

.ehub-holiday-banner {
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 67;
  display: grid;
  place-items: center;
  height: var(--ehub-holiday-height);
  padding-inline: 4%;
  border-bottom: 1px solid #e9b97899;
  background: var(--ehub-holiday-backdrop);
  color: #fff6ec;
  font-family: var(--ehub-holiday-sans);
}

.ehub-holiday-message {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
  margin: 0;
  font-size: 15px;
  line-height: 1.28;
  text-align: center;
}

.ehub-holiday-credit { color: var(--ehub-holiday-gold); }
.ehub-holiday-credit::before { content: "· "; margin-inline: 3px; }
.ehub-holiday-greeting strong { font-weight: 750; }

.ehub-holiday-garland {
  flex: 0 0 clamp(80px, 12vw, 142px);
  height: var(--ehub-holiday-height);
  background: var(--ehub-holiday-garland) no-repeat left center / contain;
}
.ehub-holiday-garland:last-child { transform: scaleX(-1); }

@media (min-width: 721px) {
  .ehub-holiday-banner {
    background:
      linear-gradient(90deg, #142e2226, #73202e38 50%, #142e2226),
      #4d1820 url("./header-background-desktop.webp") center / cover no-repeat;
  }
}

.ehub-holiday-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 2.4vw, 32px);
  padding: clamp(40px, 4.2vw, 62px) clamp(18px, 4vw, 70px);
  border-top: 1px solid #e9b97899;
  background: var(--ehub-holiday-backdrop);
  color: #fff5e5;
  font-family: var(--ehub-holiday-sans);
  text-align: center;
}
.ehub-holiday-footer::before,
.ehub-holiday-footer::after {
  content: "";
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3 / 1;
  background: var(--ehub-holiday-garland) no-repeat center / contain;
}
.ehub-holiday-footer::before { justify-self: end; }
.ehub-holiday-footer::after { transform: scaleX(-1); }

.ehub-holiday-footer-copy { min-width: 0; }
.ehub-holiday-footer-copy p { margin: 0; font-size: 15px; line-height: 1.5; }
.ehub-holiday-footer-copy .ehub-holiday-footer-from {
  color: var(--ehub-holiday-gold);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.ehub-holiday-footer-copy h2 {
  margin: 10px 0 14px;
  color: #fff5e5;
  font: 600 clamp(42px, 6.4vw, 76px)/.99 var(--ehub-holiday-display);
  letter-spacing: -.065em;
  text-wrap: balance;
}

.ehub-holiday-santa {
  position: fixed;
  z-index: 53;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  left: env(safe-area-inset-left, 0px);
  width: clamp(44px, 4.6vw, 62px);
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.ehub-holiday-santa img { display: block; width: 100%; height: auto; }
.ehub-holiday-gift {
  position: absolute;
  top: -14px;
  left: calc(100% - 9px);
  display: grid;
  place-items: center;
  width: 36px;
  height: 31px;
  border: 1px solid #e9b978;
  border-radius: 48% 54% 46% 52%;
  background: #fff5e5;
  box-shadow: 0 3px 9px #110b0955;
  font-size: 17px;
  line-height: 1;
}
.ehub-holiday-gift::before {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff5e5;
  box-shadow: -5px 5px 0 -1.5px #fff5e5;
}
.ehub-holiday-santa:focus-visible { outline: 2px solid #ffdfb4; outline-offset: 3px; }
body:has(.eh-analytics__panel, .in-menu-dialog[data-state="open"], .nx-inquiry[data-state="open"], .ehub-inquiry[data-state="open"]) .ehub-holiday-santa {
  visibility: hidden;
}

.ehub-holiday-enquiry {
  box-sizing: border-box;
  width: min(calc(100vw - 24px), 552px);
  max-width: none;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #e9b978b3;
  border-radius: 20px;
  background: #faf5ed;
  color: #1d2a20;
  box-shadow: 0 22px 90px #110b09aa;
  font-family: var(--ehub-holiday-sans);
}
.ehub-holiday-enquiry::backdrop { background: #100b10bd; }
html:has(.ehub-holiday-enquiry[open]) { overflow: hidden; }
.ehub-holiday-enquiry-header {
  position: relative;
  padding: clamp(28px, 6vw, 44px) clamp(46px, 9vw, 66px) 26px clamp(20px, 5vw, 36px);
  border-bottom: 1px solid #e9b97899;
  background: var(--ehub-holiday-backdrop);
  color: #fff5e5;
}
.ehub-holiday-enquiry-header h2 {
  margin: 7px 0 0;
  font: 680 clamp(26px, 6vw, 42px)/1.04 var(--ehub-holiday-display);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.ehub-holiday-enquiry-wish {
  margin: 0;
  color: #ffe1b8;
  font-size: 12px;
  font-weight: 700;
}
.ehub-holiday-enquiry-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff5e518;
  color: #fff5e5;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.ehub-holiday-enquiry-body { padding: 22px clamp(18px, 5vw, 36px) 24px; }
.ehub-holiday-enquiry-body > p:first-child { margin: 0 0 18px; font-size: 14px; line-height: 1.45; }
.ehub-holiday-enquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.ehub-holiday-enquiry-form[hidden] { display: none; }
.ehub-holiday-enquiry-form label { display: block; font-size: 13px; font-weight: 600; }
.ehub-holiday-enquiry-form label:first-child,
.ehub-holiday-enquiry-details,
.ehub-holiday-enquiry-send,
.ehub-holiday-enquiry-privacy { grid-column: 1 / -1; }
.ehub-holiday-enquiry-form input,
.ehub-holiday-enquiry-form textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin-top: 5px;
  padding: 9px 12px;
  border: 1px solid #b3b8ac;
  border-radius: 8px;
  background: #fffdf8;
  color: #1d2a20;
  font: 400 16px/1.35 var(--ehub-holiday-sans);
}
.ehub-holiday-enquiry-form textarea { resize: vertical; }
.ehub-holiday-enquiry-send {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 46px;
  padding: 9px 14px;
  border: 0;
  border-radius: 8px;
  background: #164530;
  color: #fff5e5;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.ehub-holiday-enquiry-send:disabled { opacity: .65; cursor: wait; }
.ehub-holiday-enquiry-privacy { margin: 0; font-size: 12px; line-height: 1.4; }
.ehub-holiday-enquiry-privacy a { color: #164530; text-decoration: underline; }
.ehub-holiday-enquiry :focus-visible { outline: 2px solid #a32a3a; outline-offset: 2px; }
.ehub-holiday-enquiry-close:focus-visible { outline-color: #ffdfb4; }
.ehub-holiday-enquiry-status:empty { margin: 0; }
.ehub-holiday-enquiry-status[data-state] { margin: 13px 0 0; font-size: 14px; font-weight: 600; }
.ehub-holiday-enquiry-status[data-state="error"] { color: #9d2031; }

@media (max-width: 480px) {
  .ehub-holiday-enquiry-form { grid-template-columns: minmax(0, 1fr); }
}

@media (max-height: 340px) {
  .ehub-holiday-santa { display: none; }
}

.ehub-holiday-snow {
  position: fixed;
  z-index: 48;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
}
.ehub-holiday-snow.is-falling {
  opacity: 1;
  visibility: visible;
}
.ehub-holiday-snow > span {
  position: absolute;
  top: -12px;
  left: var(--flake-left);
  width: var(--flake-size);
  height: var(--flake-size);
  border-radius: 50%;
  background: #fffef8;
  box-shadow: 0 0 1px 1px #24352b37, 0 0 4px #fff9;
  opacity: var(--flake-opacity);
  animation: ehub-holiday-fall var(--flake-duration) var(--flake-delay) linear infinite;
  animation-play-state: paused;
}
.ehub-holiday-snow.is-falling > span { animation-play-state: running; }
@keyframes ehub-holiday-fall {
  to { transform: translate3d(var(--flake-drift), calc(100dvh + 24px), 0); }
}

@media (max-width: 720px) {
  html[data-ehub-holiday] { --ehub-holiday-height: 60px; }
  .ehub-holiday-banner {
    height: auto;
    min-height: var(--ehub-holiday-height);
    padding: 6px clamp(10px, 3vw, 18px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  .ehub-holiday-message {
    --ehub-holiday-garland-width: clamp(33px, 11vw, 66px);
    display: grid;
    grid-template-columns: var(--ehub-holiday-garland-width) minmax(0, 1fr) var(--ehub-holiday-garland-width);
    width: 100%;
    max-width: 580px;
    gap: clamp(6px, 2vw, 12px);
    font-size: clamp(13px, 3.3vw, 14px);
    line-height: 1.22;
  }
  .ehub-holiday-garland {
    height: clamp(30px, 8vw, 42px);
    background-size: auto 100%;
  }
  .ehub-holiday-greeting { overflow-wrap: anywhere; }
  .ehub-holiday-credit {
    display: block;
    margin-top: 3px;
    font-size: .82em;
    line-height: 1.2;
  }
  .ehub-holiday-credit::before { content: none; }
  .ehub-holiday-snow > span:nth-child(n + 14) { display: none; }
}

@media (max-width: 580px) {
  .ehub-holiday-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 8px;
    padding: 30px 18px 60px;
  }
  .ehub-holiday-footer::before,
  .ehub-holiday-footer::after {
    grid-row: 1;
    width: min(100%, 168px);
  }
  .ehub-holiday-footer::after { grid-column: 2; }
  .ehub-holiday-footer-copy { grid-area: 2 / 1 / 3 / -1; }
  .ehub-holiday-footer-copy h2 { font-size: clamp(32px, 9vw, 47px); }
  .ehub-holiday-footer-copy p { max-width: 270px; margin-inline: auto; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .ehub-holiday-snow { display: none !important; }
  .ehub-holiday-snow > span { animation: none; }
}

@media print {
  html[data-ehub-holiday] { --ehub-holiday-height: 0px; }
  .ehub-holiday-banner, .ehub-holiday-footer, .ehub-holiday-santa, .ehub-holiday-enquiry, .ehub-holiday-snow { display: none !important; }
}
