.winter-chrome {
  position: relative;
}

.winter-chrome-public,
.winter-chrome-dashboard,
.winter-chrome-admin {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.winter-chrome-dashboard { z-index: 19; }
.winter-chrome-admin { z-index: 30; }
.winter-chrome-public > .navbar,
.winter-chrome-admin > .ops-settings-nav { position: relative; z-index: 2; }
.winter-chrome-public > .mobile-nav { overflow: clip; }

.winter-banner {
  --winter-banner-height: 50px;
  box-sizing: border-box;
  min-height: var(--winter-banner-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(9px, 2vw, 24px);
  position: relative;
  isolation: isolate;
  padding: 6px clamp(38px, 5vw, 68px);
  border-bottom: 1px solid #a2edda29;
  background:
    radial-gradient(ellipse at 49% 110%, #21766264, transparent 70%),
    linear-gradient(105deg, #10211e, #112e29 44%, #112128 79%, #101a20);
  color: #e7fbf5;
  font-size: 13px;
  line-height: 1.2;
  text-align: left;
}

.winter-banner-offer {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
}

.winter-banner-offer strong { font-weight: 800; }
.winter-banner-offer:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.winter-banner-discount { margin-left: 9px; color: #b6d9cd; }
.winter-banner-icon {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #d6fff215;
  color: #c0ffed;
  font-size: 18px;
  text-shadow: 0 0 10px #63e4cb98;
}

.winter-countdown {
  flex-shrink: 0;
  padding: 5px 9px;
  border: 1px solid #bceee436;
  border-radius: 7px;
  background: #081b1bd1;
  color: #d8fff1;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.winter-banner-offer:focus-visible { outline: 2px solid #9bf3dc; outline-offset: 3px; }

.winter-lights {
  position: absolute;
  inset: 100% 0 auto;
  display: flex;
  height: 27px;
  overflow: hidden;
  pointer-events: none;
}

.winter-lights > span {
  --glow: #9af9d8;
  --delay: -2s;
  --drop: 10px;
  position: relative;
  flex: 1 0 0;
  height: var(--drop);
  border-bottom: 1px solid #78ad97a1;
  border-radius: 0 0 50% 50%;
}

.winter-lights > span:nth-child(4n+2) { --glow: #ffce84; --delay: -4s; --drop: 7px; }
.winter-lights > span:nth-child(4n+3) { --glow: #f89b9b; --delay: -1s; --drop: 11px; }
.winter-lights > span:nth-child(4n) { --glow: #b5dfff; --delay: -3s; --drop: 6px; }
.winter-lights i {
  position: absolute;
  left: 50%;
  bottom: -11px;
  width: 6px;
  height: 9px;
  border-radius: 2px 2px 5px 5px;
  background: radial-gradient(ellipse at 35% 29%, #fff 5%, var(--glow) 63%);
  box-shadow: 0 0 8px var(--glow), 0 0 15px var(--glow);
  animation: winter-lamp 5.4s ease-in-out infinite var(--delay);
}
.winter-lights i::before {
  position: absolute;
  content: "";
  width: 8px;
  height: 3px;
  top: -2px;
  left: -1px;
  border-radius: 2px;
  background: #476254;
}
.winter-lights > span:nth-child(odd) i { rotate: 12deg; }
.winter-lights > span:nth-child(even) i { rotate: -10deg; }
@keyframes winter-lamp {
  0%, 100% { opacity: .8; }
  44% { opacity: .39; }
  73% { opacity: 1; }
}

.winter-snow {
  position: fixed;
  inset: 0;
  z-index: 1001;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.winter-package {
  position: relative;
  container-type: inline-size;
  border-color: #9ef8dc30;
  background-image: radial-gradient(ellipse at 50% 0, #4489632a, transparent 55%);
}
.winter-package::before {
  position: absolute;
  content: "";
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, #b8ffe599, transparent);
}
.winter-price-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 4px;
  min-height: 28px;
  color: #c5cdc8;
  font-size: 14px;
}
.winter-price-line del,
.winter-checkout-old { text-decoration-color: #a7bbb0; text-decoration-thickness: 1px; }
.winter-checkout-price { display: inline-flex; align-items: baseline; gap: .55rem; }
.winter-checkout-price .winter-sale-badge { align-self: center; }
.winter-checkout-old { color: #b9c9c1; font-size: 15px; }
.winter-current-price { display: inline-block; position: relative; }
.winter-current-price .winter-sale-badge {
  position: absolute;
  top: 50%;
  left: calc(100% + 6px);
  gap: 3px;
  padding: 4px 6px;
  font-size: 11px;
  transform: translateY(-50%);
}
.winter-sale-badge {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid #aaf8dc56;
  border-radius: 999px;
  background: linear-gradient(125deg, #255848, #17382f);
  box-shadow: inset 0 1px 0 #e0fff62b;
  color: #d3ffed;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}
@container (max-width: 225px) {
  .winter-package .winter-current-price { font-size: 26px; }
  .winter-current-price .winter-sale-badge {
    left: calc(100% + 4px);
    padding: 3px 4px;
    font-size: 10px;
  }
}
.winter-chrome-public ~ .home-page [id] { scroll-margin-top: 144px; }

@media (max-width: 800px) {
  .dash-body:has(.winter-banner) .dash-mobile-toggle { top: 64px; z-index: 50; }
  .winter-lights > span:nth-child(n+19) { display: none; }
}
@media (max-width: 520px) {
  .winter-banner { gap: 8px; padding-inline: 8px; }
  .winter-banner-offer { gap: 6px; }
  .winter-banner-discount { display: block; margin: 2px 0 0; font-size: 11px; }
  .winter-countdown { font-size: 11px; padding-inline: 5px; }
  .winter-lights > span:nth-child(n+13) { display: none; }
  .purchase-summary.winter-checkout-summary { flex-direction: column; align-items: center; gap: .2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .winter-lights i { animation: none; }
  .winter-snow { display: none; }
}
