/* =========================================================================
   Decorly: shared base (tokens, buttons, forms, previews) for checkout,
   account, reseller, API docs and support, plus the checkout + order page.
   Same palette and type as the storefront (style.css).
   ========================================================================= */
:root {
  --bg: #09080a;
  --bg-2: #0c0b0e;              /* the summary side of checkout */
  --panel: #121114;
  --card: #161518;
  --card-hi: #1c1b1f;
  --line: #232226;
  --line-hi: #2e2d32;
  --text: #f4f3f6;
  --muted: #a09fa6;
  --faint: #6e6d74;
  --dim: #85838c;               /* grey half of two-tone headings */
  --primary: #a162f8;
  --primary-hi: #b17cfa;
  --accent: #c09bfb;
  --lilac: #c4a6fb;
  --good: #3ddc97;
  --warn: #f5b74a;
  --bad: #ff5a68;
  --avatar: #26252b;
  --r: 10px;
  --font: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
button, input, select { font: inherit; color: inherit; }
code, pre { font-family: var(--font-mono); }
svg { fill: currentColor; }
img { max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: rgba(161, 98, 248, .45); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: 28px; line-height: 1.15; }
h2 { font-size: 20px; line-height: 1.25; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.dim { color: var(--dim); }
.kind { font-size: 12px; font-weight: 600; color: var(--muted); }

/* ---------- brand (same mark as the storefront) ---------- */
.brand {
  display: inline-flex; align-items: center; font-weight: 800; font-size: 20px; letter-spacing: -0.04em;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.brand::before {
  content: ""; flex: none; width: 26px; height: 26px; margin-right: 9px; border-radius: 7px;
  background: radial-gradient(circle at 50% 50%, transparent 4px, #fff 4.5px, #fff 6.5px, transparent 7px), var(--primary);
}
.brand span { color: var(--lilac); }
a.brand:hover { text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--r); background: var(--primary); color: #fff;
  font-weight: 600; font-size: 14.5px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn:hover:not(:disabled) { background: var(--primary-hi); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-hi); font-weight: 500; }
.btn.ghost:hover:not(:disabled) { background: var(--card); border-color: #3a3940; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.wide { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-size: 14px; font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.mini {
  flex: none; height: 30px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line-hi); background: var(--card);
  color: var(--text); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s;
}
.mini:hover { background: var(--card-hi); border-color: #3a3940; }

/* ---------- forms ---------- */
form { display: grid; gap: 20px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
.field { display: grid; gap: 7px; min-width: 0; }
.field > span { font-size: 13.5px; font-weight: 600; }
.field small { font-size: 12.5px; color: var(--faint); line-height: 1.5; }
input[type=email], input[type=text], input[type=password], input[type=number] {
  width: 100%; height: 44px; padding: 0 13px; background: var(--bg); border: 1px solid var(--line-hi); border-radius: var(--r);
  color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
input[type=email]:hover, input[type=text]:hover, input[type=password]:hover, input[type=number]:hover { border-color: #3a3940; }
input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(161, 98, 248, .22); }
input::placeholder { color: var(--faint); }
.error {
  padding: 10px 12px; border-radius: var(--r); font-size: 13.5px; color: #ffc2c8;
  background: color-mix(in srgb, var(--bad) 10%, transparent); border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent);
}
.closed { font-size: 13.5px; color: var(--muted); text-align: center; }

/* signed in line + "use my balance" */
.acct-line { font-size: 14px; color: var(--muted); }
.acct-line b { color: var(--text); font-weight: 600; }
.bal-opt {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; cursor: pointer;
  border: 1px solid var(--line-hi); border-radius: var(--r); transition: border-color .15s, background .15s;
}
.bal-opt:hover { background: var(--card); }
.bal-opt:has(input:checked) { border-color: var(--primary); background: rgba(161, 98, 248, .07); }
.bal-opt input {
  appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border-radius: 5px; border: 1.5px solid #4a4950;
  display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s;
}
.bal-opt input:checked { background: var(--primary); border-color: var(--primary); }
.bal-opt input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.opt-text { display: grid; gap: 1px; min-width: 0; }
.bal-opt .pm-ic { margin-left: auto; width: 28px; height: 28px; }
.opt-text b { font-size: 14.5px; font-weight: 600; }
.opt-text small { font-size: 12.5px; color: var(--muted); }

/* coin list (checkout + account top-up): a rounded row per coin, logo on the left, radio on the right */
.coins { display: grid; gap: 8px; }
.coin {
  position: relative; display: flex; align-items: center; gap: 13px; width: 100%; padding: 11px 14px; text-align: left;
  background: var(--bg); border: 1px solid var(--line-hi); border-radius: 12px; cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.coin:hover { border-color: #3d3c43; }
.coin::after {
  content: ""; flex: none; margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #4a4950;
  transition: border-color .15s, box-shadow .15s;
}
.coin[aria-checked="true"] { border-color: var(--primary); background: rgba(161, 98, 248, .07); box-shadow: 0 0 0 3px rgba(161, 98, 248, .12); }
.coin[aria-checked="true"]::after { border-color: var(--primary); box-shadow: inset 0 0 0 3.5px var(--bg), inset 0 0 0 9px var(--primary); }
.coin-text { display: grid; gap: 1px; min-width: 0; }
.coin-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.coin-name b { font-size: 15px; font-weight: 600; }
.tk { font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: var(--muted); padding: 1px 6px; border-radius: 5px; background: var(--card-hi); }
.coin-net { font-size: 13px; color: var(--muted); }

/* coin logos (coins.js): the coin's logo, plus its network's logo in the corner for tokens */
.cx { --cx: 32px; position: relative; flex: none; width: var(--cx); height: var(--cx); }
.cx-coin { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: contain; }
.cx > .pm-ic.cx-coin { width: 100%; height: 100%; font-size: calc(var(--cx) * .44); }
.cx-net {
  position: absolute; right: -4px; bottom: -4px; width: 48%; height: 48%; border-radius: 50%; object-fit: contain;
  background: var(--bg); box-shadow: 0 0 0 2px var(--bg);
}
.cx > .pm-ic.cx-net { font-size: calc(var(--cx) * .26); }

/* coin badges */
.pm-ic {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 17px; color: #fff; background: #3a3940;
}
.pm-ic[data-sym="usdt"], .pm-ic[data-sym="usdc"] { background: #26a17b; }
.pm-ic[data-sym="ltc"] { background: #345d9d; }
.pm-ic[data-sym="btc"] { background: #f7931a; }
.pm-ic[data-sym="eth"] { background: #627eea; }
.pm-ic[data-sym="sol"] { background: linear-gradient(135deg, #9945ff, #14f195); }
.pm-ic[data-sym="trx"] { background: #e5352b; }
.pm-ic[data-sym="bnb"] { background: #f0b90b; color: #1a1400; }
.pm-ic[data-sym="ton"] { background: #0098ea; }
.pm-ic[data-sym="doge"] { background: #c2a633; }
.pm-ic.wallet {
  border-radius: 7px; background: #f1eff5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23a162f8' d='M3 7a2 2 0 0 1 2-2h13a1 1 0 0 1 1 1v2h1a1 1 0 0 1 1 1v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Crect x='13' y='11' width='8' height='4' rx='2' fill='%23161518'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* ---------- item previews (same look as the shop) ---------- */
.thumb {
  width: 56px; height: 56px; flex: none; border-radius: var(--r); overflow: hidden; position: relative; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(161, 98, 248, .2), transparent 65%), var(--card); border: 1px solid var(--line);
}
.thumb.sm { width: 44px; height: 44px; border-radius: 8px; }
.deco { position: relative; width: 78%; aspect-ratio: 1; }
.deco .avatar { position: absolute; inset: 11%; border-radius: 50%; background: var(--avatar); }
.deco img { position: absolute; inset: 0; width: 100%; height: 100%; }
.plate { width: 92%; height: 16px; border-radius: 4px; background: #1e1d22 center / cover no-repeat; }
.plate .user { display: none; }
.effect, .bundle-img { width: 100%; height: 100%; object-fit: cover; }
.bundle { position: absolute; inset: 0; background: center / cover no-repeat; }
.bundle img { width: 100%; height: 100%; object-fit: contain; }
.frame-pv { position: relative; width: 62%; aspect-ratio: 3 / 4; }
.frame-pv .fcard { position: absolute; inset: 6%; border-radius: 5px; background: #2a292f; box-shadow: 0 0 0 1.5px rgba(176, 130, 250, .7); }
.frame-pv .fav, .frame-pv .fcard b, .frame-pv .ftag { display: none; }

/* cart lines (cart checkout + delivery + problems) */
.cart-lines { display: grid; gap: 0; }
.cart-lines > .kind { padding-bottom: 8px; }
.cart-line { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.cart-lines > .kind + .cart-line { border-top: 0; }
.cl-text { display: grid; min-width: 0; }
.cl-text b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-text span { font-size: 12.5px; color: var(--muted); }
.cl-price { font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.cl-acts { display: flex; gap: 6px; }
.cart-line.st-delivered .cl-text span { color: var(--good); }
.cart-line.st-issue .cl-text span { color: var(--bad); }

.cta-slot:empty { display: none; }
.spin { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--line-hi); border-top-color: var(--primary); animation: spin .8s linear infinite; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* =========================================================================
   Checkout: one page. Header, then the steps on the left (customer,
   payment method, payment details, delivery, review and pay) and the
   order summary on the right.
   ========================================================================= */
.co { background: radial-gradient(1000px 420px at 80% -160px, rgba(161, 98, 248, .10), transparent 70%) no-repeat, var(--bg); }

/* header */
.ck-top {
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.ck-top-in { max-width: 1120px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 16px; }
.ck-top .brand { font-size: 19px; }
.secure-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px; border-radius: 999px; border: 1px solid var(--line-hi);
  font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.secure-badge svg { width: 15px; height: 15px; color: var(--good); }
.ck-top-acts { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.back-btn svg { width: 15px; height: 15px; }
.icon-btn { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-hi); color: var(--text); transition: background .15s; }
.icon-btn:hover { background: var(--card); text-decoration: none; }
.icon-btn svg { width: 17px; height: 17px; }

/* layout */
.ck { max-width: 1120px; margin: 0 auto; padding: 32px 24px 72px; }
.ck-grid { display: grid; grid-template-columns: minmax(0, 1fr) 392px; gap: 28px; align-items: start; }
.ck-main { display: grid; gap: 18px; min-width: 0; }
.ck-side { position: sticky; top: 84px; min-width: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; min-width: 0; }
.ck-main > .card { animation: rise .35s var(--ease) both; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-h h2, .step-h h2 { font-size: 17px; letter-spacing: -0.015em; }
.ck-msg { max-width: 480px; margin: 64px auto; text-align: center; display: grid; gap: 12px; justify-items: center; color: var(--muted); }
.ck-msg h1 { font-size: 26px; color: var(--text); }
.end-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* numbered steps; a finished step shows a check and a short summary */
.step-h { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.step-n {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; border: 1.5px solid var(--line-hi); color: var(--muted);
}
.step.done .step-n { font-size: 0; background: var(--primary); border-color: var(--primary); }
.step.done .step-n::before { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.step.done .step-h { margin-bottom: 12px; }
.step-body { display: grid; gap: 18px; }
.step-sum { margin: 0; display: grid; }
.step-sum div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.step-sum div:first-child { border-top: 0; padding-top: 2px; }
.step-sum div:has(dd:empty) { display: none; }
.step-sum dt { color: var(--muted); flex: none; }
.step-sum dd { margin: 0; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 9px; text-align: right; overflow-wrap: anywhere; }
.step-sum .cx { --cx: 22px; }
.step-sum .pm-ic.wallet { width: 24px; height: 24px; border-radius: 6px; background-size: 15px; }

/* 1. customer */
.ck-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.ck-tabs button {
  height: 38px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background .15s, color .15s;
}
.ck-tabs button:hover { color: var(--text); }
.ck-tabs button[aria-selected="true"] { background: var(--card-hi); color: var(--text); box-shadow: 0 4px 14px -8px rgba(0, 0, 0, .8); }
.pane { display: grid; gap: 16px; }
.tag { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--faint); margin-left: 6px; }
.mini-form { gap: 14px; }
.mf-row { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.signed-in { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(161, 98, 248, .18); color: var(--lilac); font-weight: 700; text-transform: uppercase; }
.si-text { display: grid; min-width: 0; flex: 1; }
.si-text b { font-weight: 600; overflow-wrap: anywhere; }
.si-text span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
input.bad { border-color: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 18%, transparent); }

/* 2. payment method */
.wallet { border: 1px solid var(--line-hi); border-radius: 12px; background: var(--bg); transition: border-color .15s; }
.wallet:has(#useBal:checked) { border-color: color-mix(in srgb, var(--primary) 60%, var(--line-hi)); }
.wallet-top { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.wallet-top .pm-ic.wallet { width: 32px; height: 32px; }
.wallet-top .opt-text { flex: 1; }
.switch {
  appearance: none; flex: none; position: relative; width: 40px; height: 24px; margin: 0; border-radius: 999px;
  background: #3a3940; cursor: pointer; transition: background .2s;
}
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch:checked { background: var(--primary); }
.switch:checked::after { transform: translateX(16px); }
.switch:disabled { opacity: .45; cursor: not-allowed; }
.wallet-more { display: grid; gap: 12px; padding: 0 14px 14px 58px; }
.wopts { display: flex; flex-wrap: wrap; gap: 8px; }
.wopt { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-hi); font-size: 13.5px; cursor: pointer; }
.wopt:has(input:checked) { border-color: var(--primary); background: rgba(161, 98, 248, .08); }
.wopt input { appearance: none; flex: none; width: 14px; height: 14px; margin: 0; border-radius: 50%; border: 1.5px solid #5a5960; }
.wopt input:checked { border-color: var(--primary); box-shadow: inset 0 0 0 2.5px var(--bg), inset 0 0 0 7px var(--primary); }
.amount-in { position: relative; width: 200px; max-width: 100%; }
.amount-in .cur-sign { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.amount-in input { padding-left: 32px; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.amount-in input::-webkit-inner-spin-button, .amount-in input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.wallet-split { font-size: 13.5px; color: var(--muted); }
.wallet-split b { color: var(--text); font-weight: 600; }
.wallet-hint { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px dashed var(--line-hi); border-radius: 12px; font-size: 13.5px; color: var(--muted); }
.wallet-hint .pm-ic.wallet { width: 32px; height: 32px; }
.wallet-hint .link { font-size: inherit; }
.coin-set legend { font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.coin-note, .covered-note {
  display: flex; align-items: flex-start; gap: 11px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.55;
  background: rgba(161, 98, 248, .07); border: 1px solid rgba(161, 98, 248, .25); color: #e2d6fc;
}
.coin-note .cx { --cx: 22px; margin-top: 1px; }
.coin-note b { font-weight: 600; color: var(--text); }
.covered-note { background: color-mix(in srgb, var(--good) 7%, transparent); border-color: color-mix(in srgb, var(--good) 28%, transparent); color: #c9f5e1; }
.closed { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-hi); }

/* 3. review and pay */
.final form { gap: 16px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; line-height: 1.55; }
.check input {
  appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px; border: 1.5px solid #4a4950;
  background: var(--bg); display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s;
}
.check input:checked { background: var(--primary); border-color: var(--primary); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check.bad input { border-color: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 20%, transparent); }
.pay-btn { width: 100%; height: 52px; font-size: 16px; border-radius: 12px; box-shadow: 0 12px 30px -14px rgba(161, 98, 248, .8); }
.assure { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.assure li { display: flex; gap: 10px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.assure svg { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--good); }
.help-line { padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }

/* order summary */
.summary { padding: 0; overflow: hidden; }
.sum-toggle { display: none; }
.sum-body { display: grid; gap: 18px; padding: 22px; }
.sum-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sum-h h2 { font-size: 17px; }
.sum-order {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; padding: 10px 12px;
  border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.sum-order code { font-size: 12.5px; color: var(--text); }
.sum-order .link { font-size: 13px; }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; transition: opacity .15s; }
.lines.busy { opacity: .5; pointer-events: none; }
.line { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.line .thumb { width: 52px; height: 52px; }
.line .thumb > .pm-ic.wallet { width: 28px; height: 28px; background-size: 18px; }
.ln-text { display: grid; gap: 2px; min-width: 0; }
.ln-text b { font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; line-height: 1.35; }
.ln-meta { font-size: 12.5px; color: var(--muted); }
.ln-price { display: grid; gap: 1px; justify-items: end; text-align: right; font-variant-numeric: tabular-nums; }
.ln-price b { font-size: 14.5px; font-weight: 600; }
.ln-price s, .ln-price small { font-size: 12px; color: var(--faint); }
.ln-acts { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-hi); border-radius: 8px; overflow: hidden; }
.qty button { width: 28px; height: 26px; border: 0; background: none; color: var(--text); font-size: 15px; line-height: 1; cursor: pointer; }
.qty button:hover:not(:disabled) { background: var(--card-hi); }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty span { min-width: 24px; text-align: center; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ln-remove { border: 0; background: none; padding: 0; color: var(--faint); font-size: 12.5px; cursor: pointer; }
.ln-remove:hover { color: #ff8f99; }
.coupon { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.coupon input { height: 42px; text-transform: uppercase; }
.coupon input::placeholder { text-transform: none; }
.coupon .btn { height: 42px; }
.coupon-msg { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
.coupon-msg.bad { color: #ffb3bb; }
.coupon-msg.ok { color: var(--good); }
.totals { margin: 0; display: grid; padding-top: 12px; border-top: 1px solid var(--line); }
.totals div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; font-size: 14px; }
.totals dt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; color: var(--muted); }
.totals dt code { font-size: 12px; color: var(--text); }
.totals dt .link { font-size: 12.5px; }
.totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.totals .neg { color: var(--good); }
.totals .t-total { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.totals .t-total dt { color: var(--text); font-weight: 600; font-size: 15px; }
.totals .t-total dd { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.totals .t-due { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(161, 98, 248, .09); }
.totals .t-due dt { color: var(--lilac); font-weight: 600; }
.totals .t-due dd { font-weight: 700; }
.sum-note { font-size: 12px; color: var(--faint); line-height: 1.55; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* payment details: live status, then the invoice */
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--faint); white-space: nowrap; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--good); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.track { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.track li { position: relative; display: grid; justify-items: center; align-content: start; gap: 8px; padding: 0 4px; text-align: center; font-size: 12.5px; color: var(--faint); line-height: 1.35; }
.track li::before {
  content: ""; position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: var(--panel);
  border: 1.5px solid var(--line-hi); transition: background .3s, border-color .3s;
}
.track li:not(:first-child)::after { content: ""; position: absolute; top: 10px; left: -50%; right: 50%; height: 2px; background: var(--line-hi); transition: background .3s; }
.track li.done { color: var(--text); }
.track li.done::before {
  border-color: var(--primary);
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='m9.5 16.2-4-4 1.4-1.4 2.6 2.6 7.1-7.1 1.4 1.4-8.5 8.5Z'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.track li.done::after, .track li.now::after { background: var(--primary); }
.track li.now { color: var(--text); font-weight: 600; }
.track li.now::before {
  border-color: var(--primary); background: radial-gradient(circle, var(--primary) 0 4px, var(--panel) 4.5px);
  box-shadow: 0 0 0 4px rgba(161, 98, 248, .18); animation: pulse 1.8s ease-in-out infinite;
}
.track li.now.warn::before { border-color: var(--warn); background: radial-gradient(circle, var(--warn) 0 4px, var(--panel) 4.5px); box-shadow: 0 0 0 4px rgba(245, 183, 74, .18); }
.track li.now.bad::before { border-color: var(--bad); background: radial-gradient(circle, var(--bad) 0 4px, var(--panel) 4.5px); box-shadow: 0 0 0 4px rgba(255, 90, 104, .18); animation: none; }
.track li.now.off::before { border-color: var(--faint); background: radial-gradient(circle, var(--faint) 0 4px, var(--panel) 4.5px); box-shadow: none; animation: none; }
.track li.now.warn, .track li.now.bad, .track li.now.off { color: var(--muted); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(161, 98, 248, .06); } }
.alert { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid; font-size: 13.5px; line-height: 1.55; }
.alert b { font-weight: 700; color: inherit; }
.alert.info { background: rgba(161, 98, 248, .08); border-color: rgba(161, 98, 248, .3); color: #e4d8fd; }
.alert.ok { background: color-mix(in srgb, var(--good) 8%, transparent); border-color: color-mix(in srgb, var(--good) 30%, transparent); color: #c9f5e1; }
.alert.warn { background: color-mix(in srgb, var(--warn) 8%, transparent); border-color: color-mix(in srgb, var(--warn) 32%, transparent); color: #f6dca6; }
.alert.bad { background: color-mix(in srgb, var(--bad) 9%, transparent); border-color: color-mix(in srgb, var(--bad) 32%, transparent); color: #ffc2c8; }
.alert.off { background: var(--bg); border-color: var(--line-hi); color: var(--muted); }

.paybox { border: 1px solid var(--line-hi); border-radius: 12px; background: var(--bg); overflow: hidden; }
.paybox.dim .pb-body, .paybox.dim .pb-meta { opacity: .5; }
.pb-time { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.timer { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.pb-bar { --left: 1; position: relative; height: 2px; margin-top: -1px; background: var(--line); }
.pb-bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--left) * 100%); background: var(--primary); transition: width 1s linear; }
.pb-body { display: grid; grid-template-columns: 156px minmax(0, 1fr); gap: 20px; padding: 18px 16px; }
.pb-qr { display: grid; gap: 8px; align-content: start; }
.qr { width: 156px; height: 156px; background: #fff; border-radius: 10px; padding: 8px; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr-switch { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-hi); border-radius: 8px; overflow: hidden; }
.qr-switch button { border: 0; background: none; padding: 6px 2px; font-size: 11.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.qr-switch button + button { border-left: 1px solid var(--line-hi); }
.qr-switch button[aria-pressed="true"] { background: var(--card-hi); color: var(--text); }
.pb-fields { display: grid; gap: 14px; align-content: start; min-width: 0; }
.pb-coin { display: flex; align-items: center; gap: 11px; }
.pb-coin .cx { --cx: 34px; }
.pb-coin > span:last-child { display: grid; min-width: 0; }
.pb-coin b { font-size: 15px; font-weight: 600; }
.pb-coin small { font-size: 12.5px; color: var(--muted); }
.pb-f { display: grid; gap: 5px; min-width: 0; }
.pb-l { font-size: 12.5px; color: var(--faint); font-weight: 500; }
.pb-v { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border: 1px solid var(--line-hi); border-radius: 8px; background: var(--panel); min-width: 0; }
.pb-v code { flex: 1; min-width: 0; font-size: 13px; overflow-wrap: anywhere; word-break: break-all; line-height: 1.45; }
.pb-amount code { font-size: 17px; font-weight: 600; }
.pb-sub { font-size: 12.5px; color: var(--muted); }
.pb-sub:empty { display: none; }
.pb-meta { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pb-meta div { display: grid; gap: 2px; min-width: 0; padding: 11px 16px; }
.pb-meta div + div { border-left: 1px solid var(--line); }
.pb-meta div:has(dd:empty) { display: none; }
.pb-meta dt { font-size: 12px; color: var(--faint); }
.pb-meta dd { margin: 0; font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.pb-warn { padding: 11px 16px; border-top: 1px solid var(--line); font-size: 13px; color: #f3d79a; background: color-mix(in srgb, var(--warn) 6%, transparent); }
.pb-warn:empty { display: none; }
.how { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: h; display: grid; gap: 10px; }
.how li { counter-increment: h; display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.how li::before { content: counter(h) "."; color: var(--faint); font-weight: 600; font-variant-numeric: tabular-nums; }
#pCheck { margin-top: 18px; }

/* delivery */
#dlLine:empty { display: none; }
.eta-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eta { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.eta:empty::before { content: "—"; color: var(--faint); }
#prQueue { font-size: 13.5px; color: var(--muted); text-align: right; }
.gift { display: grid; gap: 10px; margin-top: 16px; }
.gift .pb-v code { font-size: 14px; color: var(--text); user-select: all; }
.gift-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#dlLines { margin-top: 14px; }
.invoice { display: grid; gap: 6px; margin-top: 16px; }
#doneAccount { margin-top: 16px; }
#doneCta { margin-top: 18px; }

/* ---------- tablets and phones ---------- */
@media (max-width: 960px) {
  .ck-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ck-side { position: static; order: -1; }
  .sum-toggle {
    display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px;
    border: 0; background: none; color: var(--text); text-align: left; cursor: pointer;
  }
  .st-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; }
  .st-label small { font-weight: 500; color: var(--muted); font-size: 13px; }
  .st-label::after {
    content: ""; width: 7px; height: 7px; margin-left: 2px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
    transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease);
  }
  .summary.open .st-label::after { transform: rotate(-135deg) translateY(-1px); }
  .sum-toggle b { font-size: 16px; font-variant-numeric: tabular-nums; }
  .sum-body { display: none; padding-top: 18px; border-top: 1px solid var(--line); }
  .summary.open .sum-body { display: grid; }
  .sum-h { display: none; }
}
@media (max-width: 640px) {
  .ck { padding: 16px 16px 48px; }
  .ck-top-in { padding: 10px 16px; gap: 10px; }
  .ck-top .brand { font-size: 17px; }
  .ck-top .brand::before { width: 22px; height: 22px; margin-right: 7px; border-radius: 6px; }
  .back-btn { width: 34px; padding: 0; }
  .back-btn span { display: none; }
  .back-btn svg { width: 17px; height: 17px; }
  .card { padding: 18px; border-radius: 14px; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .wallet-more { padding-left: 14px; }
  .pb-meta { grid-template-columns: minmax(0, 1fr); }
  .pb-meta div + div { border-left: 0; border-top: 1px solid var(--line); }
  .track li { font-size: 11px; padding: 0 2px; }
  .ck-msg { margin: 40px auto; }
}
@media (max-width: 480px) {
  .pb-body { grid-template-columns: minmax(0, 1fr); }
  .pb-qr { justify-items: center; }
  .qr { width: 200px; height: 200px; }
  .qr-switch { width: 200px; }
  .gift-actions { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .sb-long { display: none; }
  .secure-badge { padding: 4px 9px 4px 7px; font-size: 12px; }
  .st-label { white-space: nowrap; }
  .st-label small { display: none; }
}
/* phones: smaller type and tighter spacing so more of the checkout fits on one screen */
@media (max-width: 640px) {
  .co { font-size: 14px; }
  .ck { padding: 12px 12px 40px; }
  .ck-grid, .ck-main { gap: 12px; }
  .card { padding: 14px; border-radius: 12px; }
  .card-h, .step-h { margin-bottom: 12px; gap: 10px; }
  .card-h h2, .step-h h2, .sum-h h2 { font-size: 15px; }
  .step-n { width: 24px; height: 24px; font-size: 12px; }
  .step-body, .pane { gap: 12px; }
  .field { gap: 5px; }
  .field > span { font-size: 12.5px; }
  .field small { font-size: 11.5px; }
  input[type=email], input[type=text], input[type=password], input[type=number] { height: 40px; font-size: 14px; border-radius: 9px; }
  .ck-tabs button { height: 34px; font-size: 13px; }
  .btn { height: 40px; font-size: 13.5px; }
  .signed-in { padding: 10px 12px; }
  .avatar { width: 30px; height: 30px; font-size: 13px; }
  .si-text span { font-size: 12px; }
  .wallet-top { padding: 10px 12px; gap: 10px; }
  .wallet-top .pm-ic.wallet, .wallet-hint .pm-ic.wallet { width: 28px; height: 28px; }
  .opt-text b { font-size: 13.5px; }
  .opt-text small, .wallet-split, .wallet-hint, .coin-note, .covered-note, .closed { font-size: 12.5px; }
  .wallet-hint, .coin-note, .covered-note { padding: 10px 12px; }
  .coin-set legend { font-size: 12.5px; margin-bottom: 8px; }
  .coins { gap: 6px; }
  .coin { padding: 9px 12px; gap: 11px; border-radius: 10px; }
  .coin .cx { --cx: 28px; }
  .coin-name b { font-size: 14px; }
  .tk { font-size: 10.5px; padding: 0 5px; }
  .coin-net { font-size: 12px; }
  .coin::after { width: 16px; height: 16px; }
  .check { font-size: 12.5px; gap: 10px; }
  .check input { width: 18px; height: 18px; }
  .final form { gap: 12px; }
  .pay-btn { height: 46px; font-size: 15px; border-radius: 10px; }
  .assure li, .help-line { font-size: 12px; }
  .help-line { padding-top: 10px; }
  .sum-toggle { padding: 12px 14px; }
  .st-label { font-size: 13.5px; }
  .sum-toggle b { font-size: 15px; }
  .sum-body { padding: 14px; gap: 12px; }
  .lines { gap: 12px; }
  .line { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; }
  .line .thumb { width: 44px; height: 44px; }
  .ln-text b, .ln-price b { font-size: 13.5px; }
  .ln-meta { font-size: 11.5px; }
  .coupon input, .coupon .btn { height: 38px; }
  .totals div { font-size: 13px; padding: 4px 0; }
  .totals .t-total dt { font-size: 14px; }
  .totals .t-total dd { font-size: 18px; }
  .sum-note { font-size: 11px; }
  .step-sum div { font-size: 13px; padding: 8px 0; }
  .track li { font-size: 10.5px; gap: 6px; }
  .track li::before { width: 18px; height: 18px; }
  .track li:not(:first-child)::after { top: 8px; }
  .alert { font-size: 12.5px; padding: 10px 12px; margin-bottom: 12px; }
  .pb-time { padding: 9px 12px; font-size: 12px; }
  .pb-body { padding: 14px 12px; gap: 14px; }
  .pb-coin b { font-size: 14px; }
  .pb-amount code { font-size: 15px; }
  .pb-v code { font-size: 12px; }
  .pb-meta div { padding: 9px 12px; }
  .pb-meta dd { font-size: 12.5px; }
  .pb-warn { padding: 9px 12px; font-size: 12px; }
  .how { margin-top: 12px; gap: 8px; }
  .how li { font-size: 12.5px; }
  #pCheck { margin-top: 12px; }
  .eta { font-size: 26px; }
  #prQueue, #dlLine { font-size: 12.5px; }
}
@media (max-width: 480px) {
  .qr { width: 168px; height: 168px; }
  .qr-switch { width: 168px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* Decorly logo (static/img/decorly-logo.svg) in every brand spot */
.brand::before { content: none !important; display: none !important; }
.brand .logo { display: block; height: 40px; width: auto; }

/* ---------- round 10: calmer checkout ---------- */
.ck-grid { gap: 32px; }
.ck-main { gap: 20px; }
.card { border-color: rgba(255, 255, 255, .06); padding: 28px; }
.step-h { margin-bottom: 22px; }
.step-body { gap: 20px; }
.field small { color: var(--faint); }
.coins { gap: 6px; }
.coin { padding: 10px 14px; border-color: rgba(255, 255, 255, .08); }
.coin .cx { --cx: 28px; }
.wallet-hint { border: 0; padding: 0; background: none; gap: 10px; }
.wallet-hint .pm-ic.wallet { width: 24px; height: 24px; background-size: 15px; border-radius: 6px; }
.assure { display: flex; gap: 8px; align-items: flex-start; justify-content: center; text-align: center; font-size: 12.5px; color: var(--faint); line-height: 1.55; }
.assure svg { flex: none; width: 13px; height: 13px; margin-top: 3px; color: var(--good); }
.assure a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.sum-h { align-items: center; }
.sum-h h2 { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.sum-h { flex-wrap: wrap; row-gap: 10px; }
.cur-switch { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); }
.cur-switch button { white-space: nowrap; height: 26px; padding: 0 9px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.cur-switch button[aria-pressed="true"] { background: var(--card-hi); color: var(--text); }
.lines { gap: 14px; }
.totals { padding-top: 14px; }
@media (max-width: 960px) {
  .sum-h { display: flex; justify-content: flex-end; }
  .sum-h h2 { display: none; }
}
@media (max-width: 640px) {
  .card { padding: 16px; }
  .ck-main, .ck-grid { gap: 12px; }
  .coin { padding: 9px 12px; }
}
.ck-top { transition: box-shadow .25s; }
.ck-top.scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .9); }

/* ====================== gifts ready: celebration ====================== */
#delivery.party { position: relative; overflow: hidden; padding-top: 8px;
  background: radial-gradient(90% 60% at 50% 0%, rgba(161, 98, 248, .28), transparent 70%), radial-gradient(60% 40% at 50% 8%, rgba(255, 213, 74, .14), transparent 70%), var(--card); }
#delivery.party > .card-h, #delivery.party > #dlLine { display: none; }
.gift-hero { position: relative; text-align: center; padding: 6px 4px 4px; }
.gh-stage { position: relative; height: 200px; margin: 0 auto; max-width: 440px; }
.gh-stage::before { content: ""; position: absolute; left: 50%; top: 52%; width: 260px; height: 260px; transform: translate(-50%, -50%); border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 213, 74, .0), rgba(255, 213, 74, .22), rgba(255, 213, 74, 0) 25%, rgba(161, 98, 248, .22) 50%, rgba(255, 213, 74, 0) 75%, rgba(255, 213, 74, .22));
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 70%); mask: radial-gradient(circle, #000 20%, transparent 70%); animation: ghSpin 14s linear infinite; }
@keyframes ghSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.gh-pile { position: absolute; inset: 0; }
/* each little present: box + ribbon cross + a bow on top */
.gb { --c: #a162f8; --r: #ffd54a; --w: 46px; position: absolute; width: var(--w); height: calc(var(--w) * .82); border-radius: 7px; background: var(--c);
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .14), 0 12px 22px -10px rgba(0, 0, 0, .8); animation: gbBob 3.2s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -1s); }
.gb::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 18%; transform: translateX(-50%); background: var(--r); }
.gb::after { content: ""; position: absolute; left: -6%; right: -6%; top: -2px; height: 26%; border-radius: 5px; background: var(--c); filter: brightness(1.15);
  box-shadow: inset 0 0 0 999px rgba(255, 255, 255, .06); }
.gb i { position: absolute; z-index: 1; left: 50%; top: -38%; width: 46%; height: 42%; transform: translateX(-50%); }
.gb i::before, .gb i::after { content: ""; position: absolute; bottom: 0; width: 56%; height: 90%; border: 3px solid var(--r); border-radius: 50% 50% 10% 50%; }
.gb i::before { left: -6%; transform: rotate(-35deg); }
.gb i::after { right: -6%; transform: rotate(35deg) scaleX(-1); }
@keyframes gbBob { 0%, 100% { transform: translateY(0) rotate(var(--t, 0deg)); } 50% { transform: translateY(-9px) rotate(calc(var(--t, 0deg) * -1)); } }
.gh-pile .g1 { left: 2%; top: 58%; --w: 44px; --c: #ff2e6e; --t: -8deg; --d: .2; }
.gh-pile .g2 { left: 14%; top: 22%; --w: 34px; --c: #3ddc97; --r: #fff; --t: 10deg; --d: 1.1; }
.gh-pile .g3 { left: 22%; top: 64%; --w: 54px; --c: #ffd54a; --r: #a162f8; --t: 6deg; --d: .7; }
.gh-pile .g4 { right: 22%; top: 64%; --w: 52px; --c: #2aabee; --r: #fff3c4; --t: -6deg; --d: 1.6; }
.gh-pile .g5 { right: 13%; top: 20%; --w: 36px; --c: #ff8a3d; --r: #fff; --t: -12deg; --d: .4; }
.gh-pile .g6 { right: 2%; top: 56%; --w: 46px; --c: #c4a6fb; --r: #ff2e6e; --t: 9deg; --d: 2.1; }
.gh-pile .g7 { left: 33%; top: 4%; --w: 26px; --c: #ff2e6e; --r: #ffd54a; --t: 14deg; --d: 1.4; }
.gh-pile .g8 { right: 33%; top: 2%; --w: 24px; --c: #ffd54a; --r: #ff2e6e; --t: -14deg; --d: .9; }
.gh-pile .g9 { left: 6%; top: 4%; --w: 22px; --c: #a162f8; --r: #fff; --t: 4deg; --d: 2.6; }
.gh-main { position: absolute; left: 50%; top: 50%; width: 132px; height: 132px; transform: translate(-50%, -50%); padding: 0; border: 0; background: none; cursor: pointer;
  filter: drop-shadow(0 18px 30px rgba(161, 98, 248, .55)) drop-shadow(0 0 24px rgba(255, 213, 74, .35)); animation: ghPop .9s cubic-bezier(.3, 1.6, .5, 1) both, ghFloat 3.6s 1s ease-in-out infinite; }
.gh-main svg { width: 100%; height: 100%; display: block; }
@keyframes ghPop { from { transform: translate(-50%, -50%) scale(.2) rotate(-20deg); opacity: 0; } }
@keyframes ghFloat { 0%, 100% { transform: translate(-50%, -50%) rotate(-3deg); } 50% { transform: translate(-50%, -56%) rotate(3deg); } }
.gh-kicker { margin: 4px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #ffd54a; }
.gh-title { margin: 8px 0 0; font-size: clamp(26px, 4.4vw, 36px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800;
  background: linear-gradient(90deg, #fff 0%, #ffe9a3 40%, #fff 60%, #c4a6fb 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text;
  color: transparent; animation: ghShine 5s linear infinite; }
@keyframes ghShine { to { background-position: -200% 0; } }
.gh-line { margin: 10px auto 0; max-width: 46ch; color: var(--muted); font-size: 15px; line-height: 1.6; }
.gh-steps { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 6px; padding: 0; }
.gh-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-hi); font-size: 13px; color: var(--muted); }
.gh-steps b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 12px; }
.gh-steps em { font-style: normal; color: var(--text); font-weight: 600; }

.gift-list { display: grid; gap: 10px; margin-top: 18px; }
.gf-row { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; border-radius: 16px;
  background: var(--bg-2); border: 1px solid var(--line); animation: gfIn .6s var(--ease) both; animation-delay: calc(.5s + var(--i, 0) * .12s); transition: border-color .25s, transform .25s; }
.gf-row:hover { border-color: rgba(255, 213, 74, .45); transform: translateY(-2px); }
@keyframes gfIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.gf-thumb { width: 76px; height: 76px; border-radius: 14px; background: radial-gradient(circle at 50% 40%, rgba(161, 98, 248, .3), transparent 70%), var(--card-hi); }
.gf-text { display: grid; gap: 2px; min-width: 0; }
.gf-kind { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lilac); }
.gf-text b { font-size: 16px; font-weight: 700; }
.gf-link { width: fit-content; max-width: 100%; margin-top: 2px; font: 500 12.5px var(--font-mono); color: var(--muted); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-link:hover { color: #ffd54a; }
.gf-acts { display: flex; gap: 8px; }
.gf-redeem { position: relative; overflow: hidden; background: linear-gradient(180deg, #ffd54a, #f5a623) !important; color: #2a1a00 !important; font-weight: 800; border: 0;
  box-shadow: 0 10px 22px -10px rgba(255, 193, 26, .9); }
.gf-redeem::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); animation: gfShine 3s 1.5s ease-in-out infinite; }
@keyframes gfShine { 40%, 100% { transform: translateX(120%); } }
.gf-badge { position: absolute; top: -8px; right: 12px; padding: 2px 9px; border-radius: 999px; background: var(--good); color: #052014; font-size: 11px; font-weight: 800;
  opacity: 0; transform: scale(.6); transition: opacity .3s, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.gf-row.opened { border-color: rgba(61, 220, 151, .4); }
.gf-row.opened .gf-badge { opacity: 1; transform: none; }
.gf-row.waiting { opacity: .75; }
.gf-wait { font-size: 13px; color: var(--muted); }
.gift-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
@media (max-width: 640px) {
  .gh-stage { height: 170px; }
  .gh-main { width: 108px; height: 108px; }
  .gb { --w: 38px; }
  .gh-pile .g3, .gh-pile .g4 { --w: 44px; }
  .gf-row { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; }
  .gf-thumb { width: 60px; height: 60px; }
  .gf-acts { grid-column: 1 / -1; }
  .gf-acts .btn { flex: 1; justify-content: center; }
  .gh-steps li { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .gb, .gh-main, .gh-stage::before, .gh-title, .gf-redeem::after, .gf-row { animation: none !important; }
}
/* round 16: a calm page once the gifts are ready */
body.gifts-ready #stepCustomer, body.gifts-ready #stepPay, body.gifts-ready #payDetails, body.gifts-ready #stepFinal,
body.gifts-ready #delivery #doneCta, body.gifts-ready #giftMail { display: none !important; }
body.gifts-ready #delivery { margin-top: 0; }
.gift-thanks { display: grid; justify-items: center; gap: 14px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); text-align: center;
  animation: gfIn .7s var(--ease) both; animation-delay: 1s; }
.gift-thanks p { margin: 0; font-size: 15px; font-weight: 600; color: var(--muted); }
.gift-thanks .btn { min-width: 200px; justify-content: center; }
.gift-foot:has(#giftCopyAll[hidden]) { display: none; }
.gift-foot { justify-content: center; margin-top: 12px; }
.gf-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 3px 10px 3px 6px; border-radius: 999px; background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-hi); font-size: 12px; color: var(--muted); }
.gf-link:hover { color: #ffd54a; border-color: rgba(255, 213, 74, .45); }
.gf-link-ic { font-size: 11px; }
@media (prefers-reduced-motion: reduce) { .gift-thanks { animation: none !important; } }
@media (max-width: 640px) {
  .gh-steps { gap: 4px; flex-wrap: nowrap; }
  .gh-steps li { padding: 4px 8px 4px 4px; gap: 5px; font-size: 11px; white-space: nowrap; }
  .gh-steps b { width: 18px; height: 18px; font-size: 10.5px; }
}

/* round 17: link box + item with price, like a receipt */
.gf-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; }
.gf-box { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 14px; background: #0b0a0d;
  border: 1px solid rgba(61, 220, 151, .28); }
.gf-row .gf-link { flex: 1; min-width: 0; margin: 0; padding: 0; border: 0; background: none; border-radius: 0; display: block;
  font: 500 14px var(--font-mono); color: var(--good); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gf-row .gf-link:hover { color: #6ff0b6; }
.gf-redeem { background: var(--primary) !important; color: #fff !important; box-shadow: 0 10px 22px -10px rgba(161, 98, 248, .9); flex: none; }
.gf-copy { flex: none; }
.gf-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.gf-item .gf-thumb { width: 56px; height: 56px; border-radius: 12px; }
.gf-item .gf-text b { font-size: 15.5px; font-weight: 600; }
.gf-item .gf-kind { font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.gf-price { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gift-foot { display: grid; justify-content: stretch; gap: 12px; margin-top: 16px; }
.gift-foot:has(#giftCopyAll[hidden]) { display: grid; }
.gift-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 4px 0; border-top: 1px solid var(--line); }
.gift-total span { color: var(--muted); font-size: 16px; }
.gift-total b { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
#giftCopyAll { justify-self: center; }
.gift-thanks { gap: 6px; margin-top: 28px; padding-top: 26px; }
.gift-thanks .gt-title { font-family: "Plus Jakarta Sans", var(--font); font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: var(--text);
  background: linear-gradient(90deg, #fff, #ffe9a3 50%, #c4a6fb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gift-thanks .gt-sub { font-size: 14.5px; font-weight: 500; color: var(--muted); }
.gift-thanks .gt-shop { margin-top: 16px; width: 100%; max-width: 360px; height: 52px; justify-content: center; gap: 8px; font-size: 16px; font-weight: 700;
  border-radius: 14px; box-shadow: 0 16px 34px -14px rgba(161, 98, 248, .95); }
.gift-thanks .gt-shop span { transition: transform .2s var(--ease); }
.gift-thanks .gt-shop:hover span { transform: translateX(4px); }
@media (max-width: 640px) {
  .gf-row { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .gf-box { padding: 6px 6px 6px 12px; }
  .gf-row .gf-link { font-size: 12.5px; }
  .gf-box .btn { padding-inline: 12px; }
  .gf-item { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; }
  .gf-item .gf-thumb { width: 48px; height: 48px; }
}
@media (max-width: 640px) { .gift-thanks .gt-title { font-size: 20px; } }
