/* ==========================================================================
   Enterprise Ad System CSS
   Handles Layout Stability (CLS Protection), Sticky Banners & Adsterra Slots
   ========================================================================== */

.ad-cage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 24px auto;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.ad-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 4px;
  display: block;
  text-align: center;
  width: 100%;
}

/* Ad slots responsive min-heights to prevent Cumulative Layout Shift (CLS) */
.ad-slot-728x90 {
  min-height: 90px;
  width: 728px;
  max-width: 100%;
}

.ad-slot-300x250 {
  min-height: 250px;
  width: 300px;
  max-width: 100%;
}

.ad-slot-native {
  min-height: 180px;
  width: 100%;
  max-width: 780px;
}

/* In-Feed Native Ad Card */
.ad-card-native {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md, 10px);
  padding: 18px;
  position: relative;
}

/* Sticky Bottom Anchor Banner (Mobile & Desktop) */
#AdAnchorBottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 0 6px 0;
  border-top: 1px solid #e2e8f0;
  transition: transform 0.3s ease;
}

#AdAnchorBottom.hidden {
  transform: translateY(100%);
}

.ad-close-btn {
  position: absolute;
  top: -24px;
  right: 8px;
  background: #1e293b;
  color: #ffffff;
  border: none;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  opacity: 0.85;
}

.ad-close-btn:hover {
  opacity: 1;
}

/* Popunder Trigger Overlay Invisible Layer */
.popunder-ready {
  cursor: pointer;
}
