/* ============================================================================
   Certified Karma: shop flow (browse with cart, checkout, pay, order confirmed)
   Loaded after styles.css on browse.html, checkout.html, pay.html and
   pay-success.html. Uses the tokens in styles.css (:root).
   ========================================================================== */

/* styles.css gives every <section> 76px of padding; the shop sets its own. */
:where(.shop, .co, .pp, .ps) section { padding: 0; }
:where(.shop, .co, .pp, .ps) { font-variant-numeric: tabular-nums; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shop button, .co button, .pp button, .co input { font-family: var(--sans); }

/* ── BROWSE ─────────────────────────────────────────────────────────────── */
.shop { padding-top: 64px; padding-bottom: 96px; max-width: 1120px; }
.shop-hero { display: flex; flex-wrap: wrap; gap: 24px 56px; align-items: flex-end; margin-bottom: 40px; }
.shop-hero-main { flex: 999 1 480px; min-width: 0; }
.shop-count { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--accent); }
.shop-h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6vw, 60px); line-height: 1; letter-spacing: -.01em; color: var(--ink); }
.shop-hero-lead { flex: 1 1 300px; font-size: 16px; line-height: 1.6; color: var(--text); }

.shop-trust { list-style: none; margin: 0 0 64px; padding: 22px 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px 28px;
  border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.shop-trust b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.shop-trust span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.45; }

.shop-h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; color: var(--ink); margin: 0 0 20px; }
.shop-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 20px; margin-bottom: 72px; }
.shop-picks:empty { display: none; }

.shop-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.shop-bar .shop-h2 { margin: 0; }
.shop-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-f { height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--line-strong); background: #fff;
  color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.chip-f:hover { border-color: var(--ink); }
.chip-f[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: #fff; }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.shop-grid .empty-note { grid-column: 1 / -1; }

/* Tier card. --tier / --tier-text are set per card from the karma range. */
.sc { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 26px 22px; box-shadow: 0 1px 2px rgba(0,0,0,.03); display: flex; flex-direction: column; gap: 18px;
  transition: transform .18s ease, box-shadow .18s ease; }
.sc::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--tier); }
.sc:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(28,28,26,.10); }
.sc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sc-tier { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tier-text); }
.sc-extra { font-size: 12.5px; color: var(--muted); text-align: right; }
.sc-extra-warn { color: #8a1d13; }
.sc-karma { font-family: var(--serif); font-size: 52px; line-height: .9; color: var(--ink); }
.sc-meta { font-size: 13px; color: var(--faint); margin-top: 8px; }
.sc-since { font-size: 12.5px; color: var(--faint); }
.sc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px;
  border-top: 1px solid var(--line); margin-top: auto; }
.sc-price { font-family: var(--serif); font-size: 34px; color: var(--ink); line-height: 1; }
.sc-btn { height: 44px; padding: 0 20px; border-radius: 22px; background: var(--black); border: 1px solid var(--black); color: #fff;
  font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.sc-btn:hover { background: #071a12; }
.sc-btn.is-in { background: var(--accent-tint); border-color: var(--accent-tint); color: var(--accent); font-weight: 700; }

/* Editor's pick: the dark card. */
.sc-pick { background: var(--black); color: #d8d4c8; border: 0; border-radius: 16px; padding: 30px 30px 26px; gap: 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.sc-pick::before { display: none; }
.sc-pick .sc-tier { font-size: 12px; }
.sc-pick .sc-extra, .sc-pick .sc-meta { color: #b3ae9f; }
.sc-pick .sc-karma { font-size: 72px; color: #fff; }
.sc-pick .sc-foot { border-top-color: rgba(255,255,255,.16); padding-top: 18px; }
.sc-pick .sc-price { font-size: 36px; color: #fff; }
.sc-pick .sc-btn { background: #fff; border-color: #fff; color: var(--black); font-weight: 700; padding: 0 22px; }
.sc-pick .sc-btn:hover { background: #f0ece2; }
.sc-pick .sc-btn.is-in { background: transparent; border-color: var(--accent-2); color: var(--accent-2); font-weight: 600; }

.shop-note { margin: 20px 0 0; padding: 14px 16px; border-radius: 8px; background: #f3efe6; color: var(--ink); font-size: 14px; text-align: center; }
.shop-multibuy { margin: 40px 0 0; text-align: center; font-size: 14.5px; color: var(--text); }

.shop-how { margin-top: 88px; padding: 44px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.shop-how .shop-h2 { margin-bottom: 28px; }
.shop-how ol { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.shop-how li b { display: block; font-size: 15px; font-weight: 700; color: var(--ink); margin-top: 10px; }
.shop-how li span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.shop-how li .shop-how-n { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--accent); margin: 0; }
.shop-how-foot { margin: 28px 0 0; font-size: 13.5px; color: var(--muted); }
.shop-how-foot a, .co a.co-strong, .pp a.co-strong, .ps a.co-strong { color: var(--ink); font-weight: 700; text-decoration: underline; }

/* ── CHECKOUT ───────────────────────────────────────────────────────────── */
.co { max-width: 1080px; padding-top: 32px; padding-bottom: 80px; }
.co-back { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; color: var(--muted); }
.co-back:hover { color: var(--ink); }
.co-h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 46px); line-height: 1.05; color: var(--ink); margin: 6px 0 28px; }
.co-alert { margin: 0 0 24px; padding: 14px 18px; border-radius: 8px; background: #fdeceb; color: #8a1d13; font-size: 14px; }
.co-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto 1fr;
  grid-template-areas: "main summary" "main guide"; gap: 20px 40px; align-items: start; }
.co-main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.co-summary { grid-area: summary; min-width: 0; }
.co-guide { grid-area: guide; min-width: 0; }

.co-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.co-card > h2 { margin: 0 0 18px; font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.co-input { width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 8px;
  font-size: 15px; color: var(--ink); background: #fff; }
.co-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.co-input[aria-invalid="true"] { border-color: #c0392b; }
.co-hint { margin: 12px 0 0; font-size: 13.5px; color: var(--faint); }
.co-err { margin: 10px 0 0; font-size: 13.5px; color: #a02216; }

/* Card or crypto (checkout.js shows the parts of the chosen method) */
.co [data-ck-for][hidden], .co [data-ck-methods][hidden], .co [data-ck-fee][hidden] { display: none; }
.pm { margin: 0 0 26px; padding: 0; border: 0; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
/* Card · PayPal · Crypto: three side by side; on a phone Crypto takes the second row. */
.pm.pm-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .pm.pm-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pm.pm-3 .pm-opt:last-of-type { grid-column: 1 / -1; } }
.pm legend { padding: 0; margin: 0 0 12px; font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.pm-opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px 16px; border: 1.5px solid var(--line-strong);
  border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; }
.pm-opt[hidden] { display: none; }
.pm-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pm-opt svg { flex: none; color: var(--muted); }
.pm-opt span { min-width: 0; }
.pm-opt b { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; }
.pm-opt small { display: block; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.pm-opt:hover { border-color: var(--ink); }
.pm-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent); }
.pm-opt:has(input:checked) svg { color: var(--accent); }
.pm-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pm-opt:has(input:disabled) { opacity: .6; }
.cp-text.pm-fee { margin-top: 10px; }
.cp-text.pm-after { font-size: 13.5px; color: var(--muted); }

/* Pay with crypto module (design: CryptoPay) */
.cp { display: flex; flex-direction: column; gap: 22px; }
.cp-h3 { margin: 0 0 16px; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; color: var(--ink); }
.cp-label { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.cp-pills { list-style: none; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.cp-pills li { height: 34px; padding: 0 12px 0 8px; border: 1px solid var(--line-strong); border-radius: 17px; background: #fff;
  display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.cp-pills li.cp-plain { padding: 0 12px; }
.cp-pills li.cp-more-coins { border: 0; background: transparent; font-weight: 400; color: var(--faint); }
.cp-text { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.cp-tiles { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cp-tiles li { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 10px; background: #f6f3ec;
  font-size: 13px; line-height: 1.45; color: var(--ink); }
.cp-steps { list-style: none; padding: 20px 16px; border: 1px solid var(--line); border-radius: 12px; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: start; }
.cp-steps li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.cp-stack { height: 38px; display: flex; padding-left: 8px; }
.cp-stack span { width: 38px; height: 38px; border-radius: 19px; background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; margin-left: -8px; box-shadow: 0 0 0 2px #fff; }
.cp-dot { width: 38px; height: 38px; border-radius: 19px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--black); }
.cp-dot.green { background: var(--accent); }
.co-status { margin: 0; padding: 14px 16px; border-radius: 8px; background: #f3efe6; color: var(--ink); font-size: 14px; line-height: 1.5; }
.co-status.err { background: #fdeceb; color: #8a1d13; }
.co-pay-btn { width: 100%; height: 56px; border-radius: 28px; border: 0; background: var(--black); color: #fff;
  font-size: 15.5px; font-weight: 700; cursor: pointer; }
.co-pay-btn:hover { background: #071a12; }
.co-pay-btn:disabled { background: #9a978f; cursor: not-allowed; }
.cp-logos { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; }
.cp-sep { width: 1px; height: 18px; background: var(--line-strong); }
.cp-due { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--muted); }

.cp-more { border-top: 1px solid var(--line); }
.cp-more summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 50px;
  font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.cp-more summary::-webkit-details-marker { display: none; }
.cp-more summary::after { content: "+"; font-size: 18px; color: var(--faint); }
.cp-more[open] summary::after { content: "\2212"; }
.cp-more-body { padding: 0 0 18px; display: flex; flex-direction: column; gap: 14px; font-size: 13.5px; line-height: 1.55; }
.cp-more-body p { margin: 0; }
.cp-table { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 13px; line-height: 1.5; }
.cp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cp-row:last-child { border-bottom: 0; }
.cp-row b { color: var(--ink); }
.cp-row b svg { vertical-align: -3px; margin-right: 6px; }
.cp-row b small { display: block; font-weight: 400; color: var(--faint); font-size: 13px; }
.cp-checks { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cp-checks li { display: flex; gap: 10px; }
.cp-checks li::before { content: "\2713"; color: var(--accent); font-weight: 700; }
.cp-fine { color: var(--faint); }

/* Order summary */
.co-item { --tier: var(--line); position: relative; display: flex; gap: 16px; align-items: center; margin-top: 12px;
  padding: 16px 12px 14px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fcfbf8; }
.co-item::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 3px 3px 0; background: var(--tier); }
.co-item-main { flex: 1; min-width: 0; }
.co-item-tier { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tier-text); }
.co-item-k { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.co-item-k b { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; color: var(--ink); }
.co-item-k span, .co-item-meta { font-size: 12.5px; color: var(--faint); }
.co-item-meta { margin-top: 4px; }
.co-item-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.co-item-price { font-size: 16px; font-weight: 600; color: var(--ink); }
.co-item-was { font-size: 12.5px; color: var(--faint); }
.co-link-btn { min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--faint); font-size: 12.5px;
  text-decoration: underline; cursor: pointer; }
.co-link-btn:hover { color: var(--ink); }
.co-empty { padding: 20px 0 4px; font-size: 14px; }
.co-empty a { color: var(--accent); font-weight: 700; text-decoration: underline; }
.co-totals { display: flex; flex-direction: column; gap: 10px; padding: 18px 0 0; font-size: 14px; }
.co-row { display: flex; justify-content: space-between; gap: 12px; }
.co-row span:last-child { color: var(--ink); white-space: nowrap; }
.co-row.disc, .co-row.disc span:last-child { color: var(--accent); }
.co-applied { font-size: 12.5px; color: var(--faint); margin-top: 3px; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--ink); }
.co-total b { font-weight: 700; color: var(--ink); }
.co-total-amt { font-family: var(--serif); font-size: 38px; color: var(--ink); line-height: 1; }
.co-safe { margin: 6px 0 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.co-safe b { color: var(--ink); font-weight: 600; }
.co-code { padding-top: 14px; margin-top: 18px; border-top: 1px solid var(--line); }
.co-code-row { display: flex; gap: 8px; }
.co-code-row .co-input { height: 44px; font-size: 14px; padding: 0 12px; flex: 1; min-width: 0; text-transform: uppercase; }
.co-btn-ghost { height: 44px; padding: 0 18px; border-radius: 28px; background: transparent; border: 1px solid var(--ink);
  color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; flex: none; }
.co-code-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.co-loading { opacity: .55; transition: opacity .15s ease; }

.co-guide-box { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.co-guide-box .co-serif { margin: 0; font-family: var(--serif); font-size: 24px; line-height: 1.15; color: var(--ink); }
.co-guide-box p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text); }
.co-guide-box svg { display: block; max-width: 460px; width: 100%; height: auto; }
.co-guide-box .co-guide-foot { padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.co-trust { list-style: none; padding: 4px 4px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.co-trust b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.co-trust span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* ── PAY PAGE ───────────────────────────────────────────────────────────── */
.pp { max-width: 1120px; padding-top: 36px; padding-bottom: 96px; }
.pp-progress { list-style: none; margin: 0 0 44px; padding: 8px 0 0; display: flex; gap: 14px; }
.pp-progress li { display: flex; align-items: center; gap: 12px; flex: 1 1 0; min-width: 0; }
.pp-progress li:last-child { flex: none; }
.pp-dot { flex: none; width: 60px; height: 60px; border-radius: 30px; background: #eef6f1; color: var(--accent);
  border: 1.5px solid #cfe6da; display: flex; align-items: center; justify-content: center; }
.pp-progress li.is-done .pp-dot, .pp-progress li.is-cur .pp-dot { background: var(--accent); color: #fff; border-color: var(--accent); }
.pp-progress li.is-cur .pp-dot { box-shadow: 0 0 0 7px #d8ede2; }
.pp-step-label { display: flex; flex-direction: column; line-height: 1.2; }
.pp-step-label small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a857a; }
.pp-step-label b { font-size: 16px; font-weight: 700; color: var(--faint); white-space: nowrap; }
.pp-progress li.is-cur b, .pp-progress li.is-done b { color: var(--ink); }
.pp-line { flex: 1; height: 3px; border-radius: 2px; background: #d8ede2; min-width: 16px; }
.pp-progress li.is-done .pp-line { background: var(--accent); }

.pp-head { margin: 0 0 32px; max-width: 720px; }
.pp-head-row { display: flex; align-items: center; gap: 16px; margin: 0 0 14px; }
.pp-eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.pp-head-row .pp-eyebrow { margin: 0; }
.pp-h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5.4vw, 52px); line-height: 1.02; color: var(--ink); margin: 0 0 14px; overflow-wrap: anywhere; }
.pp-lead { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); max-width: 560px; }

.pp-cols { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.pp-main { flex: 1.4 1 520px; min-width: 0; }
.pp-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 92px; }

.pp-apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pp-app { text-align: left; padding: 22px; border-radius: 16px; border: 1px solid var(--line-strong); box-shadow: 0 1px 2px rgba(24,24,22,.04);
  background: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 14px; color: inherit; font-size: inherit; }
.pp-app:hover { border-color: var(--ink); }
.pp-app.rec { grid-column: 1 / -1; border: 2px solid var(--accent); box-shadow: 0 8px 24px rgba(31,138,91,.10); }
.pp-app.wallet { grid-column: 1 / -1; padding: 16px 22px; border: 1px dashed #d8d2c3; flex-direction: row; align-items: center; gap: 16px; }
.pp-app-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pp-badge { padding: 5px 12px; border-radius: 14px; background: #e8f3ed; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .02em; text-align: center; }
.pp-badge.warm { background: #fdf3e1; color: #7a4a00; }
.pp-arrow { font-size: 18px; color: #a39e91; }
.pp-app-name { display: block; font-size: 17px; font-weight: 700; color: var(--ink); }
.pp-app-desc { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--faint); }
.pp-note { margin: 22px 0 0; font-size: 13.5px; color: var(--muted); }

.pp-assure { list-style: none; margin: 24px 0 0; padding: 18px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pp-assure.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pp-assure li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--text); }
.pp-ic { width: 34px; height: 34px; border-radius: 17px; background: #eef6f1; display: flex; align-items: center; justify-content: center; flex: none; }

.pp-flow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 26px 28px; margin: 0 0 22px;
  border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.pp-flow-col { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--ink); text-align: center; }
.pp-flow-phone { width: 64px; height: 108px; border-radius: 14px; border: 2px solid var(--ink); background: #fff; display: flex;
  flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.pp-flow-phone i { width: 34px; height: 12px; border-radius: 6px; background: var(--ink); }
.pp-flow-qr { width: 84px; height: 84px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: flex;
  align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(24,24,22,.06); }
.pp-flow-ok { width: 84px; height: 84px; border-radius: 42px; background: var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 8px #e8f3ed; }
.pp-flow-arrow { flex: 1 1 40px; min-width: 24px; max-width: 70px; height: 14px; }

.pp-steps { list-style: none; margin: 0; padding: 14px 28px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.pp-steps li { display: flex; gap: 18px; align-items: center; padding: 14px 0; }
.pp-step-ic { flex: none; position: relative; width: 56px; height: 56px; border-radius: 16px; background: #eef6f1; display: flex; align-items: center; justify-content: center; }
.pp-step-n { position: absolute; top: -6px; left: -6px; width: 22px; height: 22px; border-radius: 11px; background: var(--black); color: #fff;
  font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px #fff; }
.pp-steps b { display: block; font-size: 16px; font-weight: 700; color: var(--ink); }
.pp-steps span.pp-step-body { display: block; margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.pp-tip { margin: 18px 0 0; padding: 16px 18px; border-radius: 12px; background: var(--accent-tint); display: flex; gap: 12px;
  align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--ink); }
.pp-tip svg { flex: none; margin-top: 2px; }
.pp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 28px 0 0; }
.pp-btn { height: 56px; padding: 0 32px; border-radius: 28px; border: 0; background: var(--black); color: #fff; font-size: 15.5px; font-weight: 700; cursor: pointer; }
.pp-btn:hover { background: #071a12; }
.pp-btn:disabled { background: #9a978f; cursor: not-allowed; }
a.pp-btn { display: inline-flex; align-items: center; }
.pp-link { min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer; }

.pp-pay { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 24px; }
.pp-label { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pp-coins { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-coin { height: 44px; padding: 0 16px 0 10px; border-radius: 22px; border: 1.5px solid var(--line-strong); background: #fff;
  display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; }
.pp-coin.plain { padding: 0 16px; }
.pp-coin[aria-pressed="true"] { border-color: var(--black); background: #f6f3ec; }
.pp-coin:disabled { opacity: .5; cursor: not-allowed; }
.pp-usdc { width: 20px; height: 20px; border-radius: 10px; background: #2775CA; color: #fff; font-size: 9px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; }
.pp-qr-row { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.pp-qr-col { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: none; }
.pp-scan { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 14px; background: #eef6f1; color: var(--accent); font-size: 12.5px; font-weight: 700; }
.pp-qr { width: 228px; height: 228px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(24,24,22,.08); }
.pp-qr svg { display: block; width: 100%; height: 100%; }
.pp-fields { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pp-qrline { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); font-weight: 600; }
.pp-field-label { margin: 0 0 6px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--faint); }
.pp-net { padding: 3px 10px; border-radius: 12px; background: #fdf3e1; color: #7a4a00; font-weight: 700; }
.pp-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 10px; background: #f6f3ec; }
.pp-amt { font-size: 20px; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.pp-addr { font-size: 13.5px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.pp-copy { height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--line-strong); background: #fff; font-size: 13px; font-weight: 700;
  color: var(--ink); cursor: pointer; flex: none; }
.pp-copy.is-done { color: var(--accent); border-color: var(--accent); }
.pp-small { margin: 6px 0 0; font-size: 12.5px; color: var(--faint); }
.pp-wait { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); }
.pp-wait-dot { width: 10px; height: 10px; border-radius: 5px; background: #e0a100; flex: none; }
.pp-wait-dot.ok { background: var(--accent); }
.pp-wait b { font-size: 14px; font-weight: 600; color: var(--ink); }
.pp-wait > span:last-child { margin-left: auto; font-size: 13px; color: var(--faint); }
.pp-msg { margin: 0; padding: 14px 16px; border-radius: 8px; background: #f3efe6; color: var(--ink); font-size: 14px; line-height: 1.5; }
.pp-msg.err { background: #fdeceb; color: #8a1d13; }
.pp-msg .pp-link { color: inherit; }

.pp-done { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 48px 40px; text-align: center; }
.pp-done-ic { width: 72px; height: 72px; border-radius: 36px; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px #e8f3ed; }
.pp-done .pp-h1 { margin: 28px 0 10px; }
.pp-done-lead { margin: 0 auto; max-width: 480px; font-size: 16px; line-height: 1.6; color: var(--text); }
.pp-done ul { list-style: none; margin: 32px auto 0; max-width: 420px; text-align: left; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--ink); }
.pp-done li { display: flex; gap: 12px; align-items: flex-start; }
.pp-done li.muted { color: var(--faint); }
.pp-done li svg { flex: none; margin-top: 3px; }
.pp-ring { flex: none; width: 18px; height: 18px; border-radius: 9px; border: 2px solid #e0a100; margin-top: 3px; }
.pp-ring.grey { border-color: var(--line-strong); }
.pp-done-foot { margin: 32px 0 0; font-size: 13.5px; color: var(--muted); }

.pp-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.pp-card h2 { margin: 0 0 14px; font-size: 16px; font-weight: 700; color: var(--ink); }
.pp-card .co-row { font-size: 14px; padding: 4px 0; }
.pp-card .co-applied { color: var(--accent); margin: 0; }
.pp-card .co-total { margin-top: 12px; padding-top: 14px; }
.pp-card .co-total-amt { font-size: 36px; }
.pp-hold { margin: 14px 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink); }
.pp-hold b { font-family: var(--mono); font-weight: 500; }
.pp-safe { display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.pp-safe-h { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 24px; line-height: 1.15; color: var(--ink); }
.pp-safe ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; line-height: 1.5; }
.pp-safe li { display: flex; gap: 10px; }
.pp-safe li svg { flex: none; margin-top: 2px; }
.pp-safe-foot { margin: 6px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.55; color: var(--muted); }

/* ── ORDER CONFIRMED (pay-success) ──────────────────────────────────────── */
.ps { max-width: 608px; padding-top: 64px; padding-bottom: 80px; }
.ps-ic { font-size: 0; margin-bottom: 20px; }
.ps-h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 6vw, 48px); line-height: 1.05; color: var(--ink); margin: 0 0 10px; }
.ps-sub { margin: 0 0 36px; font-size: 17px; color: var(--ink); line-height: 1.55; }
.ps-steps { list-style: none; margin: 0 0 32px; display: flex; flex-direction: column; gap: 18px; font-size: 15px; color: var(--ink); }
.ps-steps li { display: flex; gap: 16px; line-height: 1.5; }
.ps-steps li b { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.1; color: var(--accent); width: 18px; flex: none; }
.ps-p { margin: 0 0 8px; font-size: 14.5px; color: var(--text); line-height: 1.6; }
.ps-receipt { margin-top: 32px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px 26px; font-size: 14px; }
.ps-line { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ps-line:first-child { padding-top: 0; }
.ps-line span:last-child { color: var(--ink); white-space: nowrap; }
.ps-line.disc, .ps-line.disc span:last-child { color: var(--accent); }
.ps-line.paid { align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--ink); }
.ps-line.paid b { font-weight: 700; color: var(--ink); }
.ps-line.paid span:last-child { font-family: var(--serif); font-size: 30px; line-height: 1; }
.ps-dl { margin: 14px 0 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; font-size: 13px; }
.ps-dl dt { color: var(--faint); }
.ps-dl dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.ps-dl .mono { font-family: var(--mono); }
.ps-back { margin: 32px 0 0; }
.ps-back a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); text-decoration: underline; }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .co-cols { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "summary" "main" "guide"; }
  .pp-side { position: static; }
}
@media (max-width: 560px) {
  .shop { padding-top: 40px; padding-bottom: 72px; }
  .shop-trust { margin-bottom: 48px; }
  .shop-picks { margin-bottom: 56px; }
  .sc { padding: 22px 20px 18px; }
  .sc-pick { padding: 24px 22px 22px; }
  .sc-pick .sc-karma { font-size: 60px; }
  .shop-how { margin-top: 64px; padding: 28px 22px; }
  .co-card { padding: 22px 18px; }
  .pm-opt { padding: 12px; gap: 10px; }
  .co-item { padding: 14px 8px 12px 16px; gap: 10px; }
  .cp-steps { padding: 16px 8px; }
  .pp { padding-top: 24px; }
  .pp-progress { gap: 8px; margin-bottom: 28px; }
  .pp-progress li { gap: 8px; }
  .pp-dot { width: 44px; height: 44px; }
  .pp-dot svg { width: 22px; height: 22px; }
  .pp-step-label { display: none; }
  .pp-progress li.is-cur .pp-dot { box-shadow: 0 0 0 5px #d8ede2; }
  .pp-app { padding: 18px 16px; }
  .pp-app.wallet { padding: 16px; }
  .pp-flow { padding: 18px 14px; }
  .pp-flow-phone { width: 52px; height: 88px; }
  .pp-flow-qr, .pp-flow-ok { width: 64px; height: 64px; }
  .pp-steps { padding: 6px 18px; }
  .pp-steps li { gap: 14px; }
  .pp-step-ic { width: 48px; height: 48px; }
  .pp-pay { padding: 20px 16px; }
  .pp-qr-col { margin: 0 auto; }
  .pp-actions .pp-btn { width: 100%; justify-content: center; }
  .pp-done { padding: 36px 20px; }
  .pp-wait > span:last-child { margin-left: 0; }
  .ps { padding-top: 40px; }
  .ps-receipt { padding: 20px 18px; }
}

/* In-cart state: a quiet status + a separate remove button (not one button doing two jobs) */
.sc-incart { display: inline-flex; align-items: center; gap: 8px; }
.sc-in-label { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 4px; color: var(--accent); font-size: 14px; font-weight: 700; }
.sc-remove { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line-strong); background: #fff; color: var(--muted);
  display: inline-grid; place-items: center; cursor: pointer; }
.sc-remove:hover { border-color: var(--ink); color: var(--ink); }
.sc-pick .sc-in-label { color: var(--accent-2); }
.sc-pick .sc-remove { background: transparent; border-color: rgba(255,255,255,.28); color: #d8e6df; }
.sc-pick .sc-remove:hover { border-color: #fff; color: #fff; }

/* Came back from the pay page unpaid (checkout.js showBack) */
.bk { margin: 0 0 24px; padding: 22px; border: 1px solid #cfe6da; border-radius: 12px; background: #fff; color: var(--ink); font-size: 15.5px; line-height: 1.55; }
.bk[hidden], .bk [hidden] { display: none; }
.bk h2 { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.2; margin: 0 0 6px; color: var(--black); }
.bk p { margin: 0 0 16px; color: var(--text); }
.bk-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.bk-b { min-height: 48px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--black); background: #fff; color: var(--black); font: inherit;
  font-size: 15px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.bk-b.main { background: var(--black); color: #fff; }
.bk-b:disabled { opacity: .55; cursor: default; }
.bk-help { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.bk-help > b { display: block; margin-bottom: 10px; color: var(--black); }
.bk-os { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.bk-o { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.bk-o input { accent-color: var(--accent); margin: 0; }
.bk-o:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.bk-b:focus-visible, .bk-o:focus-within { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.bk .bk-ok { padding: 12px 14px; border-radius: 10px; background: var(--accent-tint); font-size: 14.5px; margin: 18px 0 0; }
.bk-note { width: 100%; box-sizing: border-box; min-height: 64px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; font-size: 15px; margin-bottom: 10px; }
.bk .bk-sm { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }
.bk .bk-sm a { color: #16704a; text-decoration: underline; }
@media (max-width: 520px) { .bk { padding: 18px; } .bk h2 { font-size: 23px; } .bk-b { width: 100%; } }
