/*
 * The checkout in the site's skin (founder 2026-11-18: « faut la rendre premium »). The skin itself (faces, navy
 * tokens, ground, header, fields, keys) is skin-navy.css, shared with the partner door and the partner space; this
 * sheet is what belongs to the checkout alone. Loaded LAST by checkout.html, right after skin-navy.css. NO green and
 * NO violet: what is confirmed reads in azure. Logical properties, never italic, hover only under (hover: hover).
 */

/* ---------- the page's voice: headings in the display face, heavy and narrow ---------- */
.page-checkout :is(#heading, .co-os .co-col-h, .co-h, .co-os .co-sum-name, .co-os .co-code-h, .co-next-h, .co-done-h, .sel-sum-title),
.page-checkout :is(.panel-head, #networkPanel) > h2.eyebrow { font-family: var(--f-display); font-weight: 760; font-stretch: 92%; letter-spacing: -0.01em; color: var(--white); }
.page-checkout .co-os .co-col-h { font-size: 1.2rem; }
.page-checkout .co-os .co-sum-name { font-size: 1.75rem; }
.page-checkout .co-os .co-sum-name .mono { font-family: var(--f-sans); font-size: 1.1rem; font-weight: 560; color: var(--ice); }
.page-checkout .co-sum-total b, .page-checkout .co-os .co-due-amount, .page-checkout .sel-price-v { font-family: var(--f-display); font-weight: 720; font-stretch: 96%; letter-spacing: -0.01em; }

/* ---------- surfaces: glass plates with a round corner, navy cells and fields ---------- */
.page-checkout :is(.co-layout > .panel, .co-flow > .panel, .co-grid > .panel, .co-mid > .panel, .co-paycol > .panel, .co-sum, .sel-sum, .plate) { border-radius: var(--r-lg); }
.page-checkout .co-grid > .co-choose { border-color: transparent; border-radius: 0; background: none; box-shadow: none; }   /* the choices sit on the page, the chosen account in its plate */
.page-checkout .co-os .co-next, .page-checkout .co-os .co-sum[data-sheet="true"] { border-radius: 0; }
@media (max-width: 860px) {
  .page-checkout :is(.co-mid > .panel, .co-paycol > .panel) { border-radius: 16px; }
  .page-checkout .sel-os.sel-live .sel-sum { border-radius: 16px 16px 0 0; }
  .page-checkout .co-os .co-mid [data-co-actions] { margin-block-end: -13px; }   /* the plate runs into its key bar (13px: the bar's own side offset, checkout-os.css): no round edge under it */
}
.page-checkout .co-os .co-sum-rules > div { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--hair); }
.page-checkout .co-skel-qr { border-radius: 14px; }
.page-checkout .co-warn { background: color-mix(in srgb, var(--warn) 9%, var(--g0)); }
.page-checkout .co-os .co-next-list li:first-child { border-inline-start-color: var(--azure); }

.page-checkout :is(.co-chip, .co-route, .co-coin, .co-pick) { border-radius: 12px; }

/* ---------- a phone: the choice in one view down to 360 x 740 (nothing cut on the side, no box scrolling inside) ---------- */
@media (max-width: 860px) {
  .page-checkout .sel-os :is(.sel-main, .sel-choices, .sel-step) { grid-template-columns: minmax(0, 1fr); min-width: 0; }   /* the two option switches never widen the page */
  .page-checkout .sel-os :is(.sel-legend, .sel-k) { line-height: 1.15; }
  .page-checkout .sel-os .sel-size:last-child .sel-rec { inset-inline: auto 0; margin-inline: 0; }   /* a mark wider than the last option grows inward, never past the row */
}
@media (max-width: 860px) and (max-height: 760px) {
  .page-checkout .sel-os :is(.v3-seg__opt, .sel-kind, .sel-sizes .sel-size) { min-height: 42px; }   /* a short phone: the room goes to the line */
  .page-checkout .sel-os .sel-rules { padding-block: 5px; }
  .page-checkout .sel-os .sel-plot { min-height: 96px; }                                             /* the drawing's own floor (space-line.js) */
  .page-checkout .sel-os .sel-dl { margin-top: 4px; }
  .page-checkout .sel-os .sel-rule { padding-block: 3px; }
  .page-checkout .sel-os .sel-rules:not(.is-open) .sel-allrules { display: flex; align-items: flex-start; inset-block-start: 0; padding-block-start: 2px; }   /* clear of the line's first label */
}

/* ---------- a 320 x 568 phone (iPhone SE): the payment address whole on arrival at the invoice (stress_mobile.py) ---------- */
@media (max-width: 860px) and (max-height: 600px) {
  .page-checkout .co-os #nowpSend .co-gwgrid { row-gap: 4px; }
  .page-checkout .co-os #nowpSend .co-due { gap: 2px; }
  .page-checkout .co-os #nowpSend #nowpClock { font-size: 11px; line-height: 1.3; }
  .page-checkout .co-os .co-paycol > .panel { padding-block: 8px; }
}

/* a phone (audit 2026-11-20): no field under 16 px, else iOS Safari zooms the page when it takes the focus (the code's
   own large field excepted); the steps and « Sign in » reach the finger's 44 px (the link's reach grows, not its line) */
@media (pointer: coarse) {
  .page-checkout .text-input:not(.co-code-input) { font-size: 16px; }
}
@media (max-width: 860px) {
  .page-checkout .co-steps button { min-height: 44px; }
  .page-checkout .sp-guest-in { display: inline-block; padding-block: 11px; margin-block: -11px; }
}
