/* Plans and payment (plan.js): the plan cards and the Monthly / Yearly toggle (pricing page, Plan and
   payment, the plan choice), the state at the top of Plan and payment, its dialogs and reason chips,
   the checkout and thank-you pages, and the withdrawal page's form. Loaded after styles.css on the
   public pages and after dash.css on the account, checkout and thank-you pages, so it uses only the
   tokens both define (--bg --soft --ink --ink-2 --ink-3 --line --accent --accent-soft --ok --danger)
   and falls back where dash.css alone has one. Mobbin's pricing page (measured 2026-10-18, review P6):
   a pill toggle with a sliding thumb and the saving on its own line under it; cards with name and an
   outlined badge, a one-line audience, a big price with a caption, a full-width button, a divider and
   a check list; 3 columns, then 2, then 1, by the width of their own container. */

/* Plan and feature names in running text (R1): semibold, no colour of their own. */
b.nm { font-weight: 600; }

/* ---------- the toggle ---------- */
:root { --pc-thumb: #ffffff; }
:root[data-theme="dark"] { --pc-thumb: #3a3c42; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --pc-thumb: #3a3c42; } }
.ivt-w { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ivt { position: relative; isolation: isolate; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--r); background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.ivt button { position: relative; z-index: 1; min-width: 118px; height: 40px; padding: 0 22px; border: 0; border-radius: var(--r-sm); background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: color .2s; }
.ivt button[aria-pressed="true"] { color: var(--ink); }
.ivt button:hover:not([aria-pressed="true"]) { color: var(--ink); }
/* the thumb is exactly one column wide, inside the 4px padding, and slides one width to the right */
.ivt-th { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--r-sm); background: var(--pc-thumb); box-shadow: 0 0 0 1px var(--line), 0 1px 3px rgb(21 23 27 / .12); transition: transform .2s cubic-bezier(.3, .7, .4, 1); }
[data-interval="year"] .ivt-th { transform: translateX(100%); }
.ivt-save { margin: 0; font-size: 15px; color: var(--ink-2); text-align: center; }
.ivt-save .nm { color: var(--ok); }
@media (prefers-reduced-motion: reduce) { .ivt-th, .ivt button { transition: none; } }

/* ---------- the cards ---------- */
.pp-plans { display: flex; flex-direction: column; gap: 28px; }
.pcs-w { container-type: inline-size; }
.pcs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@container (min-width: 600px) {
  .pcs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pc { grid-column: span 2; }
  .pc:nth-child(3) { grid-column: 2 / span 2; } /* two columns: the third card centred under them */
}
@container (min-width: 880px) {
  .pcs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pc, .pc:nth-child(3) { grid-column: auto; }
}
/* every card on one row grid (subgrid): name, audience, price, button and list start at the same height */
.pc { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; align-content: start; min-width: 0; padding: 28px 28px 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); color: var(--ink); }
.pc.pick { border: 1.5px solid var(--accent); padding: 27.5px 27.5px 29.5px; }
.pc-h { display: flex; align-items: center; gap: 10px; min-height: 30px; }
.pc-h h3 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.pc-tag { padding: 3px 10px; border-radius: var(--r-tag); box-shadow: inset 0 0 0 1px var(--line-2, #d6d8dc); font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.pc-for { margin: 6px 0 0; font-size: 15.5px; color: var(--ink-2); }
.pc-price { margin-top: 26px; }
.pc-amt { margin: 0; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.pc-num { display: inline-flex; overflow: hidden; padding-block: 6px; margin-block: -6px; font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.pc-num .rc { display: inline-grid; }
.pc-num .rg { grid-area: 1 / 1; }
.pc-kr { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.pc-per { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.pc-sub { margin: 8px 0 0; min-height: 1.5em; font-size: 14.5px; color: var(--ink-2); }
/* the yearly saving under the monthly amount (E4): lighter grey, and its line kept when Monthly is picked so
   the buttons don't move when the toggle flips */
.pc-save { margin: 2px 0 0; min-height: 1.5em; font-size: 14.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pc-act { margin-top: 24px; }
.pc-note { margin: 8px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.pc .pc-act .btn { width: 100%; height: 46px; padding: 0 18px; border-radius: var(--r); font-size: 16px; }
.pc .pc-act .btn:not(.sec):not(:disabled):hover { background: var(--btn-hover, #b13923); }
.pc .btn.sec, .chips-w .btn.sec { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--btn-line, #8b919a); }
.pc .btn.sec:hover:not(:disabled), .chips-w .btn.sec:hover:not(:disabled) { background: var(--soft); }
.pc .pc-act .btn:disabled { opacity: 1; background: var(--soft); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); cursor: default; }
.pc-list { list-style: none; margin: 26px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; font-size: 15.5px; line-height: 1.45; }
.pc-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: start; }
.pc-ck { width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@container (max-width: 599px) { .pc { padding: 24px 22px 26px; } .pc.pick { padding: 23.5px 21.5px 25.5px; } .pc-price { margin-top: 20px; } .pc-list { margin-top: 22px; padding-top: 20px; } }

/* the pricing page: the toggle under the title, the cards under it */
.price-head .ivt-w { margin-top: 32px; }
.price-head .ivt-w p.ivt-save { margin: 0; font-size: 15px; } /* not styles.css's .price-head p */

/* ---------- Plan and payment ---------- */
.v25 .pp { display: flex; flex-direction: column; gap: var(--s-sect, 40px); }
.v25 .page-h .nm { color: var(--ink); }
/* the state line under the title may be hidden (a banner says it instead): no reserved height then */
.v25 [data-view="plan"] .page-h { min-height: 0; }
.v25 .page-h .link { font-size: inherit; }
/* the state that waits on the student: cancelled, a change on the way, a failed card, withdrawn */
.v25 .pst { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); }
.v25 .pst-t { flex: 1; min-width: 240px; margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: 16px; line-height: 1.45; color: var(--ink); }
.v25 .pst .pst-err { flex-basis: 100%; }
.pp-pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-tag); background: var(--soft); color: var(--ink-2); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.pp-pill.warn { background: color-mix(in srgb, var(--wait, #9a5b00) 13%, var(--bg)); color: var(--wait, #9a5b00); }
.pp-pill.err { background: var(--accent-soft); color: var(--err-ink, #8c1d18); }
/* Subscription: when Cancel is hidden (a cancelled plan), the withdrawal row is the first and has no top line */
.v25 [data-pp-sub] .row[hidden] + .row { border-top: 0; }
.v25 .pp-terms { margin: -16px 0 0; font-size: 14.5px; }
.v25 .pp-terms a { font-weight: 500; }
/* the dialogs */
.v25 .dlg > p.pd-lead { margin: 4px 0 0; font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.v25 .dlg > p.small { font-size: 14px; color: var(--ink-3); }
.v25 .dlg .dlg-ok p { color: var(--ink-2); }

/* the reason chips, after a cancel or a withdrawal: optional, nothing chosen, Done skips */
.chips-w { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.chips-q { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 36px; padding: 0 14px; border: 0; border-radius: var(--r-sm); background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2, #d6d8dc); font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; }
.chip:hover { background: var(--soft); }
.chip[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 600; }
.chips-c { width: 100%; min-height: 64px; padding: 10px 14px; border: 1px solid var(--line-2, #d6d8dc); border-radius: var(--r); background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; resize: vertical; }
.chips-c:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chips-thanks { margin: 0; font-weight: 600; color: var(--ok); }
.chips-w .acts2 { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
/* Stripe's own reason step: plain radio rows. */
.rsn { display: flex; flex-direction: column; gap: 2px; }
.rsn-r { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 15.5px; color: var(--ink); cursor: pointer; }
.rsn-r input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }

/* ---------- the checkout and thank-you pages: Stripe Checkout's split ----------
   What you buy on the left (the sidebar's colour), the payment on the right, each a narrow column that
   hugs the middle. Change card, the bank's confirm and the plain thank-you states are one centred card,
   as Stripe's own save-card page is. */
.v25 .cx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; background: var(--bg); }
.v25 .cx-sum { background: var(--side); border-right: 1px solid var(--line); }
/* Like Stripe Checkout: both halves sit against the middle line at the same distance, and both
   start on one line (the summary on the left, the form on the right), top-aligned. */
.v25 .cx { --cx-head: 132px; } /* 48px padding + 40px logo row + 44px gap, where .cx-what starts */
.v25 .cx-sum .cx-col { position: sticky; top: 0; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; width: fit-content; max-width: 400px; margin-left: auto; margin-right: clamp(32px, 7vw, 112px); padding-block: 48px 28px; }
.v25 .cx-pay .cx-col { width: min(420px, 100%); margin-right: auto; margin-left: clamp(32px, 7vw, 112px); padding-block: var(--cx-head) 48px; display: flex; flex-direction: column; gap: 20px; }
.v25 .cx-top { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.v25 .cx-back { width: 32px; height: 32px; margin-left: -7px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--ink-3); }
.v25 .cx-back:hover { background: var(--hover); color: var(--ink); }
.v25 .cx-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v25 .cx-top .brand { font-size: 17px; gap: 8px; }
.v25 .cx-top .brand img { width: 22px; height: 22px; }
.v25 .cx-what { margin-top: 44px; }
.v25 .cx-sub { margin: 0; font-size: 16px; font-weight: 400; line-height: 1.4; letter-spacing: 0; color: var(--ink-2); }
.v25 .cx-price { margin: 6px 0 0; display: flex; align-items: baseline; gap: 8px; }
.v25 .cx-price b { font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.v25 .cx-price span { font-size: 15px; color: var(--ink-2); white-space: nowrap; }
/* The note wraps inside the width the price and the ticks set, so a code's long free note never
   widens the column (beta run 2026-11-05, 1). */
.v25 .cx-note { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); contain: inline-size; }
.v25 .co-pe .cx-text { margin: 0; }
.v25 .cx-note:empty, .v25 .cx-price b:empty + span:empty { display: none; }
.v25 .cx { position: relative; }
/* The theme and the language sit in the page's bottom-left corner, never inside a column. */
.v25 .cx > .cx-foot { position: absolute; left: 28px; bottom: 20px; padding: 0; z-index: 1; }
.v25 .cx-foot .ftheme { margin-left: -8px; }
.v25 .cx-foot .flang a:not([aria-current="true"]) { color: var(--ink-2); }
.v25 .cx-text { margin: 0; color: var(--ink-2); }
.v25 .cx-title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.v25 .cx-btn { margin-top: 4px; border-radius: 8px; } /* the corners of Stripe's fields (appearance()) */
.v25 .cx-legal { margin: -6px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); text-align: center; }
.v25 .cx-links { margin: 0; display: flex; justify-content: center; gap: 16px; font-size: 13px; }
.v25 .cx-links a { color: var(--ink-3); }
.v25 .cx-links a:hover { color: var(--ink); }
.v25 .cx [data-co-err] { margin: 0; }
.v25 .cx[data-mode="buy"] .cx-legal:empty { display: none; }

/* One centred card: Change card, the bank's confirm, and the thank-you page before it knows the plan. */
.v25 .cx:is([data-mode="card"], [data-mode="action"], [data-mode="plain"]) { grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: center; background: var(--side); padding: 48px 24px 96px; gap: 20px; }
.v25 .cx:is([data-mode="card"], [data-mode="action"], [data-mode="plain"]) .cx-sum { display: contents; }
.v25 .cx:is([data-mode="card"], [data-mode="action"], [data-mode="plain"]) .cx-sum .cx-col { display: contents; }
.v25 .cx:is([data-mode="card"], [data-mode="action"], [data-mode="plain"]) :is(.cx-what, .cx-legal) { display: none; }
.v25 .cx:is([data-mode="card"], [data-mode="action"], [data-mode="plain"]) .cx-top { width: min(440px, 100%); gap: 8px; } /* the name lines up with the card's text (32px inset) */
.v25 .cx:is([data-mode="card"], [data-mode="action"], [data-mode="plain"]) .cx-pay { width: min(440px, 100%); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 1px 2px var(--shadow); }
.v25 .cx:is([data-mode="card"], [data-mode="action"], [data-mode="plain"]) .cx-pay .cx-col { width: auto; margin: 0; padding: 32px; }
.v25 .cx[data-mode="action"] :is(.co-pe, .cx-btn, .cx-links) { display: none; }

/* ---------- the thank-you page ---------- */
/* Paid: the steps and the receipt start on one line, as on the checkout. */
.v25 .cx[data-mode="done"] .cx-sum .cx-col { justify-content: flex-start; }
.v25 .cx[data-mode="done"] .ty-path { margin-top: 44px; }
/* Where the student is: a vertical list of steps joined by a line; Payment done, the next one lit. */
.v25 .ty-path { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.v25 .ty-path[hidden] { display: none; }
.v25 .ty-path li { position: relative; display: flex; gap: 16px; padding-bottom: 30px; }
.v25 .ty-path li:last-child { padding-bottom: 0; }
.v25 .ty-path li::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: var(--line-2); border-radius: 2px; }
.v25 .ty-path li:last-child::before { display: none; }
.v25 .ty-path li.done::before { background: var(--ok); transform-origin: top; animation: ty-grow .5s ease-out .9s both; }
@keyframes ty-grow { from { transform: scaleY(0); } }
.v25 .ty-path i { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line-2); display: grid; place-items: center; }
.v25 .ty-path li.done i { background: var(--ok); box-shadow: none; }
.v25 .ty-path li.done i::after { content: ""; width: 10px; height: 6px; margin-top: -2px; border: 2px solid var(--bg); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.v25 .ty-path li.now i { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 5px var(--accent-soft); animation: ty-lit .4s ease-out 1.3s both; }
@keyframes ty-lit { from { box-shadow: inset 0 0 0 2px var(--line-2), 0 0 0 0 var(--accent-soft); } }
.v25 .ty-path div { display: flex; flex-direction: column; gap: 2px; padding-top: 1px; min-width: 0; }
.v25 .ty-path b { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.v25 .ty-path li.done b, .v25 .ty-path li.now b { color: var(--ink); }
.v25 .ty-path span { font-size: 14px; color: var(--ink-2); }
.v25 .ty-path span:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .v25 .ty-path li.done::before, .v25 .ty-path li.now i { animation: none; } }
.v25 .ty-done { display: flex; flex-direction: column; align-items: flex-start; }
.v25 .ty-done[hidden] { display: none; }
.v25 .ty-ok { width: 56px; height: 56px; margin-bottom: 18px; fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
/* The check draws itself once: the ring, then the tick. */
.v25 .ty-ring { stroke-dasharray: 151; stroke-dashoffset: 151; animation: ty-draw .55s cubic-bezier(.65,0,.35,1) .1s forwards; }
.v25 .ty-tick { stroke-dasharray: 36; stroke-dashoffset: 36; animation: ty-draw .35s cubic-bezier(.65,0,.35,1) .6s forwards; }
@keyframes ty-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .v25 .ty-ring, .v25 .ty-tick { animation: none; stroke-dashoffset: 0; } }
.ty-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 100; }
.v25 .ty h1 { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
.v25 .ty h1:focus { outline: none; }
.v25 .ty .sub { margin: 8px 0 0; color: var(--ink-2); }
.v25 .ty .sub:empty { display: none; }
.v25 .ty .btn.big { margin-top: 28px; }


/* ---------- the receipt and the contract, also on the public withdrawal page ---------- */
.wd-rec { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.wd-rec p { margin: 0; color: var(--ink-2); }
.wd-rec h2, .wd-rec h3 { margin: 4px 0; font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); outline: none; }
.wd-rec .big-ok { width: 44px; height: 44px; fill: none; stroke: var(--ok); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wd .kvs { list-style: none; margin: 0; padding: 0; }
.wd .kvs li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.wd .kvs li:first-child { border-top: 0; padding-top: 0; }
.wd .kvs li span { color: var(--ink-2); }
.wd .kvs li b { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.wd .wd-form { display: flex; flex-direction: column; gap: 18px; max-width: 460px; }
.wd [data-wd-done] { display: flex; flex-direction: column; gap: 22px; max-width: 520px; }
.wd [data-wd-done][hidden] { display: none; }
.wd .chips-w .btn { height: 40px; border-radius: var(--r); }
.wd .chips-w .acts2 { justify-content: flex-start; }
.wd .chips-w .btn:disabled:not(.sec) { color: #fff; opacity: .45; }
.wd [data-wd-facts]:empty { display: none; }
.wd [data-wd-signed-out] { margin-top: 16px; }

/* ---------- the bar across the very top of the dashboard (cancelled, payment failed, withdrawn) ---------- */
.v25 .shell > .topbar { grid-column: 1 / -1; }
@media (min-width: 861px) {
  .v25 .shell > .topbar { height: 44px; min-height: 0; overflow: hidden; }
  .v25 .shell:has(> .topbar:not([hidden])) > .side { height: calc(100vh - 44px); }
}
.v25 .topbar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 16px; min-height: 44px; padding: 8px 20px; font-size: 14.5px; line-height: 1.4; color: var(--ink); background: var(--soft); border-bottom: 1px solid var(--line); text-align: center; }
.v25 .topbar.warn { background: var(--accent-soft); }
.v25 .topbar[hidden] { display: none; }
.v25 .tb-t { margin: 0; }
.v25 .tb-t b { font-weight: 700; }
.v25 .tb-act { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.v25 .tb-act:disabled { opacity: .6; cursor: default; }
.v25 .topbar .pst-err { flex-basis: 100%; margin: 0; }


/* ---------- the checkout's benefit ticks and the thank-you receipt ---------- */
.v25 .cx-feat { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--ink); }
.v25 .cx-feat:empty { display: none; }
.v25 .cx-feat li { display: flex; align-items: flex-start; gap: 10px; }
/* Degree's "* Up to 10 hours a month" at the bottom of the left column, on the theme and language line;
   one line higher where the column would reach them. */
@media (min-width: 861px) {
  .v25 .cx[data-mode="buy"] > .cx-foot { position: fixed; } /* stays in the corner with the sticky column */
  .v25 .cx-sum .cx-what { flex: 1; display: flex; flex-direction: column; }
  .v25 .cx-sum .pc-foot { margin: auto 0 2px; padding: 0; text-align: left; }
}
@media (min-width: 861px) and (max-width: 1080px) {
  .v25 .cx-sum .pc-foot { margin-bottom: 40px; }
}
/* a tester's code (#499): Stripe Checkout's "Add promotion code", above the pay button */
.v25 .cx-code { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: -12px; font-size: 14px; } /* 8px under the card form, as Stripe's rows are apart */
.v25 .cx-link { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 500; cursor: pointer; }
.v25 .cx-link:hover { text-decoration: underline; }
/* The code field and Apply as one row as wide as the card form, shaped like Stripe's fields (appearance()). */
.v25 .cx-code-f { display: flex; gap: 8px; width: 100%; }
.v25 .cx-code-f[hidden] { display: none; }
.v25 .cx-code-f .field { flex: 1; height: 46px; padding: 0 14px; border-radius: 8px; }
.v25 .cx-code-f .btn { height: 46px; border-radius: 8px; font-size: 16px; box-shadow: inset 0 0 0 1px var(--line-2); }
.v25 .cx-code-on { font-weight: 600; letter-spacing: .02em; }
.v25 .cx-code .msg { margin: 0; flex-basis: 100%; }
.v25 .cx-ck { width: 18px; height: 18px; margin-top: 1px; flex: none; fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v25 .ty-rec { width: 100%; margin: 24px 0 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 14px; }
.v25 .ty-rec[hidden] { display: none; }
.v25 .ty-rec dt { font-size: 13.5px; color: var(--ink-2); }
.v25 .ty-rec dd { margin: 2px 0 0; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* Phone and narrow windows: Stripe Checkout's own phone layout — a compact band with the logo and,
   centred, "Subscribe to …" and the price on one line; then the payment; Terms · Privacy under the
   button and the theme and language at the very bottom. No benefit list. */
@media (max-width: 860px) {
  .v25 .cx[data-mode="buy"], .v25 .cx[data-mode="done"] { grid-template-columns: minmax(0, 1fr); }
  .v25 .cx-sum { border-right: 0; border-bottom: 1px solid var(--line); position: static; }
  .v25 .cx-sum .cx-col, .v25 .cx-pay .cx-col { position: static; min-height: 0; width: auto; margin: 0; padding: 20px 16px; }
  .v25 .cx-sum .cx-col { padding-bottom: 28px; }
  .v25 .cx-what { margin-top: 20px; text-align: center; }
  .v25 .cx-price { justify-content: center; }
  .v25 .cx-price b { font-size: 34px; }
  .v25 .cx-feat, .v25 .cx-sum .pc-foot { display: none; } /* the footnote goes with the list it belongs to */
  .v25 .cx > .cx-foot { position: static; justify-content: center; padding: 8px 16px 28px; margin-top: auto; }
  .v25 .cx { min-height: 100vh; min-height: 100dvh; }
  .v25 .cx:is([data-mode="card"], [data-mode="action"], [data-mode="plain"]) { display: flex; flex-direction: column; align-items: center; padding: 32px 16px 0; }
  .v25 .cx:is([data-mode="card"], [data-mode="action"], [data-mode="plain"]) .cx-pay .cx-col { padding: 24px 20px; }
  .v25 .cx[data-mode="buy"], .v25 .cx[data-mode="done"] { display: flex; flex-direction: column; }
  .v25 .cx[data-mode="buy"] .cx-sum .cx-col, .v25 .cx[data-mode="done"] .cx-sum .cx-col { display: block; }
  .v25 .cx[data-mode="done"] .cx-pay .cx-col { min-height: 0; padding-top: 28px; }
  .v25 .cx[data-mode="done"] .ty-path { margin: 20px 0 0; flex-direction: row; gap: 6px; }
  .v25 .ty-path li { flex: 1; flex-direction: column; gap: 8px; padding: 0; }
  .v25 .ty-path li::before { display: none; }
  .v25 .ty-path i { width: 100%; height: 4px; border-radius: 4px; box-shadow: none; background: var(--line-2); }
  .v25 .ty-path li.done i { background: var(--ok); }
  .v25 .ty-path li.done i::after { display: none; }
  .v25 .ty-path li.now i { background: var(--accent); box-shadow: none; animation: none; }
  .v25 .ty-path b { font-size: 12px; font-weight: 500; white-space: nowrap; }
  .v25 .ty-path li:not(.done):not(.now) b { visibility: hidden; }
  .v25 .ty-path:not(:has(.now)) b { display: none; }
  .v25 .ty-path span { display: none; }
  .v25 .topbar { padding-inline: 16px; }
}
