/* Dolla Wolf Payments · hosted checkout. Same palette as the portals; the box grows with its content and scrolls inside. */
:root{
  --bg:#F6F6FB; --surface:#FFFFFF; --surface-2:#EEEFF7; --line:#E2E4F0; --fg:#0B1020; --muted:#4A5072;
  --accent:#5B4CF0; --accent-fg:#FFFFFF; --accent-soft:#EFEDFF; --accent-ink:#4B3FD6;
  --lime:#C8F25A; --lime-ink:#0B1020;
  --ok:#16794A; --ok-soft:#DDF3E6; --warn:#8A5300; --warn-soft:#FCEBCF; --bad:#B3261E; --bad-soft:#F9DEDB;
  --scrim:rgb(11 16 32 / .55); --shadow:0 20px 50px rgb(11 16 32 / .28);
  --qr-fg:#0B1020; --qr-bg:#FFFFFF;
  --font-display:'Space Grotesk','Helvetica Neue',Arial,sans-serif;
  --font-body:'Manrope',system-ui,-apple-system,'Segoe UI',sans-serif;
  --font-mono:'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0B1020; --surface:#121834; --surface-2:#1A2145; --line:#262E55; --fg:#E8EAF6; --muted:#A3A9C9;
  --accent:#6A5CF5; --accent-fg:#FFFFFF; --accent-soft:#221D57; --accent-ink:#B3AAFF;
  --ok:#5BD08F; --ok-soft:#12321F; --warn:#F2B04E; --warn-soft:#3A2A10; --bad:#F2877D; --bad-soft:#3E1A1A;
  --scrim:rgb(0 0 0 / .65); --shadow:0 20px 50px rgb(0 0 0 / .6); color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0B1020; --surface:#121834; --surface-2:#1A2145; --line:#262E55; --fg:#E8EAF6; --muted:#A3A9C9;
  --accent:#6A5CF5; --accent-fg:#FFFFFF; --accent-soft:#221D57; --accent-ink:#B3AAFF;
  --ok:#5BD08F; --ok-soft:#12321F; --warn:#F2B04E; --warn-soft:#3A2A10; --bad:#F2877D; --bad-soft:#3E1A1A;
  --scrim:rgb(0 0 0 / .65); --shadow:0 20px 50px rgb(0 0 0 / .6); color-scheme:dark}

*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--font-body);font-size:14px;line-height:1.45;-webkit-text-size-adjust:100%}
body.embedded{background:transparent}
button,input,select{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.mono{font-family:var(--font-mono);font-size:12.5px}

/* page: the box is centered, never taller than the screen; its middle part scrolls */
.stage{min-height:100%;display:flex;justify-content:center;align-items:flex-start;
  padding-block:max(24px,env(safe-area-inset-top,0px)) max(24px,env(safe-area-inset-bottom,0px));
  padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
body.embedded .stage{background:var(--scrim);height:100%;align-items:center}
.cashier{width:min(420px,100%);max-height:calc(100dvh - 48px);background:var(--surface);border:1px solid var(--line);border-radius:16px;
  box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column}
@media (max-width:480px){
  .stage,body.embedded .stage{padding:0;align-items:stretch}
  .cashier{width:100%;max-height:none;min-height:100dvh;border-radius:0;border:0;box-shadow:none}
}

.co-top{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 18px;border-bottom:1px solid var(--line);flex:none}
.co-top h1{margin:0;font-family:var(--font-display);font-size:17px;font-weight:700;letter-spacing:-.01em;display:flex;align-items:center;gap:8px;min-width:0}
.co-top h1 span.m{color:var(--muted);font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.testtag{font-family:var(--font-body);font-size:10px;letter-spacing:.06em;background:var(--lime);color:var(--lime-ink);padding:2px 6px;border-radius:5px;font-weight:700;white-space:nowrap}
.co-x{border:0;background:none;color:var(--muted);cursor:pointer;width:32px;height:32px;border-radius:8px;display:grid;place-items:center;font-size:18px;flex:none}
.co-x:hover{background:var(--surface-2)}
.co-tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line);flex:none}
.co-tabs.one{grid-template-columns:1fr}
.co-tabs button{border:0;background:none;padding:11px;cursor:pointer;color:var(--muted);font-weight:600;border-bottom:2px solid transparent}
.co-tabs button[aria-selected="true"]{color:var(--accent-ink);border-bottom-color:var(--accent)}
.co-body{padding:16px 18px 20px;display:flex;flex-direction:column;gap:14px;overflow-y:auto;overscroll-behavior:contain;flex:1 1 auto;min-height:0}
.co-foot{display:flex;align-items:center;justify-content:center;gap:6px;font-size:11px;color:var(--muted);padding:10px;border-top:1px solid var(--line);background:var(--surface-2);flex:none}

.co-sec{display:flex;flex-direction:column;gap:8px}
.co-lbl{font-size:12px;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.06em;display:flex;justify-content:space-between;gap:8px}
.co-lbl span{text-transform:none;letter-spacing:0;font-weight:500}
.co-methods{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.co-m{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;border:1.5px solid var(--line);background:var(--surface);border-radius:10px;padding:10px 12px;cursor:pointer;min-width:0}
.co-m strong{font-size:14px}
.co-m span{font-size:11px;color:var(--muted)}
.co-m[aria-pressed="true"],.co-p[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft)}
.co-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.co-p{border:1.5px solid var(--line);background:var(--surface);border-radius:8px;padding:8px 4px;cursor:pointer;font-family:var(--font-mono);font-size:13px;overflow:hidden;text-overflow:ellipsis}
.co-amtin{display:flex;align-items:center;border:1.5px solid var(--line);border-radius:10px;background:var(--surface);padding:0 12px}
.co-amtin:focus-within{border-color:var(--accent)}
.co-amtin input{border:0;outline:0;background:none;flex:1;min-width:0;font-family:var(--font-mono);font-size:18px;padding:10px 0}
.co-amtin span{color:var(--muted);font-weight:600}
.co-f{display:flex;flex-direction:column;gap:5px}
.co-f label{font-size:12px;color:var(--muted);font-weight:600}
.co-f input,.co-f select{font-size:16px;border:1.5px solid var(--line);border-radius:9px;background:var(--surface);padding:9px 11px;width:100%;min-width:0}
.co-f input:focus,.co-f select:focus{border-color:var(--accent);outline:0}
.co-f small{font-size:11.5px;color:var(--muted)}
.co-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.co-btn{width:100%;border:0;background:var(--accent);color:var(--accent-fg);border-radius:10px;padding:13px;font-weight:700;font-size:15px;cursor:pointer}
.co-btn:disabled{opacity:.55;cursor:default}
.co-btn.ghost{background:var(--surface-2);color:var(--fg)}
.co-back{border:0;background:none;color:var(--accent-ink);cursor:pointer;padding:0;align-self:flex-start;font-weight:600}
.co-mh{font-family:var(--font-display);font-weight:700;font-size:18px;margin-top:-6px}
.co-amt{font-family:var(--font-display);font-weight:700;font-size:28px;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.co-amt span{font-size:14px;color:var(--muted);font-weight:600}
.co-timer{font-size:12px;color:var(--warn);background:var(--warn-soft);padding:4px 10px;border-radius:99px;align-self:flex-start;font-variant-numeric:tabular-nums}
.co-qr{align-self:center;width:210px;max-width:100%;padding:10px;background:var(--qr-bg);border-radius:12px;border:1px solid var(--line)}
.co-qr svg{display:block;width:100%;height:auto}
.co-help{margin:0;font-size:13px;color:var(--muted)}
.co-help strong{color:var(--fg)}
.co-copy{display:flex;justify-content:space-between;gap:10px;align-items:center;background:var(--surface-2);border-radius:8px;padding:8px 10px;min-width:0}
.co-copy .mono{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.link{border:0;background:none;color:var(--accent-ink);cursor:pointer;padding:0;font-weight:600;font-size:13px;white-space:nowrap}
.co-det{display:grid;grid-template-columns:max-content minmax(0,1fr) max-content;gap:8px 12px;margin:0;background:var(--surface-2);border-radius:8px;padding:12px;font-size:13px;align-items:center}
.co-det dt{color:var(--muted)} .co-det dd{margin:0;overflow-wrap:anywhere;font-family:var(--font-mono);font-size:13px}
.co-wait,.co-done{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:18px 0}
.co-wait strong,.co-done strong{font-size:16px}
.spin{width:38px;height:38px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--accent);animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spin{animation-duration:3s}}
.co-tick{width:54px;height:54px;border-radius:50%;background:var(--ok-soft);color:var(--ok);display:grid;place-items:center;font-size:26px;font-weight:700}
.co-tick.bad{background:var(--bad-soft);color:var(--bad)} .co-tick.warn{background:var(--warn-soft);color:var(--warn)}
.co-note{font-size:12.5px;background:var(--surface-2);border-radius:8px;padding:8px 10px;color:var(--muted)}
.co-note.ok{background:var(--ok-soft);color:var(--ok)}
.co-err{color:var(--bad);font-size:13px;margin:0;min-height:0}
.co-err:empty{display:none}
.steps{display:flex;align-items:center;gap:6px;font-size:12px;flex-wrap:wrap;justify-content:center}
.steps span{padding:3px 9px;border-radius:6px;background:var(--surface-2);color:var(--muted)}
.steps span.done{background:var(--ok-soft);color:var(--ok)}
.steps span.now{background:var(--warn-soft);color:var(--warn);font-weight:700}
.steps span.bad{background:var(--bad-soft);color:var(--bad);font-weight:700}
.stepper{display:flex;gap:6px;font-size:12px;color:var(--muted);align-items:center}
.stepper b{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--surface-2);font-size:11px}
.stepper .on b{background:var(--accent);color:var(--accent-fg)}
.stepper .on{color:var(--fg);font-weight:600}
.stepper i{flex:1;height:1px;background:var(--line)}
.wlist{display:flex;flex-direction:column;gap:6px}
.witem{display:flex;justify-content:space-between;gap:10px;align-items:center;border:1px solid var(--line);border-radius:9px;padding:8px 10px;font-size:13px}
.witem .mono{color:var(--muted)}
.chip{font-size:11px;font-weight:700;padding:2px 8px;border-radius:99px;white-space:nowrap}
.chip.warn{background:var(--warn-soft);color:var(--warn)} .chip.ok{background:var(--ok-soft);color:var(--ok)} .chip.bad{background:var(--bad-soft);color:var(--bad)}
.co-test{font-size:12px;border:1px dashed var(--line);border-radius:8px;padding:8px 10px;color:var(--muted)}
