/* SellOrSwap.ie Christmas seasonal layer (December only).
   Overlay only: no layout, size or section changes, except a small
   padding-bottom at the very end of the page for the footer snow scene.
   The official logo is never redrawn. The Santa hat, C9 bulbs and Post Ad
   snow are pixel crops from Jason's mockup (ref/jason-xmas-ref.jpg).
*/

#sos-xmas-root,
#sos-xmas-root *,
#sos-xmas-hat,
#sos-xmas-hat *,
#sos-xmas-footer,
#sos-xmas-footer *,
#sos-xmas-snow,
.sos-xmas-cap,
.sos-xmas-cap * {
  pointer-events: none !important;
  box-sizing: border-box;
  user-select: none;
}

#sos-xmas-root {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  overflow: visible;
  z-index: 30;
  contain: layout style;
}

/* ---------- Light string (bulbs hang from the hero banner's bottom edge) ---------- */

.sos-xmas-string {
  position: fixed;
  left: 0;
  overflow: visible;
  line-height: 0;
  z-index: 30;
}

.sos-xmas-bulb {
  display: block;
}

.sos-xmas-bulb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.sos-xmas-bulb-light {
  opacity: 1;
  transition: opacity 0.12s ease-out;
}

.sos-xmas-bulb.sos-xmas-dim .sos-xmas-bulb-light {
  opacity: 0.2;
  transition: opacity 0.09s ease-in;
}

@media (prefers-reduced-motion: reduce) {
  .sos-xmas-bulb-light,
  .sos-xmas-bulb.sos-xmas-dim .sos-xmas-bulb-light {
    opacity: 1 !important;
    transition: none !important;
  }
  #sos-xmas-snow { display: none !important; }
}

/* ---------- Falling snow ---------- */

#sos-xmas-snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none !important;
  z-index: 12;
  contain: strict;
}

/* ---------- Santa hat on the S-mark ---------- */

#sos-xmas-hat {
  position: fixed;
  z-index: 10060;
  pointer-events: none !important;
  line-height: 0;
  overflow: visible;
}

#sos-xmas-hat img,
#sos-xmas-footer svg,
.sos-xmas-cap img {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ---------- Post Ad snow caps ---------- */

.sos-xmas-cap {
  position: fixed;
  z-index: 10050;
  pointer-events: none !important;
  line-height: 0;
  overflow: visible;
}

/* ---------- Footer snow scene ---------- */

#sos-xmas-footer {
  position: fixed;
  z-index: 18;
  pointer-events: none !important;
  line-height: 0;
  overflow: visible;
}

#sos-xmas-footer img {
  display: block;
  pointer-events: none !important;
  user-select: none;
  -webkit-user-drag: none;
}

/* Jason's footer pixels: snow drift full width, pine + lights left, kraft gift right. */
.sos-xmas-drift {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 70px;
  object-fit: cover;
  object-position: center bottom;
}

.sos-xmas-pine {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 114px;
  width: auto;
  max-width: 46%;
  object-fit: contain;
  object-position: left bottom;
}

.sos-xmas-gift {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 102px;
  width: auto;
  max-width: 48%;
  object-fit: contain;
  object-position: right bottom;
}

@media (min-width: 700px) {
  .sos-xmas-drift { height: 100px; }
  .sos-xmas-pine { height: 168px; }
  .sos-xmas-gift { height: 152px; }
}

@media (min-width: 1200px) {
  .sos-xmas-drift { height: 120px; }
  .sos-xmas-pine { height: 200px; }
  .sos-xmas-gift { height: 180px; }
}
