/*
 * The checkout (checkout.html) in grid v3, loaded after the older checkout stylesheets: the page on the edges of the
 * header, the step keys (a numeral in a ring, solid blue on the current one), panels as plates, the payment routes,
 * coins and networks as cards that light their ring when chosen (never a solid fill), tags in the v3 shape. The main
 * action of each step is the one blue key (its markup carries key--blue). Tokens of v3.css only.
 */
.page-space .co-layout { max-width: var(--wrap-wide); padding: 30px var(--gutter) 64px; gap: 22px; }
.co-lede { font-size: 1rem; color: var(--ink-2); }
.co-h { margin: 0 0 6px; font-size: 1.25rem; font-weight: 640; font-stretch: 110%; letter-spacing: -0.015em; }

/* the steps: numerals that index the one journey (challenge, profile, payment) */
.co-steps li { font-size: var(--t-sm); font-weight: 600; color: var(--ink-3); }
.co-steps li + li::before { background: var(--hair-2); }
.co-step-n { width: 28px; height: 28px; border: 0; box-shadow: inset 0 0 0 1px var(--hair-3); font: 500 12px var(--f-mono); font-stretch: 87.5%; }
.co-steps li[data-status="current"] { color: var(--ink); }
.co-steps li[data-status="current"] .co-step-n { color: var(--white); background: var(--acc); box-shadow: 0 0 0 3px var(--tint), 0 6px 16px -6px var(--glow); }
.co-steps li[data-status="done"] { color: var(--ink-2); }
.co-steps li[data-status="done"] .co-step-n { color: var(--link); background: var(--tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--link) 55%, transparent); }

/* panels are plates; the choice of step 1 holds its own plates */
.page-space .co-layout > .panel, .co-flow > .panel, .co-sum, .co-next { padding: 22px 24px; border: 0; border-radius: 4px; background: var(--plate-bg); box-shadow: var(--plate-shadow); }
.co-flow > .co-choose { padding: 0; background: none; box-shadow: none; }
.co-choose > .co-h { margin-bottom: 18px; }
.co-sum-k { margin: 2px 0 -4px; font: 600 var(--t-xs) var(--f-sans); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
/* a step's own title (network, payment) reads as a heading in sentence case, not as an eyebrow */
.page-checkout :is(.panel-head, #networkPanel) > h2.eyebrow { margin: 0; font: 640 1.15rem/1.2 var(--f-sans); font-stretch: 110%; letter-spacing: -0.01em; text-transform: none; color: var(--ink); }
#networkPanel > h2.eyebrow { margin-bottom: 14px; }
.co-sum-name { font-size: 1.25rem; font-weight: 640; font-stretch: 110%; }
.co-sum-name .mono { color: var(--ink-2); }
.co-sum-rules > div, .co-sum-lines { border-color: var(--hair); }
.co-sum-rules dt, .co-sum-lines dt { color: var(--ink-2); }
.co-sum-rules dd span, .co-sum-lines dd { font-family: var(--f-mono); font-stretch: 87.5%; font-weight: 450; color: var(--ink); }
.co-sum-rules dd span.is-words { font-family: var(--f-sans); font-stretch: 100%; font-weight: 500; }
/* the facts of a payment (exact amount, token, network): captions in sentence case, not small capitals */
.page-checkout .stats dt { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.co-sum-total b { font: 500 1.9rem var(--f-mono); font-stretch: 87.5%; color: var(--white); }
.co-sum-off { color: var(--mood-ok); }
.co-sum-safe li::before { background: var(--link); }
.co-method-list li { border: 0; box-shadow: inset 0 0 0 1px var(--hair-2); background: var(--chip-bg); color: var(--ink-2); }
.co-known, .co-code { border: 0; border-radius: 12px; background: var(--cell); box-shadow: inset 0 0 0 1px var(--hair-2); }
.co-welcome { border: 0; border-radius: 12px; color: var(--ink); background: var(--tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--link) 45%, transparent); }
.co-terms a, .sp-guest-in, #coDetailsMsg a, .co-help-links a, .co-known-edit { color: var(--link); }
.co-restricted { margin: 6px 0 0; line-height: 1.5; }
.co-restricted a { color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.co-next-n { border: 0; box-shadow: inset 0 0 0 1px var(--hair-3); font-stretch: 87.5%; color: var(--link); }
.co-next h3 { font-size: 1rem; font-weight: 640; }
.co-done-ok { color: var(--link); background: var(--tint); box-shadow: 0 0 0 1px color-mix(in srgb, var(--link) 45%, transparent), 0 12px 30px -12px var(--glow); }
.co-donebox .actions, .co-details .actions, #coContinueRow { padding: 4px 6px 9px; }

/* payment routes, coins and networks: cards with a lit ring when chosen */
.co-route, .co-coin, .co-pick {
  border: 0; border-radius: 12px; color: var(--ink);
  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);
}
.co-route[aria-checked="true"], .co-coin[aria-checked="true"], .co-pick[aria-checked="true"] {
  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 12px 26px -16px var(--glow);
}
.co-route::after, .co-coin::after, .co-pick::after { border-color: var(--hair-3); }
.co-route[aria-checked="true"]::after, .co-coin[aria-checked="true"]::after, .co-pick[aria-checked="true"]::after { border-color: var(--link); background: var(--acc); box-shadow: inset 0 0 0 3px var(--thumb-bottom), 0 0 8px var(--glow); }
.co-route-name { font-size: var(--t-sm); font-weight: 640; font-stretch: 106%; }
.co-route-hint, .co-coin-name { color: var(--ink-2); }
.co-fee, .co-testtag { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--pale); background: var(--tint); }
.co-fee[data-fees="higher"], .co-testtag { color: var(--mood-watch); background: color-mix(in srgb, var(--mood-watch) 10%, transparent); }
.co-state[data-step="ready"] { color: var(--mood-ok); }
.co-state[data-step="problem"] { color: var(--mood-watch); }
.co-address, .co-facts #amount { color: var(--ink); }
.co-qr { border-radius: 10px; box-shadow: 0 0 0 1px var(--hair-2); }
.co-bar { border-top: 1px solid var(--hair-2); background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.co-bar-total { font-family: var(--f-mono); font-stretch: 87.5%; }

@media (hover: hover) {
  .co-route:hover, .co-coin:hover, .co-pick:hover { background: linear-gradient(180deg, var(--key-top-hi), var(--key-bottom-hi)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 0 0 1px var(--hair-3), 0 2px 0 var(--ledge-2); }
  .co-route[aria-checked="true"]:hover, .co-coin[aria-checked="true"]:hover, .co-pick[aria-checked="true"]:hover { 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); }
}
@media (max-width: 1023px) {
  .page-space .co-layout { padding: 22px var(--gutter) calc(104px + env(safe-area-inset-bottom)); }
  .co-bar { bottom: 0; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }          /* no tabs under it: the space's menu is a drawer */
  .page-checkout .sel { --sel-bottom: 0px; --sel-safe: env(safe-area-inset-bottom, 0px); }
}
@media (max-width: 560px) {
  .page-space .co-layout > .panel, .co-flow > .panel, .co-sum, .co-next { padding: 18px 16px; }
  .co-flow > .co-choose { padding: 0; }
}
