/* The payment box (checkout.js): the same look on the homepage, in the portal and on /pay/. It takes the page's own
   colours (site-v4.css, portal.css or privacy.css all define --ink, --muted, --gold and --gold-soft). */
.co { --co-line: var(--line-strong, var(--border-strong, rgba(255, 255, 255, .16))); --co-quiet: var(--quiet, #8e98a7); --co-ok: var(--ok, #7ee0a3);
  position: relative; display: grid; gap: 13px; min-width: 0; padding: 16px; border: 1px solid rgba(226, 196, 108, .42); border-radius: 20px;
  background: linear-gradient(160deg, rgba(226, 196, 108, .075), rgba(226, 196, 108, .012) 60%), #0b0d10; color: var(--ink); text-align: left; transition: border-color .4s; }
.co[data-tone="amber"] { border-color: rgba(239, 192, 120, .45); }
.co[data-tone="ok"] { border-color: rgba(126, 224, 163, .42); }
.co[data-tone="bad"] { border-color: rgba(255, 139, 134, .4); }
.co [hidden] { display: none !important; }
.co-said { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* read aloud only */
.co-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
.co-what { min-width: 0; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.35; }
.co-ref { justify-self: start; margin: -4px 0 0; padding: 5px 10px; border: 1px solid rgba(226, 196, 108, .35); border-radius: 99px; background: rgba(226, 196, 108, .07); color: var(--gold-soft); font-size: 12px; font-weight: 600; line-height: 1.2; }
.co-eur { flex: none; color: var(--gold-soft); font-size: 22px; font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.co-eur { font-family: var(--display); }   /* the homepage's Geist; elsewhere the page's own font (no --display there) */
/* Amount, Sent, Confirmed and what the payment brings: where the payment stands */
.co-rail { position: relative; padding-top: 2px; transition: opacity .3s; }
.co-rail.dim { opacity: .35; }
.co-rail ol { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.co-trk, .co-fill { position: absolute; top: 8px; left: 12.5%; height: 2px; border-radius: 2px; }
.co-trk { right: 12.5%; background: var(--co-line); }
.co-fill { width: calc(75% * var(--p, 0)); background: linear-gradient(90deg, var(--gold-deep, #a9873a), var(--gold)); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.co[data-tone="ok"] .co-fill { background: linear-gradient(90deg, var(--gold-deep, #a9873a), var(--co-ok)); }
.co-rail li { display: grid; justify-items: center; gap: 6px; min-width: 0; color: var(--co-quiet); font-size: 11px; font-weight: 600; line-height: 1.2; text-align: center; transition: color .3s; }
.co-rail i { width: 14px; height: 14px; border: 2px solid var(--co-line); border-radius: 50%; background: #0b0d10; transition: background .35s, border-color .35s, box-shadow .35s; }
.co-rail li.on { color: var(--ink); }
.co-rail li.on i { border-color: var(--gold); background: var(--gold); }
.co-rail li.now { color: var(--gold-soft); }
.co-rail li.now i { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(226, 196, 108, .16); }
.co[data-tone="amber"] .co-rail li.now { color: #efc078; }
.co[data-tone="amber"] .co-rail li.now i { border-color: #efc078; box-shadow: 0 0 0 4px rgba(239, 192, 120, .16); }
.co-body { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; align-items: center; }
.co-body:has(> .co-qr[hidden]) { grid-template-columns: minmax(0, 1fr); }   /* no QR: the amount and address take the row, not its 132px column (audit #102) */
.co-qr { width: 132px; aspect-ratio: 1; max-width: 100%; padding: 5px; border-radius: 14px; overflow: hidden; background: #fff; }
.co-qr svg { display: block; width: 100%; height: 100%; }
.co-fields { display: grid; gap: 10px; min-width: 0; }
.co-field small { display: block; margin: 0 0 5px; color: var(--co-quiet); font-size: 11.5px; font-weight: 600; }
.co-field small.co-check { margin: 5px 0 0; font-weight: 500; }
.co-val { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 5px 5px 12px; border: 1px solid var(--co-line); border-radius: 12px; background: #07080a; }
.co-amount { font-family: var(--mono, ui-monospace, SFMono-Regular, Consolas, monospace); font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.co-unit { color: var(--muted); font-size: 12px; font-weight: 700; }
.co-addr { flex: 1; min-width: 0; color: var(--muted); font-family: var(--mono, ui-monospace, SFMono-Regular, Consolas, monospace); font-size: 12.5px; line-height: 1.45; overflow-wrap: anywhere; word-break: break-all; text-wrap: balance; }
.co-addr b { color: var(--gold-soft); font-weight: 600; }
.co-copy { flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin-left: auto; padding: 0; border: 1px solid rgba(226, 196, 108, .5); border-radius: 9px; background: rgba(226, 196, 108, .1); color: var(--gold-soft); font-family: inherit; cursor: pointer; transition: background .15s, border-color .15s; }
.co-copy svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.co-copy:hover { background: rgba(226, 196, 108, .18); }
/* our tooltip on the copy icons (live audit 2026-10-12: none on /pay/); its own attribute, so the portal's [data-tip] rule
   never doubles it */
.co-copy { position: relative; }
.co-copy::after { content: attr(data-co-tip); position: absolute; z-index: 30; bottom: calc(100% + 8px); right: 0; padding: 6px 9px; border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px; background: #1d2128; color: #f5f3ec; font-size: 12px; font-weight: 500; line-height: 1.3; letter-spacing: 0; white-space: nowrap; opacity: 0;
  pointer-events: none; transform: translateY(4px); transition: opacity .16s, transform .16s; }
.co-copy:hover::after, .co-copy:focus-visible::after, .co-copy.tip-on::after { opacity: 1; transform: none; }
@media (hover: none) { .co-copy:not(.tip-on):hover::after { opacity: 0; } }
.co-away { color: #efc078; }
.co-copy[data-done] { border-color: var(--co-ok); background: transparent; color: var(--co-ok); }
.co-timer { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 13px; }
.co-timer b { color: var(--ink); font-family: var(--mono, ui-monospace, SFMono-Regular, Consolas, monospace); font-weight: 600; font-variant-numeric: tabular-nums; }
.co-timer svg { flex: none; width: 22px; height: 22px; transform: rotate(-90deg); }
.co-timer circle { fill: none; stroke-width: 4; }
.co-dial-track { stroke: var(--co-line); }
.co-dial { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 100; transition: stroke-dashoffset 1s linear, stroke .4s; }
/* the last two minutes: amber */
.co-timer[data-low="true"], .co-timer[data-low="true"] b { color: #efc078; }
.co-timer[data-low="true"] .co-dial { stroke: #efc078; }
.co-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .035); color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.co-note b { color: var(--ink); font-weight: 650; }
.co-status { display: flex; align-items: flex-start; gap: 9px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.co-status a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.co-status::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 2px; border: 2px solid rgba(226, 196, 108, .3); border-top-color: var(--gold); border-radius: 50%; animation: co-spin .9s linear infinite; }
.co[data-state="paid"] .co-status { color: var(--co-ok); font-weight: 650; }
.co-next { justify-self: start; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 10px; background: linear-gradient(180deg, var(--gold-soft, #f3dc93), var(--gold)); box-shadow: 0 8px 22px -10px rgba(226, 196, 108, .5), inset 0 1px rgba(255, 255, 255, .5); color: #17140a; font-size: 13px; font-weight: 800; text-decoration: none; }
.co-next:hover { background: linear-gradient(180deg, #f7e4a8, var(--gold-soft, #f1d980)); box-shadow: 0 12px 28px -10px rgba(226, 196, 108, .65), inset 0 1px rgba(255, 255, 255, .5); }
.co-next:focus-visible { outline: 3px solid var(--gold-soft, #f1d980); outline-offset: 3px; }
.co-copy:focus-visible, .co-again:focus-visible { outline: 2px solid var(--gold-soft, #f3dc93); outline-offset: 2px; }   /* our ring, never the browser's (audit #104) */
.co-next[hidden] { display: none; }
.co[data-state="paid"] .co-status::before { content: "✓"; display: grid; place-items: center; border: 0; color: #08090b; background: var(--co-ok); font-size: 10px; font-weight: 900; animation: none; }
.co:is([data-state="partial"], [data-state="failed"], [data-state="review"], [data-state="expired"]) .co-status { color: #efc078; }
/* settled by hand (refunded, days added): a still dot, no working ring */
.co[data-state="handled"] .co-status::before { content: ""; border: 0; animation: none; background: var(--muted); transform: scale(.5); }
.co:is([data-state="failed"], [data-state="review"], [data-state="partial"], [data-final]) .co-status::before, .co-keep::before { content: ""; border: 0; animation: none;
  background: linear-gradient(#08090b, #08090b) center 3px / 2px 6px no-repeat, linear-gradient(#08090b, #08090b) center 10px / 2px 2px no-repeat, #efc078; }
/* a failed payment reads red, as its border does (the approved design); partial, review and expired stay amber */
.co[data-tone="bad"] .co-status { color: #ff8b86; }
.co[data-tone="bad"] .co-status::before { background-color: #ff8b86; }
.renew-link { display: grid; gap: 14px; }
/* the same 18px tick column as the homepage and portal consent (full check 2026-10-10: flex squeezed it to 12×18) */
.renew-consent { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--muted, #a8afb9); font-size: 13px; line-height: 1.5; cursor: pointer; }
.renew-consent input { margin: 1px 0 0; }
.renew-consent a { color: var(--gold-soft, #f3dc93); text-decoration: underline; }
.renew-note { margin: 0; color: #efc078; font-size: 13px; font-weight: 650; }
.renew-note:empty { display: none; }
.co-facts { margin: 0; color: var(--muted, #a8afb9); font-size: 12.5px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.co-keep { display: flex; align-items: flex-start; gap: 9px; margin: 0; padding: 8px 11px; border: 1px solid rgba(239, 192, 120, .45); border-radius: 10px; background: rgba(239, 192, 120, .08); color: #efc078; font-size: 12.5px; font-weight: 650; line-height: 1.45; }
.co-keep::before { flex: none; box-sizing: border-box; width: 14px; height: 14px; margin-top: 2px; border-radius: 50%; }
.co-again { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--gold-soft, #f3dc93); border-radius: 999px; background: linear-gradient(180deg, var(--gold-soft, #f3dc93), var(--gold)); box-shadow: 0 8px 22px -10px rgba(226, 196, 108, .5), inset 0 1px rgba(255, 255, 255, .5); color: #17130a; font-family: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.co-again svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.co-again.is-busy svg { display: none; }
.co-again:not(:disabled):hover { box-shadow: 0 12px 28px -10px rgba(226, 196, 108, .65), inset 0 1px rgba(255, 255, 255, .5); }
.co-again:disabled { opacity: .6; cursor: wait; }
@keyframes co-spin { to { transform: rotate(360deg); } }
/* A button waiting on our server (owner 2026-10-06): a ring before its words, or in place of an icon. */
.is-busy { cursor: wait; }
.is-busy::before { content: ""; display: inline-block; box-sizing: border-box; width: 1em; height: 1em; margin-right: .45em; vertical-align: -.15em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: co-spin .8s linear infinite; }
.button.is-busy::before { margin-right: 0; }
.gr-send.is-busy svg { display: none; }
.gr-send.is-busy::before { margin: 0; }
@media (prefers-reduced-motion: reduce) { .co-status::before { animation: none; } .co-dial, .co-fill { transition: none; } .is-busy::before { animation-duration: 1.6s !important; } }
@media (max-width: 520px) {
  .co { padding: 14px; }
  .co-body { grid-template-columns: 1fr; }
  /* under the amount and the address (review 19 Oct): first, it kept the address under a small phone's fold (iPhone SE: 87 px), and
     the phone that shows it cannot scan it */
  .co-qr { order: 1; width: 150px; justify-self: center; }
  .co-addr { font-size: 12px; }
}
/* /pay/?t=TOKEN, the page the payment email opens. */
.pay-main { flex: 1 0 auto; width: min(560px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 64px; }   /* fills the window between header and footer (page.css body) */
.pay-main h1 { margin: 10px 0 8px; font-size: clamp(30px, 6vw, 40px); line-height: 1.08; letter-spacing: -.04em; }
.pay-main .eyebrow { color: var(--gold); font-size: 11px; font-weight: 850; letter-spacing: .16em; }
.pay-lead { margin: 0 0 20px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.pay-help { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.pay-help a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }

/* Ours, never the browser's (owner 2026-10-06). */
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; } }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 8px; background: rgba(255, 255, 255, .2) padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(226, 196, 108, .55); }
::selection { background: rgba(226, 196, 108, .3); }
input[type="checkbox"]:not(#_) { appearance: none; -webkit-appearance: none; display: inline-grid; place-content: center; width: 18px; height: 18px; min-height: 0; padding: 0; border: 1px solid var(--quiet, #7f8997); border-radius: 5px; background: #090b0e; box-shadow: none; cursor: pointer; }
input[type="checkbox"]:not(#_)::before { content: ""; width: 10px; height: 10px; background: #17140a; clip-path: polygon(14% 52%, 0 66%, 40% 100%, 100% 26%, 86% 12%, 40% 72%); transform: scale(0); transition: transform .12s; }
input[type="checkbox"]:not(#_):hover { border-color: #e2c46c; }
input[type="checkbox"]:not(#_):checked { border-color: #e2c46c; background: #e2c46c; }
input[type="checkbox"]:not(#_):checked::before { transform: scale(1); }
input[type="checkbox"]:not(#_):focus-visible { outline: 2px solid #e2c46c; outline-offset: 2px; }
input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #090b0e inset; -webkit-text-fill-color: #f5f3ec; caret-color: #f5f3ec; }
