/* Seasonal Overlays – core styles */

/* Root overlay: covers the viewport, never captures clicks or scroll. */
.so-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
  line-height: 0;
  contain: layout paint;
}
.so-overlay,
.so-overlay * {
  pointer-events: none !important;
  box-sizing: content-box;
}

/* Themes (Flatsome/Divi) often set svg/img max-width – neutralize inside the overlay. */
.so-overlay svg,
.so-overlay img {
  max-width: none !important;
  max-height: none !important;
}

/* Container for clickable theme elements (e.g. promo link): same area, not aria-hidden.
   Only children with .so-clickable receive clicks. */
.so-interactive {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
}
.so-interactive .so-clickable {
  pointer-events: auto;
}

/* Logged-in users: start below the WordPress admin bar. */
.admin-bar .so-overlay,
.admin-bar .so-interactive {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .so-overlay,
  .admin-bar .so-interactive {
    top: 46px;
  }
}

/* Particle canvas (snow, falling hearts). */
.so-overlay .so-canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
}

/* Visitor close button – outside the overlay root, so it is clickable.
   "button.so-close" + resets: Flatsome/Divi style plain <button> elements globally. */
button.so-close {
  min-width: 0;
  min-height: 0;
  max-width: none;
  text-transform: none;
  letter-spacing: 0;
  text-shadow: none;
  vertical-align: baseline;
  position: fixed;
  left: 14px;
  bottom: 14px;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font: 20px/30px Arial, sans-serif;
  text-align: center;
  cursor: pointer;
  opacity: 0.55;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: opacity 0.2s;
}
button.so-close:hover,
button.so-close:focus-visible {
  opacity: 1;
}

/* One layer per active theme. */
.so-theme {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
