/* ============================================================
   Affiliate ad units — AliExpress (s.click.aliexpress.com)
   Styled to sit natively inside the XpressCoupon design system.
   ============================================================ */

.ad-unit{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}

/* tiny disclosure label above every unit (trust + good practice) */
.ad-label{
  font-family:var(--font-display);
  font-weight:600;
  font-size:10.5px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--ink-faint);
}

/* the clickable frame around a banner image */
.ad-frame{
  display:block;
  line-height:0;
  border-radius:var(--r-md);
  overflow:hidden;
  border:1px solid var(--line-soft);
  box-shadow:var(--shadow-sm);
  background:var(--surface);
  transition:transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .25s;
}
.ad-frame:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-md);
  border-color:var(--accent);
}
.ad-frame img{
  display:block;
  width:100%;
  height:auto;
}

/* ---- inline banner band (full-width section break) ---- */
.ad-band{
  padding-block:clamp(32px,5vw,52px);
}
.ad-band .ad-frame{ max-width:725px; }

/* responsive swap: leaderboard on wide screens, rectangle on narrow */
.ad-show-desktop{ display:flex; }
.ad-show-mobile{ display:none; }
@media (max-width:760px){
  .ad-show-desktop{ display:none; }
  .ad-show-mobile{ display:flex; }
  .ad-show-mobile .ad-frame{ max-width:300px; }
}

/* ---- native feature band: square creative + copy ---- */
.ad-feature{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);
  gap:clamp(24px,4vw,52px);
  align-items:center;
  background:var(--surface);
  border:1px solid var(--line-soft);
  border-radius:var(--r-xl);
  box-shadow:var(--shadow-md);
  padding:clamp(22px,3vw,40px);
}
.ad-feature .ad-frame{ max-width:500px; margin-inline:auto; border-radius:var(--r-lg); }
.ad-feature__copy .eyebrow{ margin-bottom:14px; }
.ad-feature__copy h3{ font-size:clamp(24px,3vw,34px); }
.ad-feature__copy p{ color:var(--ink-soft); font-size:clamp(15px,1.8vw,18px); margin-top:14px; max-width:42ch; }
.ad-feature__cta{ margin-top:24px; display:flex; gap:12px; flex-wrap:wrap; }
@media (max-width:820px){
  .ad-feature{ grid-template-columns:1fr; text-align:center; }
  .ad-feature__copy p{ margin-inline:auto; }
  .ad-feature__cta{ justify-content:center; }
}

/* ---- sticky skyscraper rail (wide desktop only) ---- */
.ad-rail{
  display:none;
}
@media (min-width:1480px){
  .ad-rail{
    display:flex;
    position:fixed;
    top:50%;
    right:max(16px, calc((100vw - var(--maxw)) / 2 - 184px));
    transform:translateY(-50%);
    z-index:40;
  }
  .ad-rail .ad-frame{ width:160px; }
}
