/* Chrillion Monetize Subdomain Ad Styles (chrillion.taprush.org)
   Strictly scoped to companion subdomain (body.ch-monetize-host).
   Sticky dual 160x600 desktop rails (>=1000px right, >=1220px both);
   Desktop >=600px 336x280 Large Rectangle + >=28px vertical clearance; Bottom Anchor safe inset. */
:root {
  --ch-bottom-ad-space: 0px;
}

body.ch-monetize-host {
  padding-bottom: calc(16px + var(--ch-bottom-ad-space, 0px));
}

.ch-ad-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
}

.ch-ad-box[hidden],
.ch-ad-box[data-ad-collapsed="true"] {
  display: none !important;
}

.ch-ad-label {
  display: block;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(210, 173, 117, 0.65);
  margin-bottom: 4px;
  text-align: center;
  user-select: none;
}

.ch-result-ad-slot {
  width: 100%;
  max-width: 336px;
  margin: 28px auto;
  flex-shrink: 0;
  box-sizing: border-box;
}

.ch-ad-box--result-top {
  margin: 0 auto;
  width: 100%;
  max-width: 336px;
  min-height: 100px;
}

@media (min-width: 600px) {
  .ch-ad-box--result-top {
    width: 336px;
    max-width: 336px;
    min-height: 280px;
  }
}

.ch-ad-box--result-top[data-ad-status="unfill-optimized"] {
  min-height: 0;
}

.ch-monetize-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1rem;
  align-items: center;
}

.ch-monetize-cta-row a,
.ch-continue-monetize {
  text-decoration: none;
}

/* Sticky 160x600 desktop rails: right rail >=1000px, dual rails >=1220px */
.ch-ad-rail {
  display: none;
  position: fixed;
  top: 76px;
  width: 164px;
  z-index: 40;
  pointer-events: auto;
  margin: 0;
}

.ch-ad-rail--right {
  right: 12px;
}

.ch-ad-rail--left {
  left: 12px;
}

@media (min-width: 1000px) {
  .ch-ad-rail--right {
    display: flex;
  }

  body.ch-monetize-host {
    padding-right: 188px;
  }
}

@media (min-width: 1220px) {
  .ch-ad-rail--left {
    display: flex;
  }

  body.ch-monetize-host {
    padding-left: 188px;
    padding-right: 188px;
  }
}

@media (max-width: 999px) {
  .ch-ad-rail {
    display: none !important;
  }
}
