/*
 * The checkout on ONE screen (founder's decision of 2026-11-02; checkout-os.js). Loaded last. A computer (861 px and
 * wider): three columns under the header, the challenge and its total | the details then the coin | the payment, the
 * page never taller than the window (a column that would not fit scrolls inside itself, never the page). A phone: the
 * summary strip, the steps Details -> Coin -> Pay, one column at a time. Tokens of v3.css; logical properties (Arabic
 * reads it right to left); never italic; hover only under (hover: hover).
 */

/* ---------------------------------------------------------------- shared */
.co-os .btn-link { display: inline-flex; align-items: center; min-height: 32px; padding: 0; border: 0; background: none; font: 600 var(--t-sm) var(--f-sans);
  color: var(--link); cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.co-os .btn-link:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.co-os .co-col-h { margin: 0; font: 640 1.05rem/1.2 var(--f-sans); font-stretch: 108%; letter-spacing: -0.01em; color: var(--ink); }
.co-col-head, .co-sum-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.co-ok { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--mood-ok); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mood-ok) 55%, transparent); }
.co-ok svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.co-ok[hidden] { display: none; }
.co-os .panel { margin: 0; }
.co-sum-close { display: none; }
.co-steps[hidden], .co-bar[hidden] { display: none; }

/* the summary (A) */
.co-sum-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.co-os .co-sum-name { margin: 0; font-size: 1.6rem; font-weight: 680; font-stretch: 112%; letter-spacing: -0.02em; }
.co-os .co-sum-name .mono { font-size: 1.05rem; color: var(--ink-2); }
.co-sum-title .v3-tag:empty { display: none; }
.co-sum-plot { flex: 0 0 auto; height: 164px; overflow: hidden; }
.co-sum-plot:empty { display: none; }
.co-os .co-sum-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.co-os .co-sum-rules > div { display: grid; gap: 1px; align-content: start; padding: 6px 10px; border: 0; border-radius: 8px; background: var(--cell); box-shadow: inset 0 0 0 1px var(--hair); font-size: var(--t-xs); }
.co-os .co-sum-rules dd { text-align: start; font-size: 0.95rem; line-height: 1.25; }
.co-os .co-sum-rules dd small { margin-top: 1px; font-size: 11.5px; line-height: 1.3; color: var(--ink-3); }
.co-money { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--hair-2); }
.co-os .co-sum-lines { padding: 0; border: 0; }
.co-os .co-sum-total { padding-top: 6px; border-top: 0; align-items: center; }
.co-os .co-sum-total b { font-size: 2rem; }
.co-os .co-promo .form-msg:empty, .co-os .form-msg:empty { display: none; }
.co-os .co-promo-row { margin-top: 0; }
.co-os .co-promo-row .text-input { min-height: 44px; }
.co-sum-fees { margin: 0; font-size: var(--t-xs); color: var(--ink-3); }
.co-os .co-help { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin: 0; padding: 0; font-size: var(--t-xs); }
.co-os .co-help-h { font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); }
.co-os .co-help-links { display: inline-flex; flex-wrap: wrap; gap: 0 14px; }
.co-os .co-help-links a { min-height: 32px; font-size: var(--t-xs); }
.co-os .co-methods { padding-top: 8px; gap: 6px; }

/* the details (B, top) */
.co-lockable { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.co-lockable:disabled { opacity: 0.72; }
.co-os .co-fields { gap: 2px 12px; }
.co-os .co-fields .field { gap: 4px; }
.co-os .co-fields .field > label { font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); }
.co-os .co-fields .text-input { min-height: 40px; }
.co-os .co-fields .form-msg { margin: 0; font-size: var(--t-xs); }
.co-os .co-terms { margin-top: 2px; font-size: 13px; line-height: 1.45; }
.co-os #coTermsErr, .co-os #coDetailsMsg { margin: 0; }
.co-invoice-note { margin: 0; font-size: var(--t-xs); color: var(--ink-3); }
.co-os .co-known { gap: 2px; padding: 10px 12px; }
.co-os .co-known-edit { min-height: 32px; }
.co-os .co-prove { margin: 0; font-size: 13px; }
.co-os .co-welcome { margin: 0; padding: 8px 12px; font-size: 13px; }
.co-os #coContinueRow { justify-content: flex-start; margin: 0; padding: 0; }
.co-os .co-details { display: grid; gap: 10px; align-content: start; }
.co-os #detailsForm { display: grid; gap: 6px; }
.co-os .co-code { gap: 4px; padding: 12px 14px; }
.co-os .co-code-h { font-size: 1rem; }
.co-os .co-code-to { margin: 0 0 4px; font-size: 13px; }
.co-code-row { display: flex; gap: 8px; align-items: center; }
.co-os .co-code-input { flex: 1; min-width: 0; max-width: none; min-height: 46px; font-size: 20px; letter-spacing: 0.28em; }
.co-os .co-code-actions { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; }

.co-phone-next { display: none; }

/* the coin (B, bottom) */
.co-os .co-coinpanel { display: grid; gap: 8px; align-content: start; }
.co-pickset { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.co-pickset[hidden] { display: none; }
.co-pickset > legend { padding: 0; margin-bottom: 6px; font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); }
#nowpPick { display: grid; gap: 8px; }
#nowpPick[hidden] { display: none; }
.co-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.co-chips[hidden] { display: none; }
.co-chip { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 10px; color: var(--ink-2);
  background: linear-gradient(180deg, var(--card-top), var(--card-bottom)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 0 0 1px var(--hair-2), 0 2px 0 var(--ledge-2);
  font: 600 var(--t-sm) var(--f-sans); cursor: pointer; }
.co-chip[aria-checked="true"] { color: var(--ink); background: linear-gradient(180deg, var(--thumb-top), var(--thumb-bottom)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px var(--ring), 0 2px 0 var(--ledge-2), 0 10px 22px -16px var(--glow); }
.co-chip:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.co-chip-text { display: inline-flex; align-items: baseline; gap: 6px; }
.co-chip-sym, .co-chip-std { font-family: var(--f-mono); font-stretch: 87.5%; font-weight: 500; }
.co-chip-std { font-size: 11.5px; color: var(--ink-3); }
.co-chip--net { min-height: 44px; }
.co-mark { flex: none; width: 20px; height: 20px; }
.co-nowp-one, .co-chosen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
.co-chosen { min-height: 44px; padding: 8px 12px; border-radius: 10px; color: var(--ink); background: var(--cell); box-shadow: inset 0 0 0 1px var(--ring); }
.co-chosen[hidden], .co-nowp-one[hidden] { display: none; }
.co-chosen b { font-weight: 500; }
.co-gokey { display: grid; gap: 6px; margin-top: 4px; }
.co-go { width: 100%; white-space: normal; text-wrap: balance; text-align: center; }   /* a long French label wraps on a 320 px phone (stress test 2026-11-08) */
.co-os .btn.sm { min-height: var(--h); }   /* the copy keys: a finger's 44 px, not style.css's 30 */
.co-os .co-due .btn.sm { max-width: 100%; white-space: normal; text-align: center; line-height: 1.2; }   /* « Copier le montant » beside the QR of a 320 px phone */
.co-go[hidden] { display: none; }
.co-need { margin: 0; font-size: 13px; color: var(--ink-2); }
.co-need:empty { display: none; }
.co-os #createMsg { margin: 0; }
.co-os .co-routes { gap: 8px; }

/* the payment (C) */
.co-wait { display: grid; gap: 14px; align-content: start; }
.co-skel { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: center; }
.co-skel-qr { aspect-ratio: 1; border-radius: 10px; background: repeating-linear-gradient(45deg, var(--hair) 0 6px, transparent 6px 12px); box-shadow: inset 0 0 0 1px var(--hair-2); }
.co-skel-lines { display: grid; gap: 10px; }
.co-skel-lines span { display: block; height: 12px; border-radius: 6px; background: var(--hair); }
.co-skel-lines span:nth-child(1) { width: 40%; }
.co-skel-lines span:nth-child(2) { width: 76%; height: 22px; }
.co-skel-lines span:nth-child(3) { width: 54%; }
.co-skel-lines span:nth-child(4) { width: 46%; height: 30px; border-radius: 9px; }
.co-wait-t { margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
.co-os .co-next { padding: 0; border: 0; background: none; box-shadow: none; }
.co-os .co-next-list { grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 10px 0 0; }
.co-os .co-next-list li { display: block; padding-inline-start: 12px; border-inline-start: 2px solid var(--hair-2); }
.co-os .co-next-list li:first-child { border-inline-start-color: var(--acc); }
.co-os .co-next h4 { margin: 0 0 2px; font-size: var(--t-sm); font-weight: 640; color: var(--ink); }
.co-os .co-next p { font-size: 12.5px; line-height: 1.45; }
.co-os .co-nowppay { display: grid; gap: 10px; align-content: start; }
.co-os .co-nowppay .panel-head { display: none; }
.co-os .co-rail { margin: 0; }
.co-os .co-state { margin: 0; }
.co-os #nowpSend { display: grid; gap: 10px; }
.co-os #nowpSend[hidden] { display: none; }
.co-os #nowpSend .co-gwgrid { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 14px; align-items: start; }
.co-os #nowpSend .co-due { order: 2; display: grid; gap: 4px; align-content: start; }
.co-os #nowpSend .co-gwpayblock { display: contents; }
.co-os #nowpQr { order: 1; grid-row: span 2; width: 168px; }
.co-os #nowpQr canvas { display: block; width: 100%; height: auto; border-radius: 10px; }
.co-os #nowpSend .co-addr { order: 3; grid-column: 1 / -1; display: grid; gap: 4px; }
.co-os #nowpSend .co-addr .note:last-of-type { margin: 0; }
.co-os .co-due-amount { margin: 0; font-size: clamp(1.15rem, 1.9vw, 1.7rem); line-height: 1.1; white-space: nowrap; overflow-wrap: normal; }   /* never cut mid-number */
.co-os .co-due .note, .co-os .co-due .actions, .co-os .co-addr .actions, .co-os .co-addr .note { margin: 0; }
.co-os .co-address { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.co-os #nowpSend .co-address { overflow-x: auto; overflow-wrap: normal; white-space: nowrap; scrollbar-width: thin; }   /* one line, never cut */
.co-os #nowpWarn { display: grid; gap: 4px; margin: 0; padding: 10px 12px; font-size: 12.5px; line-height: 1.45; }
.co-os #nowpWarn p { margin: 0; }
.co-os #nowpWarn p:first-child { font-weight: 640; color: var(--ink); }
.co-os .co-paycol .co-donebox { display: grid; justify-items: center; gap: 10px; padding-block: 28px; text-align: center; }

/* ---------------------------------------------------------------- a computer: three columns, one screen */
@media (min-width: 861px) {
  body[data-co-stage="pay"] .sp-col { height: 100dvh; min-height: 0; }
  body[data-co-stage="pay"] .sp-foot { padding: 6px var(--gutter); gap: 2px 14px; }
  body[data-co-stage="pay"] .co-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body[data-co-stage="pay"] .banners:empty { display: none; }
  .page-space .co-os { min-height: 0; padding: 14px var(--gutter) 14px; gap: 0; }
  body[data-co-stage="pay"] .co-os { flex: 1 1 auto; display: flex; flex-direction: column; }
  .co-os .co-grid:not([data-stage="challenge"]) {
    flex: 1 1 auto; min-height: 0; display: grid; grid-template-areas: none; grid-template-rows: minmax(0, 1fr);
    grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr) minmax(340px, 1.1fr); gap: 14px; align-items: stretch;
  }
  .co-os .co-grid:not([data-stage="challenge"]) > .co-col { grid-area: auto; position: static; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .co-os .co-grid:not([data-stage="challenge"]) > .co-choose { display: none; }
  .co-os .co-mid { display: grid; gap: 14px; align-content: start; grid-auto-rows: max-content; }
  .co-os .co-paycol { display: grid; align-content: start; }
  .co-os .co-sum { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; }
  .co-os .co-sum .co-money { margin-top: auto; }
  .co-os .co-mid > .panel, .co-os .co-paycol > .panel { padding: 16px 18px; border-radius: 4px; background: var(--plate-bg); box-shadow: var(--plate-shadow); }
  .co-os .co-paycol > .panel { min-height: 100%; }
  .co-steps, .co-bar { display: none !important; }
}
@media (min-width: 861px) and (max-height: 780px) {
  .co-sum-plot { display: none; }
  .co-os .co-sum-name { font-size: 1.35rem; }
  .co-os .co-sum-total b { font-size: 1.6rem; }
  .co-os .co-next p { display: none; }
  .co-skel { grid-template-columns: 96px minmax(0, 1fr); }
  .co-os #nowpSend .co-gwgrid { grid-template-columns: 136px minmax(0, 1fr); }
  .co-os #nowpQr { width: 136px; }
}
@media (min-width: 861px) and (max-width: 1180px) {
  .co-os .co-grid:not([data-stage="challenge"]) { grid-template-columns: minmax(250px, 0.85fr) minmax(300px, 1fr) minmax(320px, 1.05fr); gap: 10px; }
  .co-os .co-sum-rules { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- a phone: the strip, the steps, one column */
@media (max-width: 860px) {
  body[data-co-stage="pay"] .co-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body[data-co-stage="pay"] .sp-foot { padding: 4px var(--gutter); gap: 0 10px; font-size: 11px; line-height: 1.35; border-top: 0; }
  body[data-co-stage="pay"] .sp-col { padding-bottom: env(safe-area-inset-bottom); }      /* no tabs at the bottom: the space's menu is a drawer */
  body[data-co-stage="pay"] .co-os { padding: 0 var(--gutter) 6px; gap: 8px; }
  .co-bar { position: sticky; top: 68px; z-index: 40; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
    margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter); border-bottom: 1px solid var(--hair); background: color-mix(in srgb, var(--bg) 92%, transparent);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .co-bar-what { display: grid; min-width: 0; margin: 0; }
  .co-bar-name { overflow: hidden; font-weight: 640; color: var(--ink); white-space: nowrap; text-overflow: ellipsis; }
  .co-bar-sub { overflow: hidden; font-size: var(--t-xs); color: var(--ink-3); white-space: nowrap; text-overflow: ellipsis; }
  .co-bar-sub:empty { display: none; }
  .co-bar-total { font-size: 1.15rem; color: var(--ink); }
  .co-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
  .co-steps li { display: block; }
  .co-steps li + li::before { content: none; }
  .co-steps button { display: grid; gap: 6px; width: 100%; min-height: 44px; padding: 4px 0 0; border: 0; background: none; font: 600 var(--t-sm) var(--f-sans); color: var(--ink-3); text-align: start; cursor: pointer; }
  .co-steps button:disabled { cursor: default; }
  .co-step-bar { display: block; height: 4px; border-radius: 2px; background: var(--hair-2); }
  .co-steps li[data-status="done"] button { color: var(--ink-2); }
  .co-steps li[data-status="done"] .co-step-bar { background: color-mix(in srgb, var(--link) 55%, transparent); }
  .co-steps li[data-status="current"] button { color: var(--ink); }
  .co-steps li[data-status="current"] .co-step-bar { background: var(--acc); box-shadow: 0 0 10px var(--glow); }
  .co-os .co-grid:not([data-stage="challenge"]) { display: block; }
  .co-os .co-grid:not([data-stage="challenge"]) > .co-choose { display: none; }
  .co-os .co-mid > .panel, .co-os .co-paycol > .panel { padding: 14px 14px; border-radius: 4px; background: var(--plate-bg); box-shadow: var(--plate-shadow); }
  .co-os .co-grid[data-step="details"] #networkPanel, .co-os .co-grid[data-step="coin"] #detailsPanel,
  .co-os .co-grid:not([data-step="pay"]) > .co-paycol, .co-os .co-grid[data-step="pay"] > .co-mid { display: none; }
  .co-os .co-sum { display: none; }
  .co-os .co-sum[data-sheet="true"] { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; gap: 10px; overflow: auto; padding: calc(14px + env(safe-area-inset-top)) var(--gutter) calc(14px + env(safe-area-inset-bottom));
    border-radius: 0; background: var(--bg); }
  .co-os .co-sum[data-sheet="true"] .co-sum-close { display: inline-flex; }
  .co-os .co-sum[data-sheet="true"] #coChange { display: none; }
  .co-os .co-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-os #coContinueRow { display: none; }
  .co-os .co-phone-next { display: grid; }
  body[data-co-locked] .co-phone-next, .co-details:has(#coCode:not([hidden])) .co-phone-next { display: none; }
  .co-os .co-fields .co-wide { grid-column: 1 / -1; }
  .co-os .co-terms { font-size: 12.5px; }
  .co-os #nowpSend .co-gwgrid { grid-template-columns: 132px minmax(0, 1fr); gap: 12px; }
  .co-os #nowpQr { width: 132px; }
  .co-os .co-due-amount { font-size: 1.4rem; }
  .co-skel { grid-template-columns: 100px minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .co-os .co-chip { padding: 0 10px; }
  .co-os #nowpSend .co-gwgrid { grid-template-columns: 112px minmax(0, 1fr); }
  .co-os #nowpQr { width: 112px; }
}
@media (hover: hover) {
  .co-chip:hover { color: var(--ink); background: linear-gradient(180deg, var(--key-top-hi), var(--key-bottom-hi)); }
  .co-chip[aria-checked="true"]:hover { background: linear-gradient(180deg, var(--thumb-top), var(--thumb-bottom)); }
  .co-os .btn-link:hover { text-decoration-color: currentColor; }
}
@media (min-width: 861px) {
  .co-os .co-route { min-height: 0; padding: 10px 12px; }
  .co-os .co-route-hint { font-size: 12px; line-height: 1.4; }
}
body[data-co-coin-fixed] #routes, body[data-co-coin-fixed] .co-gokey, body[data-co-paying] .co-gokey { display: none; }
.co-os .co-rail li { text-transform: none; letter-spacing: 0; }
.co-os .co-mid .co-gokey { position: sticky; bottom: 0; z-index: 2; padding-block: 8px 2px; background: linear-gradient(180deg, transparent, var(--cell-solid) 12px); }
.co-os .co-go:disabled { opacity: 1; filter: saturate(0.35) brightness(0.62); }     /* opaque: nothing shows through the sticky key */
@media (min-width: 861px) {
  .co-os .co-methods { display: none; }
}
@media (max-width: 860px) {
  .co-os .co-route { padding: 10px 12px; }
  .co-os .co-route-hint { display: none; }
  .co-os .co-routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* the payment, compact: amount and coin on one line, the address beside its copy key */
.co-os #nowpSend .co-due { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.co-os #nowpSend .co-due::before { content: none; }
.co-os #nowpSend .co-due-coin { display: inline-flex; margin: 0; }
.co-os #nowpSend .co-due-token { padding: 0; background: none; box-shadow: none; font-size: 1rem; color: var(--ink-2); }
.co-os #nowpSend .co-due > .field-label { margin: 0; }
.co-os #nowpSend .co-addr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label key" "addr addr" "note note" "memo memo"; align-items: center; gap: 6px 10px; }
.co-os #nowpSend .co-addr > .field-label { grid-area: label; margin: 0; }
.co-os #nowpSend .co-addr > .note { grid-area: note; margin: 0; }
.co-os #nowpMemoBox { grid-area: memo; margin: 0; }
.co-os #nowpSend .co-addr > .co-address { grid-area: addr; padding: 8px 10px; border-radius: 8px; font-size: clamp(11px, 0.85vw, 13px); background: var(--cell); box-shadow: inset 0 0 0 1px var(--hair-2); }
.co-os #nowpSend .co-addr > .actions { grid-area: key; margin: 0; }
.co-os #nowpPrice { margin: 0; font-size: var(--t-xs); }
.co-os #nowpClock { font-size: var(--t-xs); }
.co-os #nowpWarn { font-size: 12px; line-height: 1.4; }
@media (max-width: 860px), (max-height: 780px) {
  .co-os #nowpSend .co-gwgrid { grid-template-columns: 120px minmax(0, 1fr); gap: 10px; }
  .co-os #nowpQr { width: 120px; }
  .co-os .co-due-amount { font-size: 1.3rem; }
  .co-os .co-nowppay { gap: 8px; }
  .co-os #nowpSend { gap: 8px; }
  .co-os #nowpSend .co-addr > .note { display: none; }
}
@media (max-width: 860px) {
  .co-bar { padding-block: 4px; }
  .co-steps button { min-height: 40px; gap: 4px; }
  .co-os #nowpPrice { display: none; }                 /* the strip above says the total */
  .co-os .co-mid > .panel, .co-os .co-paycol > .panel { padding: 12px; }
}
.co-os .co-done-next { margin: 0; font-size: var(--t-sm); color: var(--ink); }
.co-os .co-donebox .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (max-width: 860px) {
  .co-os #nowpWarn { font-size: 11.5px; line-height: 1.35; gap: 3px; padding: 8px 10px; }
}

/* ---------------------------------------------------------------- a phone: the key of each step, always in sight
 * Production bug of 2026-11-03: on an Android phone with its address bar, "Send the code" sat under the fold of a scroll
 * box inside the page and nothing said to scroll. Now the page itself scrolls (its height follows the dynamic viewport,
 * 100dvh), never a box inside it, and the key of the step ([data-co-actions]: "Send the code" / "Continue", "Show the
 * payment details") rides in a bar stuck to the bottom of the screen (the space has no tabs there: its menu is a drawer), clear of the home
 * indicator, above the keyboard (interactive-widget=resizes-content on Android; --co-kb, checkout-os.js, on iOS). The
 * step scrolls above it; at the end of the step the bar rests under its last line, nothing hidden behind it. */
@media (max-width: 860px) {
  body[data-co-stage="pay"] .sp-col { height: auto; min-height: 100dvh; }
  body[data-co-stage="pay"].page-checkout .co-os { flex: 1 0 auto; display: flex; flex-direction: column; padding-bottom: 6px; }
  body[data-co-stage="pay"] .co-bar { position: static; }                         /* scrolls with the step: the page has one sticky bar at each end */
  .co-os .co-grid:not([data-stage="challenge"]) { flex: 1 0 auto; min-height: 0; overflow: visible; }
  .co-os .co-mid [data-co-actions] {
    position: sticky; bottom: var(--co-kb, 0px); z-index: 30; gap: 6px;                 /* the foot of the screen, or the keyboard's top */
    margin: 6px calc(-13px - var(--gutter)) 0; padding: 10px calc(13px + var(--gutter)) calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--hair-2); background: color-mix(in srgb, var(--bg) 94%, transparent);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
}

/* "Continue with Google" above the details (decision D7 of 2026-11-07): the sign-in page's key (login.css), in the dark
 * theme of Google's branding guidelines: fill #131314, 1 px stroke #8E918F, text #E3E3E3 (Google's colours, not the
 * brand's), the standard-colour G; the consent line under it, then "or" before the e-mail form. */
.co-os .co-google { display: grid; gap: 8px; margin: 0 0 6px; }
.co-os .gsi-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px;
  padding: 0 12px; border: 1px solid #8e918f; border-radius: 4px; background: #131314; color: #e3e3e3;
  font-family: "Google Sans", Roboto, var(--f-sans); font-size: 14px; line-height: 20px; font-weight: 500; cursor: pointer;
}
.co-os .gsi-btn:disabled { opacity: 0.6; cursor: progress; }
.co-os .gsi-g { width: 18px; height: 18px; flex: 0 0 auto; }
.co-os .co-google-consent { margin: 0; font-size: var(--t-xs); line-height: 1.5; }
.co-os .auth-or { display: flex; align-items: center; gap: 12px; margin: 4px 0 0; color: var(--ink-3); font-size: var(--t-xs); font-weight: 560; }
.co-os .auth-or::before, .co-os .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--hair-2); }
@media (hover: hover) {
  .co-os .gsi-btn:not(:disabled):hover { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08); }
}
/* last, over the rules above: a short phone (iPhone SE 320x568, a phone held sideways): the payment's address above the
 * fold (the back key and the menu key of the top bar stay) */
@media (max-width: 860px) and (max-height: 620px) {
  .co-os #nowpSend .co-gwgrid { grid-template-columns: 100px minmax(0, 1fr); gap: 8px; }
  .co-os #nowpQr { width: 100px; }
  .co-os #nowpSend, .co-os .co-nowppay { gap: 6px; }
  .co-os .co-due .btn.sm { padding: 0 10px; }
}

/* a gift code (checkout-gift.js, founder 2026-11-09): the coin column shows « Account offered » and its key only */
body[data-gift] #networkPanel > :not(.co-col-head):not(#coGift) { display: none !important; }
body[data-gift][data-co-done] #networkPanel, body[data-gift] #coFeesNote { display: none !important; }                /* the account given: nothing left to choose */
body[data-gift] #coWait > :not(.co-next), body[data-gift] #coWait .co-next-list > li:first-child { display: none; }   /* nothing to pay: no amount, no QR */
.co-gift { display: grid; gap: 10px; padding: 4px 0 2px; }
.co-gift-h { margin: 0; font-size: 1.05rem; font-weight: 640; color: var(--ink); }
.co-gift-text { margin: 0; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.5; }
.co-gift .co-need[hidden], .co-gift[hidden] { display: none; }

