/* New order · A — layout and the order controls (colours, radii, shadows and type tokens come from dash.css) */
.noa { display: grid; gap: 16px; align-items: start; }
.noa-note { margin-bottom: 16px; }
.noa-form { min-width: 0; container-type: inline-size; }
.noa-fields { display: grid; gap: 20px; padding: 20px; }
.noa-side { display: grid; gap: 16px; min-width: 0; }

/* ---------------------------------------------------------------- platform switch
   one recessed track; the white selector slides to the chosen platform and carries three orange dots */
.pf-switch { --n: 4; --i: 0; position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); padding: 4px; border-radius: var(--r-inner); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); }
.pf-switch-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n)); border-radius: var(--r-control); background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgb(20 24 34 / .06), 0 8px 18px -8px rgb(20 24 34 / .22); transform: translateX(calc(var(--i) * 100%)); transition: transform .34s var(--ease), opacity .2s; }
.pf-switch-thumb::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 16px; height: 4px; transform: translateX(-50%); background: radial-gradient(circle, var(--orange) 1.6px, transparent 2px) 0 50% / 6px 4px repeat-x; }
.pf-switch.is-off .pf-switch-thumb { opacity: 0; }
.pf-switch-opt { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; height: 52px; padding: 0 10px 6px; border: 0; border-radius: var(--r-control); background: none; font-size: 14.5px; font-weight: 750; color: var(--muted); cursor: pointer; transition: color .2s; }
.pf-switch-opt:hover, .pf-switch-opt[aria-checked="true"] { color: var(--ink); }
.pf-switch-opt:focus-visible { outline-offset: -3px; }
.pf-switch-opt[aria-disabled="true"] { cursor: not-allowed; }
.pf-switch-logo { display: grid; place-items: center; width: 22px; height: 22px; flex: none; filter: grayscale(1); opacity: .5; transition: filter .25s, opacity .25s, transform .34s var(--ease); }
.pf-switch-logo img { width: 20px; height: 20px; }
.pf-switch-opt:hover .pf-switch-logo { opacity: .8; }
.pf-switch-opt[aria-checked="true"] .pf-switch-logo { filter: none; opacity: 1; transform: scale(1.06); }
.pf-switch-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- services: one compact row */
.svc-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.svc-card { min-height: 0; gap: 1px; align-content: center; padding: 11px 34px 11px 14px; }
.svc-card b { font-size: 14.5px; }
.svc-card small { font-size: 13px; font-variant-numeric: tabular-nums; }
.svc-card .rcard-tick { top: 12px; right: 10px; }
.svc-info { margin-top: -10px; gap: 8px; }
.svc-about { color: var(--muted); }
.svc-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-facts div { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px; border-radius: 999px; }
.svc-facts dd { margin: 0; font-size: 13px; }

/* ---------------------------------------------------------------- tier switch: standard, Europe, USA on the platform switch's track */
.tier-picker:empty { display: none; }
.tier-picker { margin-top: -6px; }
.tier-switch .pf-switch-thumb::after { bottom: 5px; }
.tier-opt { position: relative; z-index: 1; display: grid; justify-items: center; align-content: center; gap: 1px; min-width: 0; height: 52px; padding: 0 8px 7px; border: 0; border-radius: var(--r-control); background: none; color: var(--muted); cursor: pointer; transition: color .2s; }
.tier-opt:hover, .tier-opt[aria-checked="true"] { color: var(--ink); }
.tier-opt:focus-visible { outline-offset: -3px; }
.tier-opt-name { font-size: 14px; font-weight: 750; }
.tier-opt-price { font-size: 12.5px; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .2s; }
.tier-opt[aria-checked="true"] .tier-opt-price { color: var(--ink-2); }

/* ---------------------------------------------------------------- a platform's own order page (?platform=…) */
.noa-pf-title { display: inline-flex; align-items: center; gap: 14px; }
.noa-pf-title .pf-ic.lg { width: 52px; height: 52px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-1); }
.noa-pf-title .pf-ic.lg img { width: 28px; height: 28px; }
/* phones have no sidebar: the other platforms as small links under the title */
.noa-pf-links { display: none; }
@media (max-width: 759px) {
  .noa-pf-links { display: flex; gap: 8px; overflow-x: auto; margin: -6px 0 16px; padding-bottom: 2px; scrollbar-width: none; }
  .noa-pf-link { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink-2); }
  .noa-pf-link .pf-ic { width: 32px; height: 32px; border-radius: 50%; }
  .noa-pf-title { gap: 12px; }
  .noa-pf-title .pf-ic.lg { width: 44px; height: 44px; }
}

/* ---------------------------------------------------------------- amount: number and slider in one panel */
.amt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.amt-limits { font-size: var(--fs-xs); font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; }
.amt-panel { display: grid; gap: 12px; padding: 14px 18px 16px; border-radius: var(--r-inner); border: 1px solid var(--line); background: var(--surface-2); }
.amt-read { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.amt-num { position: relative; display: inline-flex; align-items: baseline; gap: 4px; min-width: 0; }
.amt-twin { position: absolute; visibility: hidden; white-space: pre; pointer-events: none; }
.amt-twin, .amt-input { font: 900 38px/1 var(--font); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.amt-input { width: 6ch; max-width: 100%; height: 52px; margin-left: -9px; padding: 0 8px; border: 1px solid transparent; border-radius: var(--r-control); background: transparent; color: var(--ink); caret-color: var(--orange); transition: border-color .2s, background-color .2s, box-shadow .2s, color .2s; }
.amt-input:hover { border-color: var(--line-2); background: var(--surface); }
.amt-input:focus { outline: none; border-color: var(--orange); background: var(--surface); box-shadow: 0 0 0 3px rgb(255 90 10 / .16); }
.amt-input::selection { background: var(--orange-line); color: var(--ink); }
.amt-input.is-out { color: var(--danger); }
.amt-unit { font-size: 16px; font-weight: 700; color: var(--muted); }
.amt-price { font-size: 21px; font-weight: 850; letter-spacing: -.025em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.amt-range.range { padding-top: 0; }

/* narrow form box: logo above the name, services as rows */
@container (max-width: 479px) {
  .noa-fields { padding: 16px; gap: 18px; }
  .pf-switch-opt { flex-direction: column; gap: 4px; height: 64px; padding: 0 4px 10px; font-size: 12px; }
  .pf-switch-thumb::after { bottom: 5px; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .svc-card { padding-block: 9px; }
  .amt-panel { padding: 12px 14px 14px; }
  .amt-input { height: 46px; }
  .amt-twin, .amt-input { font-size: 32px; }
  .amt-price { font-size: 18px; }
}
/* phones: help is an icon beside the title instead of its own row */
@media (max-width: 759px) {
  .noa-page .ph { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .noa-help { width: 44px; --h: 44px; padding: 0; justify-content: center; margin-right: -8px; }
  .noa-help svg { width: 20px; height: 20px; }
  .noa-help-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* phones: total and Pay live in the sticky bar */
@media (max-width: 759px) { .noa-side [data-place] { display: none; } }

@media (min-width: 1020px) {
  .noa-note { margin-bottom: 20px; }
  .noa { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
  .noa-side { position: sticky; top: calc(var(--top) + 20px); }
}
@media (min-width: 1240px) { .noa { grid-template-columns: minmax(0, 1fr) 320px; } }

/* Delivery: all at once or spread over days (blocks.js deliveryPicker): a switch, two sliders and a date */
.dlv { gap: 12px; }
.dlv-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dlv-toggle b { display: block; font-size: 15px; font-weight: 800; color: var(--ink); }
.dlv-toggle small { display: block; margin-top: 2px; font-size: var(--fs-sm); color: var(--muted); }
.dlv-plan { display: grid; gap: 16px; padding: 14px 18px 16px; border-radius: var(--r-inner); border: 1px solid var(--line); background: var(--surface-2); }
.dlv-plan[hidden], .dlv-sliders[hidden] { display: none; }
.dlv-sliders { display: grid; gap: 14px 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.dlv-first { max-width: 260px; }
.dlv-plan .input { background: var(--surface); font-variant-numeric: tabular-nums; }
.dlv-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dlv-sum b { color: var(--ink); }
.dlv-dot { color: var(--faint); }
