/* ============================================================================
   Carreh Web Dashboard — eSIM tab iOS-parity styles  (task #68)
   Pairs with dashboard-tab-esim.js. Uses ONLY --cw-* tokens (defined in
   dashboard-modern.css), flat fills, and the warm shadow scale. No new colors,
   no gradients on surfaces except the two signature brand moments (green hero +
   gold/cream rewards card) that mirror the iOS app.
   ========================================================================== */

.cw-esim-ios-root { display: block; }

/* ── HERO — the "one big green moment" (solid forest green, cream type) ───── */
.cw-esim-hero {
  background: var(--cw-green);
  color: var(--cw-on-primary);
  border: 1px solid rgba(251, 247, 240, 0.18);
  box-shadow: var(--cw-shadow-green);
  border-radius: var(--cw-radius);
}
.cw-esim-hero-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cw-esim-hero-ic {
  width: 48px; height: 48px;
  flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(251, 247, 240, 0.14);
  color: var(--cw-on-primary);
}
.cw-esim-hero-copy { flex: 1; min-width: 0; }
.cw-esim-hero-title {
  color: var(--cw-on-primary);
  margin: 2px 0 4px;
}
.cw-esim-hero-tag {
  color: rgba(251, 247, 240, 0.80);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
  min-height: 1.2em;
  transition: opacity 0.45s ease;
}
.cw-esim-myesims {
  flex: none;
  background: var(--cw-cream);
  color: var(--cw-green-deep);
  border: none;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 7px 13px;
  border-radius: 100px;
  white-space: nowrap;
}
.cw-esim-myesims:hover { background: #fff; }

/* cream-paper search inset */
.cw-esim-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 11px 13px;
  background: var(--cw-cream);
  border-radius: var(--cw-radius-sm);
  color: var(--cw-green-deep);
}
.cw-esim-search svg { color: rgba(14, 74, 40, 0.7); flex: none; }
.cw-esim-search input {
  flex: 1; min-width: 0;
  border: none; outline: none; background: transparent;
  font: inherit; font-size: 0.84rem;
  color: var(--cw-ink);
}
.cw-esim-search input::placeholder { color: var(--cw-ink-3); }
.cw-esim-search-clear {
  border: none; background: transparent; cursor: pointer;
  color: var(--cw-ink-3);
  font-size: 1.1rem; line-height: 1; padding: 0 2px;
}

/* loading shell */
.cw-esim-loading { border-radius: var(--cw-radius); }

/* ── DISCOVERY card (cream, gold hairline) ────────────────────────────────── */
.cw-esim-discovery {
  text-align: center;
  background: var(--cw-cream-2);
  border: 1px solid rgba(196, 154, 53, 0.18);
  border-radius: var(--cw-radius);
  padding: 24px 18px;
  box-shadow: var(--cw-shadow-soft);
}
.cw-esim-disc-ic {
  width: 72px; height: 72px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--cw-green-mint);
  font-size: 32px;
}
.cw-esim-disc-title {
  font-family: var(--cw-serif);
  font-size: 1.3rem;
  color: var(--cw-ink);
  margin: 12px 0 6px;
}
.cw-esim-disc-text {
  color: var(--cw-ink-3);
  font-size: 0.82rem;
  line-height: 1.55;
  max-width: 420px;
  margin: 0 auto;
}
.cw-esim-disc-chips {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-top: 14px;
}
.cw-esim-disc-chips span {
  font-size: 0.72rem; font-weight: 700;
  color: var(--cw-ink-2);
  background: rgba(196, 154, 53, 0.10);
  padding: 7px 12px;
  border-radius: 100px;
}

/* ── FULL gold/cream Carreh Euros rewards card (iOS esimRewardsCard) ───────── */
.cw-esim-rewards {
  background: var(--cw-cream-2);
  background-image: linear-gradient(to bottom, var(--cw-cream), rgba(196, 154, 53, 0.07));
  border: 1px solid rgba(196, 154, 53, 0.22);
  border-radius: var(--cw-radius);
  padding: 18px;
  box-shadow: var(--cw-shadow-soft);
}
.cw-esim-rw-head {
  display: flex; align-items: center; gap: 10px;
}
.cw-esim-rw-ic {
  width: 38px; height: 38px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(196, 154, 53, 0.18);
  font-size: 18px;
}
.cw-esim-rw-id { flex: 1; min-width: 0; }
.cw-esim-rw-title {
  display: flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 1rem;
  color: var(--cw-green-deep);
}
.cw-esim-rw-info {
  border: none; background: transparent; cursor: pointer;
  color: var(--cw-gold);
  font-size: 0.85rem; line-height: 1; padding: 0;
}
.cw-esim-rw-sub {
  font-size: 0.66rem;
  color: var(--cw-ink-3);
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cw-esim-rw-bal { text-align: right; flex: none; }
.cw-esim-rw-bal strong {
  display: block;
  font-family: var(--cw-serif);
  font-size: 1.45rem; font-weight: 700;
  color: var(--cw-gold);
  line-height: 1;
}
.cw-esim-rw-bal small {
  font-size: 0.56rem;
  color: var(--cw-ink-3);
}
.cw-esim-rw-progress { margin-top: 14px; }
.cw-esim-rw-bar {
  height: 8px; border-radius: 100px;
  background: rgba(196, 154, 53, 0.14);
  overflow: hidden;
}
.cw-esim-rw-bar i {
  display: block; height: 100%;
  background-image: linear-gradient(90deg, var(--cw-gold), #e3b54e);
  border-radius: 100px;
  transition: width 0.5s ease;
  min-width: 10px;
}
.cw-esim-rw-prog-text {
  font-size: 0.72rem;
  color: var(--cw-ink-2);
  margin-top: 6px;
}
.cw-esim-rw-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.cw-esim-rw-tier {
  text-align: center;
  padding: 9px 6px;
  border-radius: 12px;
  background: rgba(138, 133, 123, 0.05);
  border: 1px solid transparent;
}
.cw-esim-rw-tier.on {
  background: rgba(196, 154, 53, 0.14);
  border-color: rgba(196, 154, 53, 0.5);
}
.cw-esim-rw-emoji { font-size: 15px; display: block; }
.cw-esim-rw-tier strong {
  display: block;
  font-size: 0.95rem;
  color: var(--cw-green-deep);
  margin-top: 2px;
}
.cw-esim-rw-tier.on strong { color: var(--cw-gold); }
.cw-esim-rw-tier small {
  font-size: 0.56rem;
  color: var(--cw-ink-3);
  display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cw-esim-rw-tier .cw-item-meta { font-size: 0.56rem; margin-top: 2px; }
.cw-esim-rw-history {
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  border: none;
  border-radius: 12px;
  background: rgba(31, 107, 61, 0.08);
  color: var(--cw-green);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
}
.cw-esim-rw-history:hover { background: rgba(31, 107, 61, 0.14); }

/* ── DESTINATION grid (reuses .cw-dest-card; small parity tweaks) ─────────── */
.cw-esim-grid { margin-top: 4px; }
/* Every destination/plan card is tappable → explicit pointer cursor. <button>
   defaults to the arrow cursor, so without this Popular/featured cards don't
   look clickable. Covers BOTH our cards (.cw-esim-dest) and the host's grid
   (.cw-dest-card), which our delegated handler now routes into the PaySheet. */
.cw-dest-card,
.cw-esim-dest { cursor: pointer; }
.cw-esim-dest {
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.cw-esim-dest:hover {
  transform: translateY(-2px);
  box-shadow: var(--cw-shadow-pop);
  border-color: rgba(196, 154, 53, 0.35);
}
.cw-esim-dest small { color: var(--cw-gold); font-weight: 700; }
.cw-esim-empty {
  grid-column: 1 / -1;
  padding: 18px;
  text-align: center;
}
.cw-esim-more { padding: 7px 13px; font-size: 0.74rem; }

/* ── My eSIMs cards — tap-to-expand detail (flag · name · data · days ·
   status), QR + install live INSIDE the card, not a giant per-row button ─── */
.cw-esim-card2 {
  background: var(--cw-card);
  border: 1px solid var(--cw-line);
  border-radius: var(--cw-radius-mid);
  margin: 0 0 10px;
  overflow: hidden;
  box-shadow: var(--cw-shadow-soft);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cw-esim-card2.is-open { border-color: rgba(196, 154, 53, 0.4); box-shadow: var(--cw-shadow-pop); }
.cw-esim-card2-head {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  background: transparent; border: none; cursor: pointer;
  text-align: left; font: inherit; color: inherit;
}
.cw-esim-card2-head[aria-expanded] { cursor: pointer; }
.cw-esim-card2:not(.is-open) .cw-esim-card2-head:hover { background: var(--cw-cream-2); }
.cw-esim-card2-flag {
  width: 44px; height: 44px; flex: none;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  background: var(--cw-cream-2);
}
.cw-esim-card2-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cw-esim-card2-name {
  font-weight: 700; font-size: 0.92rem; color: var(--cw-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cw-esim-card2-meta { font-size: 0.74rem; color: var(--cw-ink-3); }
.cw-esim-card2-right {
  flex: none; display: flex; align-items: center; gap: 8px;
}
.cw-esim-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.66rem; font-weight: 800; white-space: nowrap;
  letter-spacing: 0.01em;
}
.cw-esim-pill i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.cw-esim-chev { color: var(--cw-ink-3); font-size: 0.8rem; line-height: 1; }

.cw-esim-usebar {
  height: 6px; border-radius: 3px;
  background: rgba(26, 24, 20, 0.08);
  margin-top: 8px;
  overflow: hidden;
  display: block;
}
.cw-esim-usebar i { display: block; height: 100%; border-radius: 3px; }
.cw-esim-qr-btn { padding: 6px 10px; font-size: 0.72rem; flex: none; }

/* ── Inline detail (QR + install steps + manual setup) ────────────────────── */
.cw-esim-detail {
  padding: 4px 14px 16px;
  border-top: 1px solid var(--cw-line);
  animation: cwEsimReveal 0.18s ease;
}
@keyframes cwEsimReveal { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.cw-esim-qr-wrap { text-align: center; padding: 14px 0 4px; }
.cw-esim-qr-img {
  width: 200px; max-width: 64%;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  border: 1px solid var(--cw-line);
  box-shadow: var(--cw-shadow-soft);
}
.cw-esim-qr-cap {
  font-size: 0.72rem; color: var(--cw-ink-2);
  margin: 10px auto 0; max-width: 280px; line-height: 1.5;
}
.cw-esim-steps-inline { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.cw-esim-step-row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.76rem; line-height: 1.5; color: var(--cw-ink-2); }
.cw-esim-step-row span {
  flex: none; width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--cw-green-mint); color: var(--cw-green-deep);
  font-size: 0.64rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.cw-esim-manual {
  margin-top: 14px;
  background: var(--cw-cream-2);
  border-radius: 12px;
  padding: 12px 14px;
}
.cw-esim-manual-h {
  font-size: 0.6rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--cw-ink-3); margin-bottom: 8px;
}
.cw-esim-drow {
  display: flex; align-items: baseline; gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid var(--cw-line);
}
.cw-esim-drow:last-child { border-bottom: none; }
.cw-esim-dlabel { flex: none; font-size: 0.72rem; color: var(--cw-ink-3); min-width: 110px; }
.cw-esim-dval {
  flex: 1; min-width: 0; text-align: right;
  font-size: 0.74rem; font-weight: 700; color: var(--cw-ink);
  overflow-wrap: anywhere;
}
.cw-esim-qr-note { font-size: 0.66rem; color: var(--cw-ink-3); margin-top: 10px; text-align: center; }

/* Not-ready / activating state (no QR yet — never a dead button) */
.cw-esim-qr-pending { text-align: center; padding: 18px 8px 6px; }
.cw-esim-qr-pending-ic {
  width: 52px; height: 52px; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(224, 138, 30, 0.12);
  font-size: 24px;
}
.cw-esim-qr-pending strong { display: block; color: var(--cw-ink); font-size: 0.92rem; }
.cw-esim-qr-pending p { margin: 6px auto 0; max-width: 300px; line-height: 1.5; }

/* ── New-to-eSIM explainer ────────────────────────────────────────────────── */
.cw-esim-newto { border-radius: var(--cw-radius); }
.cw-esim-newto-badge {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 13px;
  background: var(--cw-green-mint);
  font-size: 22px;
}

/* ── How-it-works steps ───────────────────────────────────────────────────── */
.cw-esim-steps .cw-esim-step { border-radius: var(--cw-radius-mid); }
.cw-esim-step-n {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 11px;
  background: var(--cw-green-mint);
  color: var(--cw-green-deep);
  font-family: var(--cw-serif);
  font-weight: 700; font-size: 1rem;
  margin-bottom: 10px;
}
.cw-esim-step .cw-item-title { margin: 0 0 4px; }

/* ── Responsive: tighten the rewards ladder + hero on narrow screens ──────── */
@media (max-width: 560px) {
  .cw-esim-rw-tiers { gap: 6px; }
  .cw-esim-rw-tier { padding: 8px 4px; }
  .cw-esim-hero-top { flex-wrap: wrap; }
  .cw-esim-myesims { order: 3; margin-top: 4px; }
  /* My-eSIM card: stack the status pill under the chevron so the name keeps
     room; keep the flag + body inline for a clean, tappable row. */
  .cw-esim-card2-head { gap: 10px; padding: 12px; }
  .cw-esim-card2-right { flex-direction: column; align-items: flex-end; gap: 4px; }
  .cw-esim-qr-img { max-width: 72%; }
  .cw-esim-dlabel { min-width: 92px; }
}

/* ── Dark mode: the SPA toggles `body.cw-dark`, and the --cw-* tokens already
   flip there. Only the two brand surfaces need their cream base re-stated so
   they read on the dark page. The forest hero stays green by design (its cream
   text token never flips). ───────────────────────────────────────────────── */
body.cw-dark .cw-esim-rewards {
  background-image: linear-gradient(to bottom, var(--cw-cream-2), rgba(196, 154, 53, 0.10));
}
body.cw-dark .cw-esim-rw-title { color: var(--cw-ink); }
body.cw-dark .cw-esim-rw-tier strong { color: var(--cw-ink); }
body.cw-dark .cw-esim-rw-tier.on strong { color: var(--cw-gold); }

/* ════════════════════════════════════════════════════════════════════════
   IN-TAB PAY SHEET — eSIM checkout with Carreh Euros redemption (iOS PaySheet
   parity). Reuses the shared .cw-modal-backdrop / .cw-modal / .cw-modal-close
   shell (dashboard-modern.css); these rules style the sheet body.
   ════════════════════════════════════════════════════════════════════════ */
.cw-ps { width: min(460px, 100%); max-width: 460px; padding: 22px 20px 20px; }
.cw-ps-head { display: flex; align-items: center; gap: 12px; margin: 2px 0 18px; }
.cw-ps-flag { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.cw-ps-name { font-family: 'Fraunces', Georgia, serif; font-size: 1.28rem; font-weight: 600; color: var(--cw-ink); line-height: 1.15; }
.cw-ps-sub { font-size: 0.72rem; color: var(--cw-ink-3); margin-top: 2px; }

.cw-ps-section-label {
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cw-gold); margin: 16px 0 8px;
}
.cw-ps-plans { display: flex; flex-direction: column; gap: 8px; }
.cw-ps-plan {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; padding: 12px 14px; cursor: pointer;
  border: 1.5px solid var(--cw-cream-3); border-radius: 13px;
  background: var(--cw-cream-2); color: var(--cw-ink); font-family: inherit;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.cw-ps-plan:hover { border-color: var(--cw-gold-2); }
.cw-ps-plan.on {
  border-color: var(--cw-gold); background: rgba(196, 154, 53, 0.07);
  box-shadow: 0 0 0 3px rgba(196, 154, 53, 0.12);
}
.cw-ps-plan-main strong { display: block; font-size: 0.84rem; font-weight: 700; }
.cw-ps-plan-main small { display: block; font-size: 0.66rem; color: var(--cw-ink-3); margin-top: 1px; }
.cw-ps-plan-price { font-size: 0.95rem; font-weight: 800; color: var(--cw-ink); white-space: nowrap; }

.cw-ps-qtyrow {
  display: flex; align-items: center; justify-content: space-between;
  margin: 16px 0 4px; font-size: 0.8rem; font-weight: 700; color: var(--cw-ink);
}
.cw-ps-qty { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--cw-cream-3); border-radius: 10px; overflow: hidden; background: var(--cw-cream-2); }
.cw-ps-qty button {
  width: 38px; height: 38px; border: none; background: none; cursor: pointer;
  font-size: 1.2rem; font-weight: 700; color: var(--cw-ink-2); font-family: inherit;
}
.cw-ps-qty button:hover { background: var(--cw-cream-3); color: var(--cw-ink); }
.cw-ps-qty strong { min-width: 34px; text-align: center; font-size: 0.9rem; }

.cw-ps-disc { margin-top: 4px; }
.cw-ps-disc-row { display: flex; gap: 8px; }
.cw-ps-input {
  flex: 1; min-width: 0; padding: 10px 12px; border: 1.5px solid var(--cw-cream-3);
  border-radius: 10px; background: var(--cw-cream-2); color: var(--cw-ink);
  font-family: inherit; font-size: 0.8rem; text-transform: uppercase; outline: none;
}
.cw-ps-input:focus { border-color: var(--cw-gold); }
.cw-ps-disc-result { margin-top: 7px; font-size: 0.72rem; font-weight: 600; padding: 8px 11px; border-radius: 9px; }
.cw-ps-disc-result.pending { background: var(--cw-cream-2); color: var(--cw-ink-3); }
.cw-ps-disc-result.ok { background: rgba(31, 107, 61, 0.08); color: #1F6B3D; }
.cw-ps-disc-result.bad { background: rgba(190, 50, 40, 0.08); color: #B53228; }

/* ── Carreh Euros redemption block ───────────────────────────────────────── */
.cw-ps-redeem { margin-top: 16px; }
.cw-ps-rw {
  border: 1.5px solid rgba(196, 154, 53, 0.24); border-radius: 14px;
  background: linear-gradient(180deg, var(--cw-cream-2), rgba(196, 154, 53, 0.05));
  padding: 14px 16px;
}
.cw-ps-rw-head { display: flex; align-items: center; gap: 10px; }
.cw-ps-rw-ic {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: rgba(196, 154, 53, 0.16); color: var(--cw-gold);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.cw-ps-rw-id { flex: 1; min-width: 0; }
.cw-ps-rw-id strong { display: block; font-size: 0.8rem; font-weight: 700; color: var(--cw-ink); }
.cw-ps-rw-id small { display: block; font-size: 0.64rem; color: var(--cw-ink-3); margin-top: 1px; }
.cw-ps-rw-earn { text-align: right; flex-shrink: 0; }
.cw-ps-rw-earn b { display: block; font-size: 0.9rem; font-weight: 800; color: #1F6B3D; }
.cw-ps-rw-earn small { display: block; font-size: 0.56rem; color: var(--cw-ink-3); }
.cw-ps-rw-note {
  margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--cw-cream-3);
  border-radius: 10px; font-size: 0.68rem; color: var(--cw-ink-3); line-height: 1.5;
}
.cw-ps-rw-apply {
  margin-top: 11px; padding: 12px 14px; border: 1.5px solid var(--cw-cream-3);
  border-radius: 12px; background: var(--cw-cream);
}
.cw-ps-rw-apply.on { border-color: rgba(31, 107, 61, 0.4); background: rgba(31, 107, 61, 0.05); }
.cw-ps-rw-apply-h { font-size: 0.74rem; font-weight: 700; color: var(--cw-ink); margin-bottom: 9px; }
.cw-ps-rw-apply-row { display: flex; gap: 8px; align-items: center; }
.cw-ps-rw-field {
  flex: 1; display: flex; align-items: center; gap: 2px;
  border: 1.5px solid var(--cw-cream-3); border-radius: 9px; padding: 0 11px; background: var(--cw-cream-2);
}
.cw-ps-rw-field span { color: var(--cw-ink-3); font-weight: 700; font-size: 0.84rem; }
.cw-ps-rw-field input {
  border: none; outline: none; width: 100%; padding: 10px 4px; background: transparent;
  color: var(--cw-ink); font-family: inherit; font-size: 0.88rem;
}
.cw-ps-rw-allbtn {
  white-space: nowrap; padding: 10px 14px; border: 1.5px solid #1F6B3D; border-radius: 9px;
  background: var(--cw-cream-2); color: #1F6B3D; font-size: 0.74rem; font-weight: 800;
  cursor: pointer; font-family: inherit;
}
.cw-ps-rw-allbtn:hover { background: rgba(31, 107, 61, 0.08); }
.cw-ps-rw-clear {
  padding: 10px; border: none; background: none; color: var(--cw-ink-3);
  font-size: 0.72rem; cursor: pointer; font-family: inherit;
}
.cw-ps-rw-info { font-size: 0.64rem; margin-top: 8px; color: var(--cw-ink-3); line-height: 1.45; }
.cw-ps-rw-apply.on .cw-ps-rw-info { color: #1F6B3D; font-weight: 600; }

/* ── totals + buy ────────────────────────────────────────────────────────── */
.cw-ps-totals {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--cw-cream-3);
  display: flex; flex-direction: column; gap: 7px;
}
.cw-ps-total-line { display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; color: var(--cw-ink-2); }
.cw-ps-total-line strong { font-weight: 700; color: var(--cw-ink); }
.cw-ps-total-redeem { color: #1F6B3D; }
.cw-ps-total-redeem strong { color: #1F6B3D; }
.cw-ps-total-pay { font-size: 1rem; margin-top: 2px; }
.cw-ps-total-pay span { font-weight: 700; color: var(--cw-ink); }
.cw-ps-total-pay strong { font-size: 1.15rem; font-weight: 800; color: var(--cw-ink); }

.cw-ps-err {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  background: rgba(190, 50, 40, 0.08); color: #B53228; font-size: 0.72rem; font-weight: 600; line-height: 1.45;
}
.cw-ps-buy { width: 100%; margin-top: 16px; padding: 15px; font-size: 0.9rem; font-weight: 800; border-radius: 100px; justify-content: center; }
.cw-ps-buy:disabled { opacity: 0.65; cursor: progress; }
.cw-ps-secure { text-align: center; margin-top: 9px; font-size: 0.58rem; color: var(--cw-ink-3); }

/* full-coverage success view */
.cw-ps-success { text-align: center; padding: 14px 6px 6px; }
.cw-ps-success-ic { font-size: 2.6rem; line-height: 1; margin-bottom: 12px; }
.cw-ps-success h3 { font-family: 'Fraunces', Georgia, serif; font-size: 1.24rem; font-weight: 600; color: var(--cw-ink); margin: 0 0 8px; }
.cw-ps-success p { font-size: 0.8rem; color: var(--cw-ink-2); line-height: 1.55; margin: 0 auto 18px; max-width: 320px; }
.cw-ps-success .cw-btn { min-width: 160px; justify-content: center; }

@media (max-width: 560px) {
  .cw-ps { padding: 18px 14px 16px; }
  .cw-ps-name { font-size: 1.14rem; }
  .cw-ps-rw-apply-row { flex-wrap: wrap; }
  .cw-ps-rw-field { flex-basis: 100%; }
}
