/* Everything is scoped to html.sqp-xmas, which noel.js adds only inside the schedule window. */
.sqp-xmas .sqp-snow{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:9999}

/* Snow caps on buttons */
/* :where() = zero specificity, so buttons the site positions itself (e.g. the fixed "↑ Haut") keep it. */
:where(.sqp-xmas.sqp-caps) :where(.e-button-base,.elementor-button){position:relative}
.sqp-xmas.sqp-caps :is(.e-button-base,.elementor-button)::before{
  content:"";position:absolute;left:-4px;right:-4px;top:-8px;height:34px;padding:0 10px;z-index:2;pointer-events:none;
  /* Layers, top first: a clump drooping down the left side, one down the right side, then two
     seamless tiles of different widths (clipped between the clumps) whose lumps and drips overlap
     irregularly at any button width. */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='34'%3E%3Cpath fill='%23fff' d='M24 3C18 0 10 0 6 3C1 6 0 10 1 14L1 26A4.5 4.5 0 0 0 10 26L10 16Q10 12 14 12H24Z'/%3E%3C/svg%3E") left top/24px 34px no-repeat border-box,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='34'%3E%3Cpath fill='%23fff' d='M0 3C6 0 14 0 18 3C23 6 24 10 23 14L23 26A4.5 4.5 0 0 1 14 26L14 16Q14 12 10 12H0Z'/%3E%3C/svg%3E") right top/24px 34px no-repeat border-box,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='26'%3E%3Cpath fill='%23fff' d='M0 7C4 2 10 2 14 5C18 1 26 1 30 5C34 2 40 1 44 4C48 1 56 2 60 7V12H47Q46 12 46 15A4 4 0 0 1 38 15Q38 12 37 12H24Q23 12 23 14A2.5 2.5 0 0 1 18 14Q18 12 17 12H0Z'/%3E%3C/svg%3E") 0 0/60px 26px repeat-x content-box,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='47' height='26'%3E%3Cpath fill='%23fff' d='M0 12V8c3-4 9-5 13-2 5-4 13-4 17 0 4-3 13-3 17 2v4H33Q32 12 32 14A3 3 0 0 1 26 14Q26 12 25 12Z'/%3E%3C/svg%3E") 21px 0/47px 26px repeat-x content-box;
  filter:drop-shadow(0 1px 1px rgba(20,50,90,.35));
}
/* Little flurry inside the button on hover */
.sqp-xmas.sqp-caps :is(.e-button-base,.elementor-button)::after{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .3s;
  background:
    radial-gradient(circle,rgba(255,255,255,.95) 0 1.4px,transparent 2px) 0 0/23px 19px,
    radial-gradient(circle,rgba(255,255,255,.7) 0 1px,transparent 1.5px) 9px 5px/31px 27px;
}
.sqp-xmas.sqp-caps :is(.e-button-base,.elementor-button):is(:hover,:focus-visible)::after{opacity:1;animation:sqp-flurry 2.4s linear infinite}
@keyframes sqp-flurry{to{background-position:6px 38px,0 59px}}

/* Frosted edges on images */
:where(.sqp-xmas.sqp-frost) :where(a.e-image-link-base){position:relative}
.sqp-xmas.sqp-frost a.e-image-link-base:has(>img:not(.badge-img,.header-logo,.footer-logo))::after{
  content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.045 .06' numOctaves='4'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 2.2 -.95'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  box-shadow:inset 0 0 40px 6px rgba(230,242,255,.7),inset 0 0 3px 1px rgba(255,255,255,.8);
  opacity:.75;
  -webkit-mask-image:radial-gradient(ellipse at center,transparent 62%,#000 100%);
          mask-image:radial-gradient(ellipse at center,transparent 62%,#000 100%);
}

@media (prefers-reduced-motion:reduce){
  .sqp-xmas.sqp-caps :is(.e-button-base,.elementor-button):is(:hover,:focus-visible)::after{animation:none}
}
