/* =========================
   BOTTOM STICKY AD (FINAL)
========================= */

.bottom-sticky-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;

  background: #fff;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);

  max-height: 30vh;
  overflow: hidden;

  pointer-events: auto;
}

/* INNER WRAPPER */
.sticky-ad-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 8px 10px;
  text-align: center;

  position: relative;
  pointer-events: auto;
}

/* ENSURE IFRAME RECEIVES EVENTS */
.sticky-ad-inner iframe {
  pointer-events: auto;
}

/* CLOSE BUTTON (ALWAYS ON TOP) */
.sticky-ad-close {
  position: absolute;
  top: 4px;
  right: 6px;

  width: 32px;
  height: 32px;
  line-height: 32px;

  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 0;
  cursor: pointer;

  font-size: 20px;
  font-weight: 500;

  z-index: 10001;
  pointer-events: auto;
}

/* BODY OFFSET TO PREVENT OVERLAP */
body.has-bottom-sticky-ad {
  padding-bottom: 90px;
}

/* DESKTOP: DISABLE STICKY AD */
@media (min-width: 1024px) {
  .bottom-sticky-ad {
    display: none;
  }

  body.has-bottom-sticky-ad {
    padding-bottom: 0;
  }
}
