.santa-trail {
  position: fixed;
  z-index: 18;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.santa-overlay {
  --dock-left: max(24px, env(safe-area-inset-left));
  --dock-bottom: max(22px, calc(env(safe-area-inset-bottom) + 10px));
  --dock-width: min(318px, calc(100vw - 48px));
  --dock-height: 100px;
  display: contents;
}

.santa-overlay[hidden], .santa-widget[hidden] { display: none; }

.santa-widget {
  position: fixed;
  z-index: 19;
  inset-inline-start: var(--dock-left);
  inset-block-end: var(--dock-bottom);
  width: var(--dock-width);
  height: var(--dock-height);
  padding: 0;
  border: 0;
  border-radius: 13px;
  color: #fff7e7;
  text-align: left;
  background: transparent;
  translate: var(--santa-flight-x, 0px) var(--santa-flight-y, 0px);
}

.santa-widget[data-phase='flying'] { z-index: 21; pointer-events: none; }
.santa-widget:focus-visible, .santa-dismiss:focus-visible { outline: 3px solid #af5b25; outline-offset: 4px; }

.santa-art {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: calc(var(--dock-width) * .44);
  pointer-events: none;
}

.santa-figures {
  position: absolute;
  inset: 0;
  transform-origin: 88% 64%;
  rotate: var(--santa-flight-bank, 0deg);
  scale: var(--santa-flight-scale, 1);
  filter: drop-shadow(0 5px 6px rgb(7 20 24 / .25));
}

.santa-deer, .santa-sleigh, .santa-frame, .santa-reins { position: absolute; }
.santa-frame {
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scaleX(1);
  user-select: none;
}

.santa-frame:first-child { opacity: 1; }

.santa-deer {
  --gallop-cycle: .56s;
  --gait-offset: 0s;
  width: 34%;
  height: 78%;
}

.santa-deer--far {
  z-index: 1;
  left: 0;
  top: 5%;
  width: 32%;
  height: 76%;
  filter: brightness(.91);
}

.santa-deer--near { --gait-offset: -.14s; z-index: 3; left: 18.5%; top: 17%; }
.santa-sleigh { z-index: 4; width: 52.5%; height: 100%; right: 0; bottom: 0; }
.santa-widget:not([data-phase='flying']) .santa-sleigh {
  width: 39%;
  height: calc(var(--dock-height) - 6px);
  right: 8px;
  bottom: 3px;
  transition: width .32s ease, height .32s ease, right .32s ease, bottom .32s ease;
}

.santa-widget:not([data-phase='flying']) :is(.santa-deer, .santa-reins) {
  opacity: 0;
  translate: 8px 4px;
  transition: opacity .32s ease, translate .32s ease;
}

.santa-reins {
  z-index: 2;
  left: 22%;
  top: 48%;
  width: 43%;
  height: 11%;
  border-bottom: 2px solid #b17a48;
  border-radius: 0 0 60% 52%;
  transform: rotate(4deg);
}

.santa-reins::before {
  content: "";
  position: absolute;
  left: 7%;
  right: -3%;
  bottom: -5px;
  height: 7px;
  border-bottom: 1px solid #603922;
  border-radius: 0 0 60% 50%;
}

.santa-promo-label {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 9px 39% 11px 15px;
  border: 1px solid #83734f;
  border-radius: inherit;
  color: #fff4da;
  background: #0e3241;
  box-shadow: 0 12px 25px rgb(9 28 37 / .24);
  transition: opacity .26s ease, translate .26s ease, background-color .18s ease;
}

.santa-gift-label { color: #ebcb93; font-size: .69rem; font-weight: 610; line-height: 1.15; }
.santa-offer-line { display: flex; align-items: baseline; gap: 7px; }
.santa-offer-line strong { color: #d3ef40; font-size: 2rem; line-height: 1.1; letter-spacing: -.037em; }
.santa-offer-line span { font-size: .76rem; font-weight: 650; line-height: 1.15; }
.santa-offer-action { display: flex; gap: 7px; align-items: center; margin-top: 3px; color: #f5d69f; font-size: .81rem; font-weight: 630; line-height: 1.15; }
.santa-offer-action::after { content: ''; width: 6px; height: 6px; border-block-start: 1px solid; border-inline-end: 1px solid; rotate: 45deg; }
.santa-widget:hover .santa-promo-label { background: #163f4f; }
.santa-widget:hover .santa-offer-action { text-decoration: underline; text-underline-offset: .24em; }
.santa-widget[data-phase='flying'] .santa-promo-label { opacity: 0; translate: 0 8px; pointer-events: none; transition: none; }

.santa-dismiss {
  position: fixed;
  z-index: 20;
  inset-inline-start: calc(var(--dock-left) + var(--dock-width) - 40px);
  inset-block-end: calc(var(--dock-bottom) + var(--dock-height) - 40px);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff5df;
}

.santa-dismiss:hover { background: #285164; }
.santa-dismiss::before, .santa-dismiss::after {
  content: '';
  grid-area: 1 / 1;
  width: 14px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  rotate: 45deg;
}
.santa-dismiss::after { rotate: -45deg; }
.santa-widget[data-phase='flying'] + .santa-dismiss { display: none; }

.santa-overlay[data-opening] .santa-widget {
  animation: santa-dock-shake 170ms ease-out both;
}

@keyframes santa-dock-shake {
  0%, 100% { transform: none; }
  22% { transform: translateX(-3px) rotate(-1.1deg); }
  55% { transform: translateX(4px) rotate(1.05deg); }
  78% { transform: translateX(-1px) rotate(-.45deg); }
}

.santa-gift {
  position: fixed;
  z-index: 31;
  inset-inline-start: calc(var(--dock-left) + 35px);
  inset-block-end: calc(var(--dock-bottom) + 22px);
  width: 52px;
  height: 48px;
  visibility: hidden;
  isolation: isolate;
  pointer-events: none;
  translate: var(--gift-x, 0px) var(--gift-y, 0px);
  rotate: var(--gift-angle, 0deg);
  scale: var(--gift-scale, 1);
  filter: drop-shadow(0 7px 7px rgb(21 14 15 / .22));
}

.santa-gift[data-visible] { visibility: visible; }
.santa-gift::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -45px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff5cd, #ffe2a38c 26%, transparent 62%);
  opacity: 0;
}
.santa-gift[data-opened]::before { animation: santa-gift-flash 230ms ease-out both; }

.santa-gift-base, .santa-gift-lid { position: absolute; }
.santa-gift-base {
  inset: 20px 4px 1px;
  border-radius: 2px 3px 6px 6px;
  background: linear-gradient(90deg, #a1383d, #711924 73%, #4f1721);
  box-shadow: inset 0 -2px 0 #41152369;
}
.santa-gift-base::before, .santa-gift-lid::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 42%;
  width: 18%;
  background: linear-gradient(90deg, #b17842, #f8d78e 38%, #e8ab57 70%, #9f602f);
}
.santa-gift-base::after {
  content: '';
  position: absolute;
  inset: 0 2px auto;
  height: 5px;
  border-radius: 52%;
  background: #441c23;
}

.santa-gift-lid {
  inset: 13px 0 auto;
  height: 12px;
  border: 1px solid #dc775b;
  border-block-end-color: #5b1522;
  border-radius: 4px;
  background: linear-gradient(164deg, #bd5250, #8a222d 74%);
  transform-origin: 79% 70%;
  transition: translate 175ms cubic-bezier(.18,.88,.36,1), rotate 175ms cubic-bezier(.18,.88,.36,1);
}

.santa-gift-bow { position: absolute; inset: -2px 0 auto; }
.santa-gift-bow::before, .santa-gift-bow::after {
  content: '';
  position: absolute;
  inset-block-end: 0;
  width: 14px;
  height: 9px;
  border: 2px solid #efc06e;
}
.santa-gift-bow::before { inset-inline-end: 49%; border-radius: 55% 61% 40% 57%; rotate: 24deg; }
.santa-gift-bow::after { inset-inline-start: 49%; border-radius: 61% 55% 57% 40%; rotate: -24deg; }
.santa-gift[data-opened] .santa-gift-lid { translate: 10px -18px; rotate: -27deg; }

@keyframes santa-gift-flash {
  from { opacity: .14; scale: .58; }
  55% { opacity: .87; }
  to { opacity: .3; scale: 1.19; }
}

.santa-widget[data-phase='flying'] .santa-deer[data-cycle-ready] .santa-frame {
  animation: santa-frame-quarter var(--gallop-cycle) steps(1, end) infinite;
  animation-delay: calc(var(--gait-offset) - var(--frame-offset));
}

.santa-deer .santa-frame:nth-child(1) { --frame-offset: 0s; }
.santa-deer .santa-frame:nth-child(2) { --frame-offset: .42s; }
.santa-deer .santa-frame:nth-child(3) { --frame-offset: .28s; }
.santa-deer .santa-frame:nth-child(4) { --frame-offset: .14s; }

.santa-widget[data-phase='waving'] .santa-sleigh[data-cycle-ready] .santa-frame:first-child { opacity: 0; }
.santa-widget[data-phase='waving'] .santa-sleigh[data-cycle-ready] .santa-frame:nth-child(2) {
  animation: santa-frame-quarter .72s steps(1, end) infinite;
}
.santa-widget[data-phase='waving'] .santa-sleigh[data-cycle-ready] .santa-frame:nth-child(3) {
  animation: santa-wave-middle .72s steps(1, end) infinite;
}
.santa-widget[data-phase='waving'] .santa-sleigh[data-cycle-ready] .santa-frame:nth-child(4) {
  animation: santa-frame-quarter .72s steps(1, end) -.36s infinite;
}

@keyframes santa-frame-quarter {
  0% { opacity: 1; }
  25%, 100% { opacity: 0; }
}
@keyframes santa-wave-middle {
  0%, 50%, 100% { opacity: 0; }
  25%, 75% { opacity: 1; }
}

@media (max-width: 760px) {
  .santa-overlay {
    --dock-left: max(12px, env(safe-area-inset-left));
    --dock-bottom: max(12px, calc(env(safe-area-inset-bottom) + 8px));
    --dock-width: min(270px, calc(100vw - 24px));
    --dock-height: 88px;
  }
  body:has(.property-mobile-bar) .santa-overlay {
    --dock-bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .santa-promo-label { padding-inline-start: 12px; }
  .santa-offer-line { gap: 5px; }
  .santa-offer-line strong { font-size: 1.75rem; }
  .santa-offer-line span { font-size: .74rem; }
  .santa-gift-label { font-size: .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  .santa-widget .santa-frame { animation: none !important; }
  .santa-widget[data-phase='waving'] .santa-sleigh[data-cycle-ready] .santa-frame:first-child { opacity: 1; }
  .santa-widget .santa-promo-label { transition: none; }
  .santa-overlay[data-opening] .santa-widget { animation: none; }
}

#holiday-offer-dialog {
  --offer-ink: #101e26;
  --offer-lime: #cce936;
  --offer-surface: #fffaf3;
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(460px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100% - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 16px;
  background: var(--offer-surface);
  color: var(--offer-ink);
  box-shadow: 0 24px 75px rgba(8, 24, 29, 0.32);
  text-align: left;
}

#holiday-offer-dialog::backdrop {
  background: rgba(8, 20, 27, 0.65);
}

@media (prefers-reduced-motion: no-preference) {
  #holiday-offer-dialog[open] { animation: offer-arrival .24s cubic-bezier(.15,.74,.3,1) both; }
  #holiday-offer-dialog[open]::backdrop { animation: offer-backdrop .2s ease-out both; }
}

@keyframes offer-arrival {
  from { opacity: 0; transform: translateY(9px) scale(.96); }
  to { opacity: 1; transform: none; }
}

@keyframes offer-backdrop { from { opacity: 0; } to { opacity: 1; } }

#holiday-offer-dialog [hidden] {
  display: none !important;
}

#holiday-offer-dialog .offer-dialog__header {
  padding: 27px 28px 25px;
  background: var(--offer-ink);
  color: var(--offer-surface);
}

#holiday-offer-dialog .offer-dialog__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  margin: 0 34px 0 0;
  padding: 0;
  color: inherit;
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

#holiday-offer-dialog .offer-dialog__discount {
  color: var(--offer-lime);
  font-size: clamp(2.7rem, 9.5vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

#holiday-offer-dialog .offer-dialog__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--offer-surface);
  cursor: pointer;
}

#holiday-offer-dialog .offer-dialog__close::before,
#holiday-offer-dialog .offer-dialog__close::after {
  content: "";
  grid-area: 1 / 1;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(45deg);
}

#holiday-offer-dialog .offer-dialog__close::after {
  transform: rotate(-45deg);
}

#holiday-offer-dialog .offer-dialog__close:hover {
  background: rgba(255, 250, 243, 0.12);
}

#holiday-offer-dialog .offer-dialog__body {
  margin: 0;
  padding: 24px 28px 27px;
}

#holiday-offer-dialog .offer-dialog__body p {
  margin: 0 0 18px;
  font-size: 0.97rem;
  line-height: 1.5;
}

#holiday-offer-dialog .offer-dialog__fields {
  display: grid;
  gap: 13px;
}

#holiday-offer-dialog .offer-dialog__field {
  display: grid;
  gap: 5px;
  margin: 0;
  color: var(--offer-ink);
  font-size: 0.875rem;
  font-weight: 650;
}

#holiday-offer-dialog .offer-dialog__field input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 47px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #838c84;
  border-radius: 8px;
  background: #fffdf9;
  color: var(--offer-ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 450;
}

#holiday-offer-dialog .offer-dialog__field input::placeholder {
  color: #536368;
  opacity: 1;
}

#holiday-offer-dialog .offer-dialog__consent {
  margin: 15px 0 16px;
  color: #415357;
  font-size: .8rem;
  line-height: 1.45;
}

#holiday-offer-dialog .offer-dialog__consent label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

#holiday-offer-dialog .offer-dialog__consent input {
  flex: none;
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: #087378;
}

#holiday-offer-dialog .offer-dialog__consent a {
  display: inline-block;
  margin-inline-start: 23px;
  color: #25578a;
  text-decoration: underline;
  text-underline-offset: .15em;
}

#holiday-offer-dialog .offer-dialog__error {
  margin: 12px 0;
  color: #892437;
  font-size: .875rem;
}

#holiday-offer-dialog input[aria-invalid=true] {
  border-color: #a23849;
}

#holiday-offer-dialog .honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

#holiday-offer-dialog .offer-dialog__action {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 11px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--offer-lime);
  color: var(--offer-ink);
  font: inherit;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
}

#holiday-offer-dialog .offer-dialog__action:hover {
  background: #bdd82c;
}

#holiday-offer-dialog .offer-dialog__action:disabled {
  opacity: .7;
  cursor: progress;
}

#holiday-offer-dialog :is(button, input):focus-visible {
  outline: 2px solid #087378;
  outline-offset: 3px;
}

#holiday-offer-dialog .offer-dialog__close:focus-visible {
  outline-color: var(--offer-lime);
}

#holiday-offer-dialog .offer-dialog__title:focus {
  outline: none;
}

@media (max-width: 420px) {
  #holiday-offer-dialog .offer-dialog__header,
  #holiday-offer-dialog .offer-dialog__body {
    padding-right: 19px;
    padding-left: 19px;
  }
}

@media print {
  .santa-trail, .santa-overlay, #holiday-offer-dialog { display: none !important; }
}

.winter-cursor-flake {
  display: none;
}

@media screen and (any-hover: hover) and (any-pointer: fine) and (prefers-reduced-motion: no-preference) {
  .winter-cursor-flake {
    display: block;
    position: fixed;
    z-index: 21;
    width: var(--flake-size, 21px);
    height: var(--flake-size, 21px);
    pointer-events: none;
    user-select: none;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3Cpath id='flake' d='M16 3 16 29M27.26 9.5 4.74 22.5M27.26 22.5 4.74 9.5M12.4 5.4 16 9 19.6 5.4M23.38 7.58 22.06 12.5 26.98 13.82M26.98 18.18 22.06 19.5 23.38 24.42M19.6 26.6 16 23 12.4 26.6M8.62 24.42 9.94 19.5 5.02 18.18M5.02 13.82 9.94 12.5 8.62 7.58'/%3E%3C/defs%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cuse href='%23flake' stroke='%23367382' stroke-width='3.8'/%3E%3Cuse href='%23flake' stroke='%23f0fbff' stroke-width='1.8'/%3E%3C/g%3E%3C/svg%3E");
    animation: winter-cursor-fade 730ms ease-out both;
  }
}

@keyframes winter-cursor-fade {
  from {
    transform: translate3d(-72%, -35%, 0) rotate(-8deg);
    opacity: .98;
  }
  32% {
    opacity: .9;
  }
  to {
    transform: translate3d(var(--flake-drift, 0px), 23px, 0) rotate(31deg) scale(.78);
    opacity: 0;
  }
}
