/* The checkout. Built from Planning/steps/checkout.html by
 * buildV2Checkout.js -- do not edit here, edit the harness.
 */


  /* ---- the storefront's tokens, because this is the storefront ----------
     Not a copy for its own sake: the buyer was on that page one click ago
     and this is the same shop, so it should not change colour underneath
     them at the moment they are asked for money.

     THEY ARE DECLARED HERE RATHER THAN INHERITED, and that is a limitation
     worth naming. The frame is appended to the body, and by the time it
     opens the storefront is no longer on the page anyway -- the product
     view is fetched over the top of it -- so there is no .v2-front to take
     --store from. A creator's own colour therefore does NOT reach the
     checkout yet; it gets the platform green.

     What that would take is the store's colour travelling with the offer,
     in the same data-ways attribute the prices already ride on. Small, but
     it is a change to what the components send rather than a change to
     this sheet, so it is not smuggled in here. */
  .v2-pay-back {
    --ground:#1c1c1c; --panel:#2a2a2a; --panel-2:#323232;
    --line:rgba(255,255,255,.09); --line-2:rgba(255,255,255,.055);
    --text:#e9edf2; --muted:#98a1ad; --dim:#6f7885;
    --green:#2dc26b; --green-lit:#3ad47a; --danger:#ed5565; --amber:#e0a33a;
    --font:"Lato","Helvetica Neue",Helvetica,Arial,sans-serif;
    --store:#2dc26b; --store-lit:#3ad47a; --on-store:#ffffff;
    color-scheme: dark;
  }
  .v2-pay-back, .v2-pay-back * { box-sizing:border-box; }
  .v2-pay-back a,

  .v2-pay-back a:link,

  .v2-pay-back a:visited { color:inherit; text-decoration:none; }

  /* ---- the overlay --------------------------------------------------------
     IT DIMS AND IT CLOSES, both of which the old one did neither of. The
     old #checkout was position:fixed with nothing behind it, so the page
     underneath stayed live: scrollable, clickable, tabbable. A payment
     form you can tab out of without noticing is not a modal, it is a box.

     z-index 100000 clears the platform's own navbar at 1000 and its login
     overlay at 99999. This is the one thing on the page that must be in
     front of everything, because it is the one thing that takes money. */
  .v2-pay-back { position:fixed; inset:0; z-index:100000;
    background:rgba(8,10,12,.74); backdrop-filter:blur(3px);
    display:flex; align-items:flex-start; justify-content:center;
    padding:40px 18px; overflow-y:auto; }
  .v2-pay-back[hidden] { display:none; }

  /* ---- the frame ----------------------------------------------------------
     One box for all three steps. It does not resize between them by
     accident: the steps are close enough in height that the frame is not
     jumping, and the summary line that appears at the payment step is the
     same height as the step counter it replaces. */
  /* THE FRAME STATES ITS OWN TYPE, and that is not belt and braces. In the
     harness the page did it -- body carried the colour, the family, the size
     and the line height -- and the porter drops body, because the platform
     has one and it is not ours. So on the platform this box inherited the
     page's type instead of the design's, and the page's base weight is 300.
     Everything in here came out a shade thinner than it was drawn. */
  .v2-pay-back .v2-pay { width:100%; max-width:520px; background:var(--ground);
    border:1px solid var(--line); border-radius:16px; overflow:hidden;
    box-shadow:0 24px 60px rgba(0,0,0,.55); position:relative;
    color:var(--text); font-family:var(--font); font-size:16px;
    font-weight:400; line-height:1.65; }

  /* AND THE PAGE UNDERNEATH HAS OPINIONS ABOUT HEADINGS. The platform sets
     h3 to #333, which on this panel is dark grey on dark grey: in the first
     live render the product's own name was simply not there, while every
     line around it read perfectly -- because every line around it happened
     to name a colour of its own and the h3 did not.

     One class and one element, which is the least specificity that still
     beats a bare h3, so every deliberate rule below -- each of which names
     a class -- goes on winning. font-weight:inherit rather than a number,
     because the weight a heading wants is set further down per heading and
     this only has to stop 300 arriving from outside.

     label is deliberately NOT in this list. The field labels want --muted,
     and ".v2-pay label" would outrank ".fld label" and quietly repaint
     them -- which is this same bug, made by the fix for it. */
  .v2-pay-back .v2-pay h1,

  .v2-pay-back .v2-pay h2,

  .v2-pay-back .v2-pay h3,

  .v2-pay-back .v2-pay h4 {
    color:var(--text); font-weight:inherit; }
  /* The same again for the elements the platform gives a weight of 300 to
     directly, where setting 400 on the frame does not reach them because a
     rule beats inheritance. Weight only -- no colour, or this would repaint
     the muted lines it is standing next to. */
  .v2-pay-back .v2-pay p,

  .v2-pay-back .v2-pay ul,

  .v2-pay-back .v2-pay li,

  .v2-pay-back .v2-pay span,

  .v2-pay-back .v2-pay button,

  .v2-pay-back .v2-pay label { font-weight:inherit; }

  .v2-pay-back .v2-pay-top { display:flex; align-items:center; gap:14px;
    padding:18px 20px 16px; border-bottom:1px solid var(--line-2); }
  .v2-pay-back .v2-pay-top h2 { margin:0; font-size:17px; font-weight:900;
    letter-spacing:-.01em; }
  /* THE CLOSE IS NOT A DANGER COLOUR. Leaving a checkout is an ordinary
     thing to do and the old flow painted it red and called it Cancel,
     which is the word a bank uses when something has gone wrong. */
  .v2-pay-back .v2-pay-x { margin-left:auto; flex:none; width:36px; height:36px;
    border-radius:9px; border:1px solid var(--line); background:transparent;
    color:var(--muted); cursor:pointer; font-size:17px; line-height:1;
    display:flex; align-items:center; justify-content:center; }
  .v2-pay-back .v2-pay-x:hover { color:var(--text); background:rgba(255,255,255,.05); }

  /* The step counter. Drawn only when there is more than one step left to
     take -- a signed-in buyer of a single-price product is not walked
     through a numbered process to press one button. */
  .v2-pay-back .v2-pay-steps { display:flex; gap:7px; align-items:center;
    font-size:12.5px; font-weight:700; color:var(--muted); }
  .v2-pay-back .v2-pay-steps i { width:18px; height:3px; border-radius:2px;
    background:var(--line); display:block; }
  .v2-pay-back .v2-pay-steps i.on { background:var(--store); }

  .v2-pay-back .v2-pay-body { padding:20px; }

  /* PAY STAYS IN VIEW (9 Oct 2026, Martin: you had to scroll past Stripe's
     "save my information" box before you could pay). The window is never
     taller than the screen; its body scrolls inside it, and the Pay button
     sticks to the bottom of that while there is more below it. */
  .v2-pay-back .v2-pay { display:flex; flex-direction:column; max-height:calc(100vh - 80px); }
  @supports (height:100dvh) { .v2-pay-back .v2-pay { max-height:calc(100dvh - 80px); } }
  .v2-pay-back .v2-pay-top { flex:none; }
  .v2-pay-back .v2-pay-body { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; }
  .v2-pay-back #v2-pay-go { position:sticky; bottom:0; z-index:2; box-shadow:0 0 0 10px var(--ground); }

  /* ---- the choice ---------------------------------------------------------
     A radio list that does not look like a radio list, because these are
     products and not settings. The whole row is the control -- 44px of
     target at the very least, and in practice about seventy. */
  .v2-pay-back .v2-pay-lede { margin:0 0 14px; color:var(--muted); font-size:14.5px; }

  .v2-pay-back .buy { display:block; position:relative; border:1px solid var(--line);
    border-radius:12px; padding:14px 16px; margin:0 0 10px; cursor:pointer;
    background:var(--panel); transition:border-color .14s, background .14s; }
  .v2-pay-back .buy:hover { border-color:rgba(255,255,255,.2); }
  .v2-pay-back .buy input { position:absolute; opacity:0; width:1px; height:1px;
    pointer-events:none; }
  /* CHECKED IS A BORDER AND A TICK, NOT A FILL. A filled row competes with
     the pay button for the one strong colour on the screen, and the pay
     button has to win that -- it is the thing they came to press. */
  .v2-pay-back .buy.is-on { border-color:var(--store); background:var(--panel-2); }
  .v2-pay-back .buy input:focus-visible + .buy-in { outline:2px solid var(--store-lit);
    outline-offset:6px; border-radius:8px; }

  /* THE ORDER BUMP (4 Oct 2026, Martin and Neil): one extra, under the
     options, before the card. A dashed edge marks it as an add-on rather than
     another way to buy; ticked, it takes the store colour like a chosen way.
     Never ticked to begin with. */
  .v2-pay-back .v2-pay-bump { display:block; margin:14px 0 4px; border:1.5px dashed var(--line);
    border-radius:12px; padding:13px 14px; cursor:pointer; }
  .v2-pay-back .v2-pay-bump.is-on { border-color:var(--store); border-style:solid; background:var(--panel-2); }
  .v2-pay-back .v2-pay-bump-in { display:flex; align-items:flex-start; gap:12px; }
  .v2-pay-back .v2-pay-bump input { flex:none; width:19px; height:19px; margin:2px 0 0;
    accent-color:var(--store); cursor:pointer; }
  .v2-pay-back .v2-pay-bump-w { flex:1; min-width:0; }
  .v2-pay-back .v2-pay-bump-w b { display:block; font-size:14.5px; font-weight:800; }
  .v2-pay-back .v2-pay-bump-k { display:block; margin-bottom:2px; font-size:10.5px; font-weight:700;
    letter-spacing:.08em; text-transform:uppercase; color:var(--dim); }
  .v2-pay-back .v2-pay-bump-w p { margin:3px 0 0; font-size:12.5px; color:var(--muted); line-height:1.45; }
  .v2-pay-back .v2-pay-bump-c { flex:none; font-weight:900; font-variant-numeric:tabular-nums; text-align:right; }
  /* Its own price struck through, and that this one exists only here. */
  .v2-pay-back .v2-pay-bump-c s { display:block; font-weight:400; font-size:12.5px; color:var(--dim); }
  .v2-pay-back .v2-pay-bump-c small { display:block; font-weight:700; font-size:11px; color:var(--store-lit); }
  /* The real deadline, when there is one. */
  .v2-pay-back .v2-pay-bump-t { display:block; margin-top:6px; font-size:12px; font-weight:700; color:var(--amber);
    font-variant-numeric:tabular-nums; }
  .v2-pay-back .v2-pay-peek { margin-top:7px; padding:0; border:0; background:none; color:var(--store-lit);
    font:inherit; font-size:12.5px; font-weight:700; cursor:pointer; }
  .v2-pay-back .v2-pay-peek:hover { text-decoration:underline; }
  .v2-pay-back .v2-pay-peek-v { display:block; width:100%; max-height:220px; margin-top:9px;
    border-radius:8px; background:var(--ground); }

  .v2-pay-back .buy-in { display:flex; align-items:flex-start; gap:13px; }
  .v2-pay-back .buy-tick { flex:none; width:20px; height:20px; border-radius:50%;
    border:2px solid var(--line); margin-top:2px; position:relative; }
  .v2-pay-back .buy.is-on .buy-tick { border-color:var(--store); }
  .v2-pay-back .buy.is-on .buy-tick::after { content:""; position:absolute; inset:3px;
    border-radius:50%; background:var(--store); }
  .v2-pay-back .buy-words { flex:1; min-width:0; }
  .v2-pay-back .buy-words h3 { margin:0; font-size:15.5px; font-weight:700;
    line-height:1.35; }
  /* What it is, in the buyer's words. "Course", "Download" -- the label
     the storefront card already uses, so the thing they clicked is still
     recognisably the thing they are buying. */
  .v2-pay-back .buy-kind { display:inline-block; font-size:10.5px; font-weight:700;
    letter-spacing:.09em; text-transform:uppercase; color:var(--dim);
    margin:0 0 3px; }
  .v2-pay-back .buy-say { margin:4px 0 0; font-size:13.5px; color:var(--muted); }
  .v2-pay-back .buy-cost { flex:none; text-align:right; padding-left:10px; }
  .v2-pay-back .buy-cost b { display:block; font-size:17px; font-weight:900;
    color:var(--text); font-variant-numeric:tabular-nums; }
  /* THE TERMS SIT UNDER THE NUMBER AND ARE NOT OPTIONAL. "£4.78" and
     "£4.78 a month" are different offers and the old modal wrote the
     difference as a prefix -- "Monthly: £4.78" -- next to a help icon
     explaining what monthly meant. If it needs a footnote it is in the
     wrong place. */
  .v2-pay-back .buy-cost span { display:block; font-size:12px; color:var(--dim);
    margin-top:1px; }
  /* A FREE TRIAL, under the terms (5 Oct 2026): said in the store's colour
     because it is the thing that changes what today costs. */
  .v2-pay-back .buy-cost .buy-free { color:var(--store); font-weight:700; }

  /* A bundle says what it adds, because that is the only reason to pay
     more than the product costs on its own. */
  .v2-pay-back .buy-has { margin:9px 0 0; padding:0; list-style:none; font-size:13px;
    color:var(--muted); }
  .v2-pay-back .buy-has li { display:flex; gap:8px; align-items:flex-start;
    padding:2px 0; }
  .v2-pay-back .buy-has li::before { content:""; flex:none; width:5px; height:5px;
    border-radius:50%; background:var(--dim); margin-top:8px; }
  .v2-pay-back .buy-has li.own { color:var(--dim); }
  .v2-pay-back .buy-has li.own em { font-style:normal; color:var(--store); }

  .v2-pay-back .v2-pay-or { display:flex; align-items:center; gap:12px; margin:18px 0 12px;
    font-size:11.5px; font-weight:700; letter-spacing:.09em;
    text-transform:uppercase; color:var(--dim); }
  .v2-pay-back .v2-pay-or::before,

  .v2-pay-back .v2-pay-or::after { content:""; height:1px; flex:1;
    background:var(--line-2); }

  /* ---- the summary, at the payment step ----------------------------------
     WHAT THEY CHOSE STAYS ON THE SCREEN. The old flow closed the packages
     dialog before opening the payment box, so the last thing a buyer saw
     was a card form with no mention of what it was for. */
  .v2-pay-back .v2-pay-sum { display:flex; align-items:flex-start; gap:12px;
    padding:13px 15px; border:1px solid var(--line); border-radius:12px;
    background:var(--panel); margin:0 0 18px; }
  .v2-pay-back .v2-pay-sum .w { flex:1; min-width:0; }
  .v2-pay-back .v2-pay-sum h3 { margin:0; font-size:14.5px; font-weight:700; }
  .v2-pay-back .v2-pay-sum p { margin:2px 0 0; font-size:12.5px; color:var(--dim); }
  .v2-pay-back .v2-pay-sum b { font-size:15px; font-weight:900;
    font-variant-numeric:tabular-nums; }
  .v2-pay-back .v2-pay-swap { background:none; border:0; padding:0; cursor:pointer;
    color:var(--store); font:inherit; font-size:12.5px; font-weight:700;
    text-decoration:underline; text-underline-offset:2px; }


  /* ---- the discount code --------------------------------------------------

     ON THE CHOOSING STEP AND NOT THE PAYING ONE, which is the whole point of
     where it sits. Stripe is handed an amount when the payment step opens,
     and an amount cannot be changed once a Payment Element is drawing
     against it -- so a code box beside the card field would have to tear the
     card field down and build another. Ahead of it, the code is just part of
     deciding what you are buying.

     SHUT BY DEFAULT, because most buyers do not have one and a visible empty
     box asking for a code is a page telling somebody they are paying too
     much. One quiet line opens it.

     AND IT IS NOT DRAWN AT ALL unless the offer says codes exist -- see
     `coupons` on the offer. A box that can only ever refuse is worse than no
     box. */
  .v2-pay-back .v2-pay-code { margin:14px 0 0; }
  .v2-pay-back .v2-pay-code .ask { background:none; border:0; padding:0; cursor:pointer;
    color:var(--dim); font:inherit; font-size:12.5px; font-weight:700;
    text-decoration:underline; text-underline-offset:2px; }
  .v2-pay-back .v2-pay-code .ask:hover { color:var(--text); }
  .v2-pay-back .v2-pay-code .row { display:flex; gap:8px; margin-top:9px; }
  /* AND display BEATS [hidden]. The row is hidden once a code is on, and a
     bare `display:flex` above wins against the browser's own
     `[hidden]{display:none}` every time -- so the box stayed on screen
     under the words saying it had been applied. Same reason .step[hidden]
     is restated further up this sheet. */
  .v2-pay-back .v2-pay-code .row[hidden] { display:none; }
  .v2-pay-back .v2-pay-code input { flex:1; min-width:0; min-height:44px; padding:10px 13px;
    border-radius:9px; border:1px solid var(--line); background:var(--panel);
    color:var(--text); font:inherit; font-size:15px;
    text-transform:uppercase; letter-spacing:.04em; }
  .v2-pay-back .v2-pay-code input:focus { outline:none; border-color:var(--store);
    box-shadow:0 0 0 3px color-mix(in srgb, var(--store) 22%, transparent); }
  /* .b-ghost is full width and carries a top margin for the stacked case;
     in this row it is neither, and that is a width rather than a restyle. */
  .v2-pay-back .v2-pay-code .b-ghost { width:auto; flex:none; min-height:44px;
    margin-top:0; padding:10px 18px; font-size:14px; }
  .v2-pay-back .v2-pay-code .say { margin:8px 0 0; font-size:12.5px; color:var(--dim); }
  .v2-pay-back .v2-pay-code .say.bad { color:#ffb3b3; }
  /* On the payment step it sits between the summary and the card box. */
  .v2-pay-back #v2-pay-pay .v2-pay-code { margin:0 0 14px; }
  .v2-pay-back .v2-pay-code .say.on { color:var(--green-lit, #6bdf9f); font-weight:700; }

  /* The old figure, wherever a code or a sale moved it. Struck and quiet:
     only one of the two numbers on this screen is the one being charged. */
  .v2-pay-back .was { text-decoration:line-through; color:var(--dim); font-weight:600;
    margin-right:5px; font-size:.84em; }
  /* ---- fields -------------------------------------------------------------
     The sign-in step, and the shape Stripe's own element is told to match
     through its appearance API. Stated here once so the two cannot drift:
     a hand-styled email box above a Stripe-styled card box that disagree
     about their radius is the detail that makes a payment page feel
     assembled rather than built. */
  .v2-pay-back .fld { margin:0 0 13px; }
  .v2-pay-back .fld label { display:block; font-size:12.5px; font-weight:700;
    color:var(--muted); margin:0 0 5px; }
  .v2-pay-back .fld input { width:100%; min-height:46px; padding:11px 13px;
    border-radius:9px; border:1px solid var(--line); background:var(--panel);
    color:var(--text); font:inherit; font-size:15px; }
  .v2-pay-back .fld input:focus { outline:none; border-color:var(--store);
    box-shadow:0 0 0 3px color-mix(in srgb, var(--store) 22%, transparent); }

  /* A box to tick, the size of the words beside it (3 Oct 2026). */
  .v2-pay-back .v2-pay-check { display:flex; gap:9px; align-items:flex-start; margin:0 0 14px;
    font-size:13.5px; color:var(--muted); line-height:1.45; cursor:pointer; }
  .v2-pay-back .v2-pay-check input { width:17px; height:17px; margin:1px 0 0; flex:none;
    accent-color:var(--store); }
  .v2-pay-back .v2-pay-check a { color:var(--text); text-decoration:underline; text-underline-offset:2px; }
  /* OR SIGN IN WITH (15 Oct 2026, Martin and Neil): Google, LinkedIn, Discord,
     Twitch -- whichever have their keys set (/Login/socialList/) -- under the
     email form, two to a row. */
  .v2-pay-back .v2-pay-or { display:flex; align-items:center; gap:10px; margin:16px 0 10px;
    font-size:12px; color:var(--dim); text-transform:uppercase; letter-spacing:.08em; }
  .v2-pay-back .v2-pay-or::before,

  .v2-pay-back .v2-pay-or::after { content:""; flex:1; height:1px; background:var(--line); }
  .v2-pay-back .v2-pay-soc-row { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  .v2-pay-back .v2-pay-soc-row .soc { display:flex; align-items:center; justify-content:center; gap:8px;
    height:40px; padding:0 10px; border-radius:9px; border:1px solid var(--line);
    background:rgba(255,255,255,.04); color:var(--text); font:inherit; font-size:13.5px;
    font-weight:700; cursor:pointer; white-space:nowrap; }
  .v2-pay-back .v2-pay-soc-row .soc:hover { background:rgba(255,255,255,.08); }
  .v2-pay-back .v2-pay-soc-row .soc:focus-visible { outline:2px solid var(--focus, #2563eb); outline-offset:2px; }
  .v2-pay-back .v2-pay-soc-row .soc svg { width:18px; height:18px; flex:none; }
  .v2-pay-back .v2-pay-soc-row .soc:only-child { grid-column:1 / -1; }
  /* display BEATS [hidden] -- .v2-pay-check sets one, and so might anything
     added later; the sign-in step's parts are shown and hidden by it. */
  .v2-pay-back #v2-pay-in [hidden] { display:none; }

  .v2-pay-back #v2-pay-card { min-height:120px; border:1px solid var(--line);
    border-radius:12px; background:var(--panel); padding:14px; }

  /* ---- buttons ------------------------------------------------------------
     One strong colour per screenful, and here it is the pay button. */
  .v2-pay-back .b { display:inline-flex; align-items:center; justify-content:center;
    gap:9px; width:100%; min-height:48px; padding:12px 20px;
    border-radius:9px; border:1px solid transparent; cursor:pointer;
    font:inherit; font-size:15.5px; font-weight:700;
    transition:background .15s, border-color .15s, opacity .15s; }
  .v2-pay-back .b-go { background:var(--store); color:var(--on-store); }
  .v2-pay-back .b-go:hover { background:var(--store-lit); }
  .v2-pay-back .b-ghost { background:transparent; border-color:var(--line);
    color:var(--text); margin-top:9px; }
  .v2-pay-back .b-ghost:hover { border-color:rgba(255,255,255,.26);
    background:rgba(255,255,255,.04); }
  .v2-pay-back .b:focus-visible { outline:2px solid var(--store-lit); outline-offset:3px; }
  /* IN FLIGHT IT IS NOT PRESSABLE, and it says which of the two things is
     happening. A disabled button with the same words on it reads as a
     broken button; a disabled button that says "Taking payment" reads as a
     payment being taken. This is the double-charge guard and the
     reassurance in the same control. */
  .v2-pay-back .b[disabled] { opacity:.62; cursor:default; }
  .v2-pay-back .b .spin { width:15px; height:15px; border-radius:50%;
    border:2px solid currentColor; border-right-color:transparent;
    animation:sp .7s linear infinite; }
  @keyframes sp { .v2-pay-back to { transform:rotate(360deg); } }
  @media (prefers-reduced-motion:reduce) { .v2-pay-back .b .spin { animation:none; } }

  /* ---- the small print ----------------------------------------------------
     Under the button, where it is read, and saying the thing that actually
     matters for a subscription: when the next one comes out and how to
     stop it. */
  .v2-pay-back .v2-pay-fine { margin:12px 0 0; font-size:12px; color:var(--dim);
    text-align:center; line-height:1.55; }
  .v2-pay-back .v2-pay-fine a { color:var(--muted); text-decoration:underline;
    text-underline-offset:2px; }
  .v2-pay-back .v2-pay-stripe { display:flex; align-items:center; justify-content:center;
    gap:7px; margin-top:12px; font-size:11px; font-weight:700;
    letter-spacing:.07em; text-transform:uppercase; color:var(--dim); }

  /* ---- errors -------------------------------------------------------------
     Inline, above the button, and never a bare code. The old one printed
     whatever Stripe returned into a div with no styling at all. */
  .v2-pay-back .v2-pay-bad { display:flex; gap:10px; align-items:flex-start;
    padding:11px 13px; border-radius:10px; margin:0 0 14px;
    border:1px solid color-mix(in srgb, var(--danger) 45%, transparent);
    background:color-mix(in srgb, var(--danger) 13%, transparent);
    font-size:13.5px; color:#ffd9dc; }
  .v2-pay-back .v2-pay-bad[hidden] { display:none; }

  /* ---- the total changed --------------------------------------------------
     A WINDOW OVER THE CHECKOUT, NOT A LINE IN IT (24 Oct 2026, Martin: a
     line above the card box is easy to miss, and it is the one moment the
     figure on the button is not the figure they first saw). It covers the
     frame only, so the page behind is still dimmed by the overlay, and it
     closes onto the checkout with the new total on the button. */
  .v2-pay-back .v2-pay-moved { position:absolute; inset:0; z-index:5; display:flex;
    align-items:center; justify-content:center; padding:20px;
    background:rgba(8,10,12,.78); }
  .v2-pay-back .v2-pay-moved[hidden] { display:none; }
  .v2-pay-back .v2-pay-moved .box { width:100%; max-width:400px; background:var(--ground);
    border:1px solid var(--line); border-radius:14px; padding:22px 20px 20px;
    box-shadow:0 18px 44px rgba(0,0,0,.55); text-align:center; }
  .v2-pay-back .v2-pay-moved .mark { width:40px; height:40px; margin:0 auto 10px;
    border-radius:50%; display:flex; align-items:center; justify-content:center;
    font-size:19px; color:var(--amber);
    background:color-mix(in srgb, var(--amber) 16%, transparent); }
  .v2-pay-back .v2-pay-moved h3 { margin:0 0 8px; font-size:17px; font-weight:900; }
  .v2-pay-back .v2-pay-moved p { margin:0 0 12px; font-size:14px; color:var(--muted);
    line-height:1.55; }
  .v2-pay-back .v2-pay-moved .tot { color:var(--text); font-size:15px; font-weight:700;
    margin-bottom:16px; }

  /* ---- free, and already owned -------------------------------------------
     TWO STATES THAT MUST NOT REACH STRIPE. A zero-cost product going
     through a card form asks somebody for a card so it can charge them
     nothing, and a product already owned should open rather than sell. */
  .v2-pay-back .v2-pay-note { text-align:center; padding:6px 0 2px; }
  .v2-pay-back .v2-pay-note .big { font-size:34px; line-height:1; margin-bottom:10px; }
  .v2-pay-back .v2-pay-note h3 { margin:0 0 6px; font-size:17px; font-weight:900; }
  .v2-pay-back .v2-pay-note p { margin:0 0 18px; color:var(--muted); font-size:14.5px; }

  /* ---- paid -----------------------------------------------------------------
     THE END OF THE PURCHASE, IN THE WINDOW IT WAS MADE IN (5 Oct 2026, Martin).
     The buyer used to be sent to Purchases with a ten-second line at the top,
     which did not feel like anything had finished. Now: a tick, what they
     bought, what was taken and on which card, the receipt, and two ways on --
     straight into it, or to everything they have. Nothing moves until they
     choose. */
  .v2-pay-back .v2-pay-done { text-align:center; padding:4px 0 2px; }
  .v2-pay-back .v2-pay-done .tick { width:54px; height:54px; margin:0 auto 12px; border-radius:50%;
    display:grid; place-items:center; font-size:26px; font-weight:900; color:var(--on-store);
    background:var(--store); }
  .v2-pay-back .v2-pay-done .tick.wait { background:transparent; border:3px solid var(--line);
    border-top-color:var(--store); animation:sp .8s linear infinite; }
  @media (prefers-reduced-motion:reduce) { .v2-pay-back .v2-pay-done .tick.wait { animation:none; } }
  .v2-pay-back .v2-pay-done h3 { margin:0 0 4px; font-size:19px; font-weight:900; }
  .v2-pay-back .v2-pay-done .sub { margin:0 0 16px; color:var(--muted); font-size:14px; }
  .v2-pay-back .v2-pay-done-items { list-style:none; margin:0 0 14px; padding:0; display:flex;
    flex-direction:column; gap:8px; text-align:left; }
  .v2-pay-back .v2-pay-done-items li { display:flex; align-items:center; gap:12px; padding:9px 11px;
    border:1px solid var(--line); border-radius:11px; background:var(--panel); }
  .v2-pay-back .v2-pay-done-items img { width:64px; height:36px; flex:0 0 64px;
    border-radius:6px; object-fit:cover; background:var(--line); }
  .v2-pay-back .v2-pay-done-items b { font-size:14.5px; font-weight:900; line-height:1.3; }
  .v2-pay-back .v2-pay-done-facts { margin:0 0 14px; display:grid; grid-template-columns:auto 1fr;
    gap:6px 14px; text-align:left; font-size:13.5px; }
  .v2-pay-back .v2-pay-done-facts dt { color:var(--muted); }
  .v2-pay-back .v2-pay-done-facts dd { margin:0; text-align:right; font-weight:700;
    font-variant-numeric:tabular-nums; }
  .v2-pay-back .v2-pay-done .mail { margin:0 0 18px; color:var(--muted); font-size:13px; line-height:1.5; }
  .v2-pay-back .v2-pay-done .mail a { color:var(--text); text-decoration:underline; text-underline-offset:2px; }
  .v2-pay-back .v2-pay-done .b + .b { margin-top:8px; }
  /* .b sets display, which beats the hidden attribute. */
  .v2-pay-back .v2-pay-done .b[hidden],

  .v2-pay-back .v2-pay-done [hidden] { display:none; }

  .v2-pay-back .step[hidden] { display:none; }

  /* ---- the phone ----------------------------------------------------------
     A payment sheet on a phone comes up from the bottom and fills what it
     needs, rather than floating in the middle with the page showing round
     the edges. The keyboard takes half the screen the moment a field is
     focused, so the frame is pinned to the bottom where the fields stay
     above it. */
  @media (max-width:620px) {
    .v2-pay-back { padding:0; align-items:flex-end; }
    .v2-pay-back .v2-pay { max-width:none; border-radius:16px 16px 0 0;
      border-bottom:0; max-height:94vh; display:flex; flex-direction:column; }
    .v2-pay-back .v2-pay-body { overflow-y:auto; }
    /* 44px, like every other target on a touch screen. The close is the
       one control on this sheet somebody presses in a hurry -- to get out
       of a payment -- and it was the only one under the minimum, at 36.
       The icon stays its own size; the box around it grows. */
    .v2-pay-back .v2-pay-x { width:44px; height:44px; }
  }



