/* BonusPayCalc ad slots — layout-safe containers.
   Every rule here exists to guarantee one thing: an ad creative can never make
   the page scroll horizontally, on any screen width. */

.bpc-ad {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 18px auto;
  text-align: center;
  overflow: hidden;
}

.bpc-ad-label {
  display: block;
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 6px;
  line-height: 1;
}

.bpc-ad-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;   /* the hard stop against oversized creatives */
  margin: 0 auto;
}

.bpc-ad-frame {
  display: block;
  border: 0;
  max-width: 100%;
  margin: 0 auto;
}

/* Slot-specific spacing ---------------------------------------------------- */

.bpc-ad--header {
  margin: 14px auto 0;
  padding: 0 16px;
}

.bpc-ad--content-top,
.bpc-ad--content-mid,
.bpc-ad--content-end {
  margin: 22px auto;
  padding: 0 16px;
}

.bpc-ad--footer {
  margin: 24px auto 8px;
  padding: 0 16px;
}

/* Sidebar slot sits inside the calculator hero grid on desktop only. */
.bpc-ad--sidebar {
  margin: 14px 0 0;
}

@media (max-width: 940px) {
  .bpc-ad--sidebar { display: none; }
}

/* Sticky footer ------------------------------------------------------------ */

.bpc-ad-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  margin: 0;
  padding: 6px 34px 6px 8px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -6px 22px rgba(2, 6, 23, .10);
}

.bpc-ad-sticky .bpc-ad-label { display: none; }

.bpc-ad-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 17px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.bpc-ad-close:hover { background: #f1f5f9; }

/* Dark mode ---------------------------------------------------------------- */

@media (prefers-color-scheme: dark) {
  .bpc-ad-sticky {
    background: rgba(15, 23, 42, .96);
    border-top-color: #1e293b;
  }
  .bpc-ad-close {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
  }
  .bpc-ad-label { color: #64748b; }
}

/* Print — never waste paper on ads. */
@media print {
  .bpc-ad { display: none !important; }
}
