/* Spytay design code, session 17b: the order flow (/order, /o/{token}). Tokens of both themes come from ds.css; every rule is scoped to .op (v1 markup reused by the macros is never restyled globally). */
:root{--er:#9B1C12;--er-bg:#FDE6E3;--wn-bg:#FFF1D6;--ok-bg:#E4F4EB}
@media screen{[data-theme=dark]{--er:#FF9B8F;--er-bg:#3D1A17;--wn-bg:#3A2B0C;--ok-bg:#12301F}}
.skip{position:absolute;left:12px;top:-100px;z-index:60;padding:12px 16px;border-radius:10px;background:var(--surface);color:var(--text);font-weight:600}
.skip:focus{top:8px}
html:not(.js) [data-copy]{display:none}

/* page, type, flash */
.op{padding-top:20px;padding-bottom:56px}
.op-in{max-width:880px}
.op h1{font-size:clamp(1.625rem,1.25rem + 1.7vw,2.5rem);line-height:1.1;letter-spacing:-.03em;margin-top:8px;max-width:24ch}
.op h2{font-size:clamp(1.25rem,1.1rem + .7vw,1.625rem);line-height:1.2;letter-spacing:-.02em;max-width:none}
.op h3{font-size:1.0625rem;line-height:1.3;letter-spacing:0}
.op p{margin-top:10px}
.op .lead{font-size:1rem;color:var(--text-2);max-width:62ch}
.op .muted{color:var(--text-2)}
.op .small{font-size:.875rem}
.op .eyebrow{font-size:.8125rem;font-weight:600;color:var(--text-3);margin:0}
.op .flash{margin:0 0 14px;padding:12px 14px;border-radius:12px;background:var(--ok-bg);color:var(--text);font-size:.9375rem;box-shadow:inset 0 0 0 1px var(--line)}
.op .flash-danger{background:var(--er-bg)}
.op .flash-warning{background:var(--wn-bg)}
.op .flash p{margin:0;color:var(--text)}
.op .flash ul{list-style:disc;padding-left:20px;margin-top:6px}
.op .recall{display:flex;flex-wrap:wrap;gap:0 12px;align-items:center;justify-content:space-between;margin:0 0 14px;padding:4px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);font-size:.9375rem}
.op .recall a,.op .back-to-cabinet a{display:inline-flex;align-items:center;min-height:44px;font-weight:650}
.op .back-to-cabinet{margin:0}
.op .stepper{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.op .stepper li{padding-top:8px;box-shadow:inset 0 3px 0 var(--line);font-size:.8125rem;font-weight:600;color:var(--text-3)}
.op .stepper [aria-current]{box-shadow:inset 0 3px 0 var(--accent);color:var(--text)}

/* the form: packages, summary, click-wrap, the one button */
.op .of{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin-top:18px}
.op fieldset{min-width:0;margin:0;padding:0;border:0}
.op legend{padding:0;margin-bottom:8px;font-size:.875rem;font-weight:650;color:var(--text-3)}
.op .pkgs{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.op .pkg{position:relative;min-width:0}
.op .pkg input{position:absolute;top:0;left:0;width:24px;height:24px;margin:0;opacity:0}
.op .pkg label{display:grid;grid-template-columns:24px minmax(0,1fr) auto;column-gap:12px;row-gap:2px;align-items:center;height:100%;min-height:68px;padding:12px 14px;border:1.5px solid var(--line-ctl);border-radius:14px;background:var(--surface);cursor:pointer}
.op .pkg label::before{content:"";grid-column:1;grid-row:1/3;width:22px;height:22px;border-radius:50%;border:2px solid var(--line-ctl);background:var(--surface)}
.op .pkg-title{grid-column:2;grid-row:1;font-weight:700}
.op .pkg-price{grid-column:3;grid-row:1;font-size:1.25rem;font-weight:800;text-align:right}
.op .pkg-note{grid-column:2/4;grid-row:2;font-size:.8125rem;color:var(--text-2)}
.op .pkg input:checked+label{border-color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 1px var(--accent)}
.op .pkg input:checked+label::before{border-color:var(--accent-text);background:radial-gradient(circle,var(--accent-text) 0 42%,var(--surface) 46%)}
.op .pkg input:focus-visible+label{outline:3px solid var(--focus);outline-offset:3px}
.op .sum{margin:0}
.op .sum:not(.is-selected){display:none}
@supports selector(:has(*)){
 .op .sum.sum{display:none}
 .op .of:has(#pkg-report:checked) .sum-report{display:block}
 .op .of:has(#pkg-monitoring:checked) .sum-monitoring{display:block}
 .op .of:has(#pkg-actions:checked) .sum-actions{display:block}
}
.op dt{font-size:.875rem;font-weight:600;color:var(--text-2)}
.op dd{margin:0}
.op .sum dl{display:grid;gap:8px;margin:14px 0}
.op .sum dl div{display:flex;justify-content:space-between;gap:12px}
.op .sum dd{font-weight:650;text-align:right}
.op .sum .flash{margin:0 0 10px}
.op .next-title{margin:16px 0 6px}
.op .next-steps{list-style:decimal;display:grid;gap:6px;padding-left:20px;font-size:.9375rem;color:var(--text-2)}
.op .clickwrap{margin:0;font-size:.875rem;line-height:1.5;color:var(--text-2)}
.op .pay-label:not(.is-selected){display:none}
@supports selector(:has(*)){
 .op .pay-label.pay-label{display:none}
 .op .of:has(#pkg-report:checked) .pay-report{display:inline}
 .op .of:has(#pkg-monitoring:checked) .pay-monitoring{display:inline}
 .op .of:has(#pkg-actions:checked) .pay-actions{display:inline}
}
.op .btn-lg{width:100%;min-height:56px;font-size:1.125rem}
.op .secure{display:flex;align-items:center;gap:8px;margin:0;font-size:.875rem;color:var(--text-2)}
.op .secure svg{color:var(--ok)}
.op .of>.small{margin:0}
.op .dl-conf{margin-top:14px}
.op .dl-conf p{margin:8px 0 0}

/* fields, hints, errors, the consent check, disclosures */
.op .stack{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin-top:18px}
.op .field{display:grid;gap:6px;min-width:0}
.op .field p{margin:0}
.op .field label,.op .check-text{font-size:.9375rem;font-weight:600}
.op .field input,.op .field textarea,.op .copy-row input,.op textarea.kit-code{display:block;width:100%;min-height:44px;padding:10px 12px;border:1.5px solid var(--line-ctl);border-radius:10px;background:var(--surface);color:var(--text);font:inherit}
.op textarea{resize:vertical;line-height:1.45}
.op [aria-invalid=true]{border-color:var(--er)}
.op .hint{font-size:.8125rem;color:var(--text-2)}
.op .field-error{margin:0;font-size:.875rem;font-weight:600;color:var(--er)}
.op .check{display:flex;align-items:flex-start;gap:12px;min-height:44px}
.op .check input{flex:none;width:24px;height:24px;margin:10px 0 0;accent-color:var(--accent-text)}
.op .check-text{flex:1 1 0;min-width:0;padding:10px 0;font-weight:400;line-height:1.5}
.op .brief-lock{margin:0}
.op summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;list-style:none;cursor:pointer;font-weight:600}
.op summary::-webkit-details-marker{display:none}
.op summary::after{content:"";flex:none;width:10px;height:10px;border-right:2px solid var(--text-3);border-bottom:2px solid var(--text-3);transform:translateY(-3px) rotate(45deg);transition:transform .16s}
.op details[open]>summary::after{transform:translateY(2px) rotate(225deg)}
.op .brief-more{padding-top:4px;border-top:1px solid var(--line)}
.op .brief-more[open]>summary{margin-bottom:8px}

/* the order card, timeline, progress */
.op .order-status{margin-top:12px}
.op .order-status h1{margin-top:6px}
.op .status-meta{font-size:.9375rem;color:var(--text-2);overflow-wrap:anywhere}
.op .btn-row{margin-top:16px}
.op .paid-panel{margin-top:14px;padding:12px 14px;border-radius:12px;background:var(--surface-2);font-size:.9375rem}
.op .paid-panel p{margin:0;color:var(--text)}
.op .stages{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin-top:20px}
.op .stage{display:grid;grid-template-columns:24px minmax(0,1fr);column-gap:12px;row-gap:2px;min-width:0}
.op .stage::before{content:"";grid-column:1;grid-row:1/3;width:22px;height:22px;border-radius:50%;border:2px solid var(--line-ctl);background:var(--surface)}
.op .stage-label{grid-column:2;grid-row:1;font-weight:650;color:var(--text-2)}
.op .stage-hint{grid-column:2;grid-row:2;font-size:.875rem;color:var(--text-2)}
.op .stage.is-current .stage-label{color:var(--text)}
.op .stage.is-current::before{border-color:var(--accent-text);background:radial-gradient(circle,var(--accent-text) 0 40%,var(--surface) 44%)}
.op .stage.is-done::before{border-color:var(--ok);background:var(--ok)}
.op .stage.is-done::after{content:"";grid-column:1;grid-row:1/3;align-self:start;justify-self:start;margin:4px 0 0 8px;width:5px;height:10px;border-right:2px solid var(--surface);border-bottom:2px solid var(--surface);transform:rotate(45deg)}
.op .progress-row{display:grid;gap:6px;margin-top:18px}
.op progress{width:100%;height:12px;appearance:none;border:0;border-radius:6px;background:var(--surface-2);overflow:hidden}
.op progress::-webkit-progress-bar{background:var(--surface-2);border-radius:6px}
.op progress::-webkit-progress-value{background:var(--accent);border-radius:6px}
.op progress::-moz-progress-bar{background:var(--accent);border-radius:6px}
.op .progress-text{margin:0;font-size:.875rem;color:var(--text-2)}
.op .sk-report{display:grid;gap:10px;margin-top:20px}
.op .skeleton{display:block;border-radius:8px;background:var(--surface-2)}
.op .sk-title{height:28px;width:60%}
.op .sk-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.op .sk-tile{height:64px}
.op .sk-line{height:14px}
.op .sk-short{height:14px;width:40%}
.op .save-link,.op .billing,.op .contract{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.op .save-link p,.op .billing p{margin:0 0 10px;font-size:.9375rem;color:var(--text-2)}
.op .copy-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.op .copy-row input{flex:1 1 240px;min-width:0;width:auto}
.op .contract-list{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:14px 0}
.op .contract-list dd{overflow-wrap:anywhere}
.op ul.reports{list-style:disc;padding-left:20px;margin-top:10px}
.op ul.reports a{display:inline-flex;align-items:center;min-height:44px}

/* tables */
.op .table-wrap{min-width:0;overflow:auto;max-height:75vh;margin-top:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.op .table-hint{margin:0;padding:6px 12px 0;font-size:.8125rem;color:var(--text-3)}
.op table.data{width:100%;border-collapse:separate;border-spacing:0}
.op table.data,.op table.data *{font-size:.8125rem;line-height:1.35}
.op table.data th,.op table.data td{padding:8px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.op table.data thead th{position:sticky;top:0;z-index:1;background:var(--surface-2);color:var(--text-2);font-weight:600;white-space:nowrap}
.op table.data tbody th{font-weight:600;white-space:nowrap}
.op table.data tr>:first-child{position:sticky;left:0;z-index:2;background:var(--surface);border-right:1px solid var(--line)}
.op table.data thead th:first-child{z-index:3;background:var(--surface-2)}

/* the kit */
.op .kit{margin-top:28px}
.op .kit-head p{max-width:70ch}
.op .kit-downloads{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.op .kit-downloads li{flex:1 1 100%}
.op .kit-downloads .btn{width:100%}
.op .kit-changes,.op .kit-versions{margin-top:16px}
.op .kit-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin-top:16px}
.op .kit-section{min-width:0}
.op .kit-why{color:var(--text-2)}
.op .kit-section ul{list-style:disc;display:grid;gap:4px;padding-left:20px;margin-top:10px}
.op .kit-steps{list-style:decimal;display:grid;gap:8px;padding-left:20px;margin-top:10px}
.op .kit-faq dt{margin-top:12px;font-size:.9375rem;color:var(--text)}
.op .kit-faq dd{margin-top:2px;overflow-wrap:anywhere}
.op .kit-page{margin-top:14px}
.op .kit-page h4{margin:0;font-size:1rem}
.op .kit-code{margin-top:10px;min-height:160px;font:.8125rem/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow-wrap:anywhere}
.op .kit-copy{margin-top:12px}
.op .kit-section>p:last-child{margin-top:12px}
.op .kit-versions li{display:flex;flex-wrap:wrap;align-items:center;gap:0 12px;min-height:44px}
.op .kit-versions a{display:inline-flex;align-items:center;min-height:44px}
.op .kit-versions ul{margin-top:6px}

@media (min-width:600px){
 .op .btn-lg{width:auto;min-width:300px}
 .op .contract-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 .op .contract-wide{grid-column:1/-1}
 .op .kit-downloads li{flex:0 0 auto}
 .op .kit-downloads .btn{width:auto}
}
@media (min-width:720px){
 .op .stages{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);align-items:start}
 .op .stage{grid-template-columns:minmax(0,1fr);row-gap:6px;align-content:start}
 .op .stage::before{grid-column:1;grid-row:1}
 .op .stage-label{grid-column:1;grid-row:2}
 .op .stage-hint{grid-column:1;grid-row:3}
 .op .stage.is-done::after{grid-row:1}
}
@media (min-width:1024px){
 .op .kit-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
 .op .op-in{margin-inline:auto}
 .op .op-wide{max-width:none}
 .op .of{grid-template-columns:minmax(0,1fr) minmax(320px,360px);grid-template-rows:repeat(4,auto) minmax(0,1fr);grid-template-areas:"pk sm" "cw sm" "fa sm" "se sm" "sl sm";gap:16px 32px;align-items:start}
 .op .of .pks{grid-area:pk}
 .op .of .sums{grid-area:sm}
 .op .of .clickwrap{grid-area:cw}
 .op .of .form-actions{grid-area:fa}
 .op .of .secure{grid-area:se}
 .op .of>.small{grid-area:sl}
 .op .pkgs{grid-template-columns:minmax(0,1fr)}
 .op .pkg label{min-height:60px;padding:10px 14px}
 .op .pkg-price{white-space:nowrap}
}
