/* Server-authoritative payment catalog and confirmation surface. */
#paywall-page {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal, 200) + 70);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #000;
  color: #fff;
}

#paywall-page.hidden,
.pw-review[hidden],
.pw-review-backdrop[hidden],
.pw-renewal-banner[hidden] {
  display: none;
}

/* React episode unlock sheet — points-first checkout. */
.ep-unlock-overlay { position: absolute; z-index: 30; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 16px 16px max(20px, env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.86)); backdrop-filter: blur(8px); }
.ep-unlock-modal { width: min(100%, 520px); max-height: min(90dvh, 760px); overflow-y: auto; padding: 22px; color: #fff; border: 1px solid rgba(235,198,107,.22); border-radius: 22px; background: linear-gradient(150deg, #1d1a18, #111); box-shadow: 0 24px 80px rgba(0,0,0,.6); }
.ep-unlock-header { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.ep-unlock-kicker { display: block; margin-bottom: 5px; color: #d7ad54; font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.ep-unlock-header h2 { margin: 0; font: 500 29px/1 "Iowan Old Style", Georgia, serif; }
.ep-unlock-header button { width: 40px; height: 40px; color: rgba(255,255,255,.65); border-radius: 50%; background: rgba(255,255,255,.05); font-size: 26px; }
.ep-unlock-balance { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; background: rgba(255,255,255,.035); }
.ep-unlock-balance > span { color: rgba(255,255,255,.45); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.ep-unlock-balance strong { color: #e8c46d; font-size: 15px; }
.ep-unlock-balance i { font-style: normal; }

.ep-unlock-price small, .ep-unlock-footnote { color: rgba(255,255,255,.4); font-size: 10px; }

.ep-unlock-options { display: grid; gap: 9px; padding: 16px 0; }
.ep-unlock-option { position: relative; display: flex; width: 100%; min-height: 68px; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px; color: #fff; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; background: rgba(255,255,255,.035); text-align: left; }
.ep-unlock-option > div { display: grid; min-width: 0; gap: 3px; }
.ep-unlock-option span { font-size: 14px; font-weight: 750; }
.ep-unlock-option small { color: rgba(255,255,255,.44); font-size: 10px; line-height: 1.4; }
.ep-unlock-option > strong { flex: 0 0 auto; color: #f0cd75; font-size: 15px; }
.ep-unlock-option > del { position: absolute; right: 15px; bottom: 7px; color: rgba(255,255,255,.3); font-size: 9px; }
.ep-unlock-option--full { min-height: 78px; border-color: rgba(232,189,91,.3); background: rgba(232,189,91,.075); }
.ep-unlock-option:disabled { opacity: .46; }
.ep-unlock-actions { display: grid; gap: 9px; }
.ep-unlock-primary { display: flex; width: 100%; min-height: 50px; align-items: center; justify-content: center; padding: 0 18px; color: #150c0d; border: 0; border-radius: 999px; background: linear-gradient(100deg, #e84d70, #f0a46f); font-size: 14px; font-weight: 850; text-align: center; box-shadow: 0 12px 34px rgba(232,77,112,.2); }
.ep-unlock-primary:disabled { opacity: .5; }
.ep-unlock-membership { display: flex; min-height: 58px; align-items: center; gap: 12px; padding: 10px 15px; color: #f3d77e; border: 1px solid rgba(232,189,91,.26); border-radius: 14px; background: rgba(232,189,91,.06); }
.ep-unlock-membership > span { font-size: 23px; }
.ep-unlock-membership > div { display: grid; gap: 2px; }
.ep-unlock-membership strong { font-size: 12px; }
.ep-unlock-membership small { color: rgba(255,255,255,.42); font-size: 9px; }
.ep-unlock-shortfall { margin: 0 0 10px; color: #f4b3c1; font-size: 12px; text-align: center; }
.ep-unlock-message { margin: 11px 0 0; color: #ff9caf; font-size: 12px; text-align: center; }
.ep-unlock-footnote { margin: 13px auto 0; max-width: 42ch; line-height: 1.5; text-align: center; }

@media (min-width: 768px) {
  .ep-unlock-overlay { align-items: center; }
  .ep-unlock-modal { padding: 28px; }}