/* ============================================================
   PIXELPEAK checkout. Builds on store.css (tokens, fields, buttons, sums) and products.css is not needed.
   ============================================================ */

/* ---------- Header: logo, the four steps, a lock ---------- */
.co-steps{display:flex;align-items:center;gap:6px;margin:0 auto;padding:0;list-style:none}
.co-steps li{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:600;color:var(--muted)}
.co-steps li + li::before{content:"";width:34px;height:2px;margin-inline-end:4px;border-radius:2px;background:var(--line);transition:background .3s ease}
.co-steps li.is-done + li::before{background:var(--brand)}
.co-step-n{position:relative;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;border:1.5px solid var(--line);background:#fff;font-size:11.5px;transition:background .3s ease,border-color .3s ease,color .3s ease}
.co-step-n .ico{position:absolute;font-size:14px;stroke-width:2.4;opacity:0;transform:scale(.5);transition:opacity .25s ease,transform .35s cubic-bezier(.3,1.6,.5,1)}
.co-steps li.is-done{color:var(--ink)}
.co-steps li.is-done .co-step-n{background:var(--brand);border-color:var(--brand);color:#fff}
.co-steps li.is-done .co-step-n b{opacity:0}
.co-steps li.is-done .co-step-n .ico{opacity:1;transform:none}
.co-secure{display:inline-flex;align-items:center;gap:7px;height:34px;padding-inline:12px;border-radius:999px;background:#E8F3EA;color:#2F6B3D;font-size:12px;font-weight:650;white-space:nowrap}
.co-secure .ico{font-size:15px}

/* ---------- Page ---------- */
.co-main{padding-bottom:30px}
.co-top{margin-top:22px}
.co-back{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;color:var(--sub)}
.co-back:hover{color:var(--brand-ink)}
.co-back .ico{font-size:15px}
.co-top h1{margin-top:10px;font-size:clamp(26px,3vw,36px);text-transform:uppercase}
.co-who{margin:6px 0 0;font-size:13px;color:var(--sub)}
.co-who a{font-weight:650;color:var(--brand)}
.co-layout{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:26px;align-items:start;margin-top:20px}
.co-form{display:grid;gap:14px;min-width:0}

/* a numbered section */
.co-card{padding:22px;border:1px solid var(--line-soft);border-radius:var(--r-xl);background:#fff;transition:border-color .3s ease,opacity .3s ease}
.co-head{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.co-head h2{font-size:17px;letter-spacing:.04em;text-transform:uppercase}
.co-head p{margin:3px 0 0;font-size:12.5px;color:var(--muted)}
.co-num{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:12px;background:var(--brand-soft);color:var(--brand-ink);font-family:var(--f-head);font-size:15px;font-weight:800;transition:background .3s ease,color .3s ease}
.co-ok{display:grid;place-items:center;width:28px;height:28px;margin-inline-start:auto;flex:none;border-radius:50%;background:#E8F3EA;color:var(--ok);opacity:0;transform:scale(.5);transition:opacity .25s ease,transform .4s cubic-bezier(.3,1.6,.5,1)}
.co-ok .ico{font-size:15px;stroke-width:2.4}
.co-card.is-done .co-ok{opacity:1;transform:none}
.co-card.is-done .co-num{background:var(--brand);color:#fff}
.co-card.is-muted{opacity:.45}
.co-card.is-muted .co-fields{pointer-events:none}
.co-fields{display:grid;gap:14px}
.opt-l{margin-inline-start:4px;font-weight:500;color:var(--muted)}
.fld-box.is-select{position:relative;padding-inline-end:10px}
.fld-box select{flex:1;min-width:0;height:100%;border:0;background:none;outline:none;font:500 13.5px var(--f-text);color:var(--ink);appearance:none;-webkit-appearance:none;cursor:pointer}
.fld-box select:invalid,.fld-box select option[value=""]{color:#A9AD9C}
.sel-chev{font-size:16px!important;color:var(--muted);pointer-events:none}
.fld-box textarea{min-height:64px}

/* choice cards: delivery and payment */
.opts{display:grid;gap:8px}
.opt{position:relative;display:flex;align-items:center;gap:14px;min-height:70px;padding:12px 16px;border:1.5px solid var(--line);border-radius:17px;background:#fff;cursor:pointer;transition:border-color .2s ease,background .2s ease,box-shadow .2s ease}
.opt:hover{border-color:#CFCABB}
.opt input{position:absolute;opacity:0;width:1px;height:1px}
.opt-ic{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:13px;background:#F4F3EF;color:var(--sub);transition:background .2s ease,color .2s ease}
.opt-ic .ico{font-size:21px}
.opt-txt{flex:1;min-width:0}
.opt-txt b{display:block;font-size:13.5px;font-weight:700}
.opt-note{display:block;margin-top:2px;font-size:12px;color:var(--muted)}
.opt-fee{font-size:13px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.opt-fee em{font-style:normal;color:var(--ok)}
.opt-dot{position:relative;width:20px;height:20px;flex:none;border-radius:50%;border:1.5px solid #CFCABB;background:#fff;transition:border-color .2s ease}
.opt-dot::after{content:"";position:absolute;inset:4px;border-radius:50%;background:var(--brand);transform:scale(0);transition:transform .25s cubic-bezier(.3,1.6,.5,1)}
.opt.is-on{border-color:var(--brand);background:#FFFAF6;box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 12%,transparent)}
.opt.is-on .opt-ic{background:var(--brand);color:#fff}
.opt.is-on .opt-dot{border-color:var(--brand)}
.opt.is-on .opt-dot::after{transform:none}
.opt:has(input:focus-visible){box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 35%,transparent)}
.opt.is-off{opacity:.5;cursor:not-allowed}
.opt.is-off:hover{border-color:var(--line)}
.opt-pay{min-height:66px}
.opt-pay .opt-txt b{font-size:13.5px}
/* the payment logos, as in the POS */
.pay-ic{position:relative;display:block;width:58px;height:42px;flex:none;border-radius:11px;overflow:hidden;background:#fff;border:1px solid rgba(9,9,11,.1)}
.pay-ic img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;object-fit:contain;pointer-events:none}
.pay-ic.m-fib{background:#00A69C;border-color:#00A69C}
.pay-ic.m-cash img{padding:6%}
.pay-ic.m-fastpay img{padding:0 2%;transform:scale(1.07)}
.pay-ic.m-superqi img{object-fit:cover;transform:scale(1.18)}
.co-wallet{margin-top:14px}
.co-wallet[hidden]{display:none}

/* place the order */
.co-place{display:grid;gap:14px}
.co-go{height:54px;font-size:14.5px;border-radius:15px}
.co-go .ico{font-size:17px}
.co-fine{margin:0;text-align:center;font-size:11.5px;line-height:1.55;color:var(--muted)}

/* ---------- The summary ---------- */
.co-sum{position:sticky;top:calc(var(--hdr-h,0px) + 16px);transition:top .38s cubic-bezier(.3,.9,.3,1);border:1px solid var(--line-soft);border-radius:var(--r-xl);background:#fff;overflow:hidden}
.co-sum-toggle{display:none}
.co-sum-body{padding:22px}
.co-sum-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.co-sum-head h2{font-size:16px;letter-spacing:.06em;text-transform:uppercase}
.co-sum-head span{font-size:12px;color:var(--muted)}
/* where it goes, above the promo code */
.co-sum-addr{display:flex;align-items:flex-start;gap:12px;margin-top:14px;padding:12px 14px;border:1px solid #F3DFD0;border-radius:16px;background:#FFFAF6}
.co-sum-addr.is-empty{border-style:dashed}
.sa-ic{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:11px;background:var(--brand);color:#fff}
.sa-ic .ico{font-size:17px}
.sa-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px;font-size:12px;line-height:1.45;color:var(--sub)}
.sa-txt small{font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.sa-txt b{font-size:13px;font-weight:700;color:var(--ink)}
.sa-change{flex:none;align-self:center}
.co-sum-pay{align-items:center;margin-top:8px}
.co-sum-pay .pay-ic{width:48px;height:36px;border-radius:10px}
.co-sum .ship{margin:14px 0 0}
.co-lines{display:grid;gap:4px;margin-top:10px;max-height:340px;overflow-y:auto}
.co-line{display:flex;align-items:center;gap:12px;padding:10px 0}
.co-line + .co-line{border-top:1px solid var(--line-soft)}
.co-shot{position:relative;display:grid;place-items:center;width:66px;height:54px;flex:none;border-radius:13px;background:radial-gradient(circle at 50% 60%,#fff 20%,#F1F0EB 85%)}
.co-shot img{max-height:44px;max-width:58px;width:auto;object-fit:contain;filter:drop-shadow(0 5px 6px rgba(22,24,28,.15))}
.co-shot i{position:absolute;top:-6px;inset-inline-end:-6px;min-width:20px;height:20px;padding-inline:5px;display:grid;place-items:center;border-radius:999px;border:2px solid #fff;background:var(--brand);color:#fff;font-style:normal;font-size:10px;font-weight:800}
.co-line-mid{flex:1;min-width:0}
.co-line-mid b{display:block;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.02em;line-height:1.3}
.co-line-mid small{display:block;margin-top:1px;font-size:11px;color:var(--muted)}
.co-line-mid .qty{margin-top:7px;height:28px}
.co-line-mid .qty button{width:26px}
.co-line-end{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.co-line-end .ci-x{width:28px;height:28px}
.co-promo{display:flex;gap:8px;margin-top:14px;padding-top:16px;border-top:1px solid var(--line-soft)}
.co-promo .fld-box{flex:1;min-width:0;height:46px}
.co-promo .fld-box input{min-width:0}
.co-promo .fld-box input{text-transform:uppercase;letter-spacing:.06em}
.co-promo .fld-box input::placeholder{text-transform:none;letter-spacing:0}
.co-promo .btn{height:46px;border-radius:13px}
.promo-msg{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:8px 0 0;font-size:12px;font-weight:600}
.promo-msg:empty{display:none}
.promo-msg.is-ok{color:#2F6B3D}
.promo-msg.is-bad{color:var(--sale)}
.promo-msg .ico{font-size:15px;stroke-width:2.2}
.promo-txt{flex:1;min-width:0}
.promo-msg button{margin-inline-start:auto;font-size:12px;font-weight:650;color:var(--muted);text-decoration:underline}
.promo-cap{display:flex;align-items:flex-start;gap:7px;width:100%;margin-top:4px;padding:9px 11px;border-radius:11px;background:#FFF6E0;font-size:11.5px;font-weight:600;line-height:1.45;color:#8A5A00}
.promo-cap .ico{flex:none;margin-top:1px;font-size:14px}
.promo-demo{margin:8px 0 0;font-size:11px;color:var(--muted)}
.promo-demo button{padding:1px 6px;border-radius:6px;border:1px dashed #E7C4AC;background:#FFF8F3;font:700 10.5px var(--f-text);letter-spacing:.04em;color:var(--brand-ink)}
.promo-demo button:hover{border-color:var(--brand)}
.co-rows{margin-top:16px;padding-top:14px;border-top:1px solid var(--line-soft)}
.sum-row.is-off b{color:var(--ok)}
.co-saved{display:flex;align-items:center;gap:7px;margin:12px 0 0;padding:9px 12px;border-radius:12px;background:#E8F3EA;font-size:12px;color:#2F6B3D}
.co-saved .ico{font-size:15px}
.co-sum .co-go{margin-top:16px}
.co-trust{display:grid;gap:8px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line-soft);font-size:12px;color:var(--sub)}
.co-trust li{display:flex;align-items:center;gap:9px}
.co-trust .ico{font-size:16px;color:var(--brand)}
/* the phone bar */
.co-mbar{display:none}

/* ---------- Empty cart ---------- */
.co-empty{display:flex;flex-direction:column;align-items:center;margin-top:40px;padding:44px 22px;border:1px solid var(--line-soft);border-radius:var(--r-xl);background:#fff;text-align:center}
.co-empty[hidden],.co-done[hidden]{display:none}
.co-empty h1{margin-top:18px;font-size:24px;text-transform:uppercase}
.co-empty > p{margin:8px 0 0;font-size:13px;color:var(--muted)}
.co-last{display:inline-flex;align-items:center;gap:8px;margin-top:16px;padding:10px 14px;border-radius:14px;background:var(--brand-soft);color:var(--brand-ink);font-size:12.5px;font-weight:600}
.co-last .ico{font-size:15px}
.co-picks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;width:min(100%,860px);margin:24px 0}
.co-pick{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 10px;border:1px solid var(--line-soft);border-radius:18px;text-align:center}
.co-pick .co-shot{width:100%;height:90px}
.co-pick .co-shot img{max-height:72px;max-width:80%}
.co-pick b{font-size:11.5px;font-weight:700;text-transform:uppercase;line-height:1.3}

/* ---------- Order placed ---------- */
.co-done{max-width:880px;margin:30px auto 0}
.done-hero{position:relative;display:flex;flex-direction:column;align-items:center;padding:40px 20px 30px;border-radius:var(--r-xl);background:radial-gradient(70% 90% at 50% 0%,#FFE3CF 0%,rgba(255,227,207,0) 70%),#fff;border:1px solid var(--line-soft);text-align:center;overflow:hidden}
.done-hero .done-ic{width:92px;height:92px;box-shadow:0 0 0 10px rgba(63,125,78,.1)}
.done-hero .done-ic .ico{font-size:44px}
.done-no{margin:18px 0 0;font-size:12.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.done-no b{color:var(--brand-ink)}
.done-hero h1{margin-top:6px;font-size:clamp(26px,4vw,40px);text-transform:uppercase}
.done-lead{margin:8px 0 0;font-size:14px;color:var(--sub)}
.done-lead b{color:var(--ink)}
/* confetti falls once */
.confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.confetti i{position:absolute;top:-14px;border-radius:2px;opacity:0;animation:fall linear forwards}
@keyframes fall{0%{opacity:1;transform:translate(0,0) rotate(0)}100%{opacity:0;transform:translate(var(--x),420px) rotate(var(--r))}}
/* the four steps of the order */
.track{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:16px 0 0;padding:22px 16px;list-style:none;border:1px solid var(--line-soft);border-radius:var(--r-xl);background:#fff}
.track li{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding-inline:6px;text-align:center}
.track li + li::before{content:"";position:absolute;top:15px;inset-inline-end:calc(50% + 20px);inset-inline-start:calc(-50% + 20px);height:2px;border-radius:2px;background:var(--line)}
.track-dot{display:grid;place-items:center;width:32px;height:32px;margin-bottom:6px;border-radius:50%;border:1.5px solid var(--line);background:#fff;font-size:12px;font-weight:700;color:var(--muted)}
.track li.is-on .track-dot{border-color:var(--ok);background:var(--ok);color:#fff}
.track-dot .ico{font-size:16px;stroke-width:2.4}
.track b{font-size:12.5px}
.track small{font-size:11px;color:var(--muted)}
.done-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
.done-card{padding:20px;border:1px solid var(--line-soft);border-radius:var(--r-xl);background:#fff}
.done-card h3{display:flex;align-items:center;gap:8px;margin-bottom:12px;font-size:13px;letter-spacing:.1em;text-transform:uppercase}
.done-card h3 .ico{font-size:17px;color:var(--brand)}
.done-card p{margin:0;font-size:13px;line-height:1.6;color:var(--sub)}
.done-card p b{color:var(--ink)}
.muted{color:var(--muted)}
.done-when{display:flex;align-items:center;gap:7px;margin-top:12px!important;padding:9px 12px;border-radius:12px;background:var(--brand-soft);color:var(--brand-ink)!important;font-weight:650}
.done-when .ico{font-size:15px}
.done-pay{display:flex;align-items:center;gap:12px;margin-bottom:12px!important}
.done-items{margin-top:14px}
.done-acts{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:22px 0 12px}

/* ---------- The checkout: where it goes, what is in it ---------- */
.co-list[hidden],.co-promo[hidden]{display:none}
/* the address the order goes to: a choice card with its Change button */
.addr-now{cursor:default}
.addr-now .btn{flex:none}
.addr-none{display:flex;align-items:center;gap:14px;padding:16px;border:1.5px dashed var(--line);border-radius:17px}
.addr-none .empty-ic{width:44px;height:44px;flex:none}
.addr-none .empty-ic .ico{font-size:20px}
.addr-none div{flex:1;min-width:0}
.addr-none b{display:block;font-size:13.5px}
.addr-none span:not(.empty-ic){display:block;margin-top:2px;font-size:12px;color:var(--muted)}
/* the items, as a grid of small cards */
.co-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.co-item{position:relative;display:flex;flex-direction:column;gap:4px;padding:12px;border:1px solid var(--line-soft);border-radius:18px;background:#fff;transition:border-color .2s ease}
.co-item:hover{border-color:#E3DED2}
.co-item.is-bad{border-color:var(--sale);box-shadow:0 0 0 3px rgba(178,58,43,.12)}
.co-item-x{position:absolute;top:8px;inset-inline-end:8px;z-index:1;width:30px;height:30px}
.co-item-shot{display:grid;place-items:center;height:120px;margin-bottom:6px;border-radius:13px;background:radial-gradient(circle at 50% 60%,#fff 20%,#F1F0EB 85%)}
.co-item-shot img{max-height:96px;max-width:80%;object-fit:contain;filter:drop-shadow(0 8px 10px rgba(22,24,28,.16))}
.co-item-name{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.02em;line-height:1.3}
.co-item-sub{font-size:11px;color:var(--muted)}
.co-item-err{margin:4px 0 0;font-size:11.5px;font-weight:650;color:var(--sale)}
.co-item-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:10px}
.co-item-row .qty{height:30px}
.co-item-row .qty button{width:26px}
/* the address window: pick one of yours, or write a new one */
.addr-box{--mw:600px;padding:28px}
.addr-sub{display:block;margin-top:3px;font-size:12.5px;color:var(--muted)}
.addr-list{margin-top:18px;max-height:min(52vh,420px);overflow-y:auto;padding:3px}
.addr-list .opt{padding-inline-end:12px}
.addr-list + .co-go{margin-top:14px}          /* the payment window: its button right under the list */
.addr-edit{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:11px;color:var(--muted);transition:background .2s ease,color .2s ease}
.addr-edit:hover{background:var(--brand-soft);color:var(--brand-ink)}
.addr-edit .ico{font-size:17px}
.addr-rm{margin-inline-start:-8px}
.addr-rm:hover{background:color-mix(in srgb,var(--sale) 10%,transparent);color:var(--sale)}
.addr-unv{display:flex;align-items:center;gap:5px;margin-top:4px;font-size:11px;font-weight:650;color:var(--gold)}
.addr-unv .ico{font-size:13px}
/* "Remove this address?" over its row: Keep or Remove */
.addr-ask{position:absolute;inset:0;z-index:2;display:flex;align-items:center;gap:8px;padding-inline:16px 12px;border-radius:inherit;background:var(--card);box-shadow:inset 0 0 0 1.5px var(--sale);cursor:default;animation:code-in .25s cubic-bezier(.2,.8,.3,1)}
.addr-ask > span{flex:1;min-width:0;font-size:13px;font-weight:700;color:var(--ink)}
.addr-ask button{height:38px;padding-inline:14px;border-radius:12px;font-size:12.5px;font-weight:700;transition:filter .2s ease}
.addr-ask-no{background:#F3F2ED;color:var(--sub)}
.addr-ask-go{display:inline-flex;align-items:center;gap:8px;background:var(--sale);color:#fff}
.addr-ask button:hover{filter:brightness(.96)}
.addr-ask-go.is-busy::after{content:"";width:14px;height:14px;border-radius:50%;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;animation:spin .7s linear infinite}
@media (prefers-reduced-motion:reduce){.addr-ask{animation:none}}
.addr-add{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:52px;margin-top:10px;border:1.5px dashed var(--line);border-radius:17px;font-size:13px;font-weight:650;color:var(--brand-ink);transition:border-color .2s ease,background .2s ease}
.addr-add:hover{border-color:var(--brand);background:#FFFAF6}
.addr-add .ico{font-size:17px}
.addr-add[hidden]{display:none}
#addrUse{margin-top:16px}
.addr-form{margin-top:0}
.addr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;margin:18px 0 16px}
.addr-grid .is-wide{grid-column:1 / -1}
.addr-grid .fld,.addr-grid .fld-box{min-width:0}
.addr-grid .fld-box input{min-width:0;width:100%}
.addr-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-top:12px}
.addr-foot [hidden]{display:none}
.addr-del{color:var(--sale)}
/* your orders */
.co-list{max-width:880px;margin:0 auto}
.co-list > .co-empty{margin-top:24px}
.ord-card{margin-top:14px;padding:18px 20px;border:1px solid var(--line-soft);border-radius:var(--r-xl);background:#fff}
.ord-head{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;padding-bottom:10px;border-bottom:1px solid var(--line-soft)}
.ord-head div{flex:1;min-width:0}
.ord-head b{display:block;font-size:14px;text-transform:uppercase;letter-spacing:.04em}
.ord-head small{display:block;margin-top:2px;font-size:12px;color:var(--muted)}
.ord-total{font-size:16px;font-weight:750;font-variant-numeric:tabular-nums}
.ord-state{display:inline-flex;align-items:center;height:26px;padding-inline:11px;border-radius:999px;font-size:11.5px;font-weight:700;white-space:nowrap}
.ord-state.is-wait{background:#FBF1DC;color:#8A5A0B}
.ord-state.is-ok{background:#E8F3EA;color:#2F6B3D}
.ord-state.is-off{background:#F4F3EF;color:var(--sub)}
.done-card .ord-state{margin-top:12px}
.ord-ship{display:flex;align-items:center;gap:7px;margin:8px 0 0;font-size:12px;color:var(--muted)}
.ord-ship .ico{flex:none;font-size:15px;color:var(--brand)}

/* ---------- Footer ---------- */
.pl-foot{margin-top:60px;padding:22px 0 30px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.pl-foot .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px 20px}
.pl-foot span:last-child{display:flex;flex-wrap:wrap;gap:8px 18px}
.pl-foot a:hover{color:var(--ink)}

/* ---------- Narrower screens ---------- */
@media (max-width:1100px){
  .co-steps li{font-size:0;gap:0}
  .co-steps li + li::before{width:22px;margin-inline-end:6px}
  .co-layout{grid-template-columns:minmax(0,1fr) 360px;gap:18px}
}
/* the summary folds up above the form, and the total rides along at the bottom */
@media (max-width:900px){
  .co-secure{font-size:0;gap:0;width:34px;justify-content:center;padding:0}
  .co-secure .ico{font-size:16px}
  .co-steps{margin:0 auto}
  .co-layout{grid-template-columns:minmax(0,1fr)}
  .co-sum{position:static;order:-1}
  .co-sum-toggle{display:flex;align-items:center;gap:10px;width:100%;padding:16px 18px;font-size:13px;font-weight:650;color:var(--brand-ink);text-align:start}
  .co-sum-toggle > .ico{font-size:17px}
  .co-sum-toggle .chev{font-size:15px;transition:transform .25s ease}
  .co-sum.is-open .co-sum-toggle .chev{transform:rotate(180deg)}
  .co-sum-toggle b{margin-inline-start:auto;font-size:15px;color:var(--ink);font-variant-numeric:tabular-nums}
  .co-sum-body{display:none;padding-top:0}
  .co-sum.is-open .co-sum-body{display:block}
  .co-sum .co-go{display:none}
  .co-mbar{position:fixed;left:0;right:0;bottom:0;z-index:70;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-top:1px solid var(--line);box-shadow:0 -14px 30px -22px rgba(22,24,28,.5)}
  .co-mbar[hidden]{display:none}
  .co-layout .co-sum{order:0}
  .co-sum-body{display:block;padding-top:22px}
  .co-mbar small{display:block;font-size:10.5px;color:var(--muted)}
  .co-mbar b{font-size:17px;font-variant-numeric:tabular-nums}
  .co-mbar .btn{height:48px;border-radius:14px}
  .co-page{padding-bottom:76px}
  .co-picks{grid-template-columns:repeat(2,minmax(0,1fr))}
  .done-grid{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:600px){
  .co-card{padding:18px 16px}
  .co-items{grid-template-columns:repeat(2,minmax(0,1fr))}
  .co-item-shot{height:96px}
  .addr-box{padding:22px 16px 18px}
  .addr-grid{grid-template-columns:minmax(0,1fr)}
  .addr-now{flex-wrap:wrap}
  .addr-now .btn{margin-inline-start:52px}
  .opt{gap:10px;padding:12px}
  .opt-ic{width:38px;height:38px}
  .pay-ic{width:50px;height:38px}
  .opt-fee{font-size:12px}
  .track{grid-template-columns:minmax(0,1fr);gap:14px;padding:18px}
  .track li{flex-direction:row;flex-wrap:wrap;text-align:start;column-gap:12px}
  .track li + li::before{display:none}
  .track-dot{margin:0}
  .track li small{flex-basis:100%;padding-inline-start:44px;margin-top:-6px}
}

/* ---------- The steps at the top of the checkout: deliver to, items, payment (the order page's track, three wide) ---------- */
.co-track{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:16px;padding:16px}
.co-track .track-dot{transition:background .3s ease,border-color .3s ease,color .3s ease}
@media (max-width:600px){
  .co-track{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:14px 6px}
  .co-track li{flex-direction:column;flex-wrap:nowrap;text-align:center}
  .co-track li + li::before{display:block}
  .co-track .track-dot{margin:0 0 6px}
  .co-track li small{display:none}
  /* the chosen address: its button goes under the words, so the name and street keep the width */
  .addr-now{flex-wrap:wrap}
  .addr-now .opt-txt{flex:1 1 calc(100% - 60px)}
  .addr-now .btn{margin-inline-start:54px}
}

/* ---------- The items: the page's one section now (where it goes and how it is paid are in the summary), so bigger ---------- */
.co-card-items .co-items{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.co-card-items .co-item{gap:6px;padding:14px;border-radius:20px}
.co-card-items .co-item-x{top:12px;inset-inline-end:12px;width:34px;height:34px;background:rgba(255,255,255,.9)}
.co-card-items .co-item-shot{height:200px;margin-bottom:8px;border-radius:16px}
.co-card-items .co-item-shot img{max-height:170px;max-width:84%}
.co-card-items .co-item-name{font-size:14.5px}
.co-card-items .co-item-sub{font-size:12px}
.co-card-items .co-item-row{padding-top:12px}
.co-card-items .co-item-row .qty{height:40px;border-radius:12px}
.co-card-items .co-item-row .qty button{width:36px}
.co-card-items .co-item-row .qty output{min-width:30px;font-size:14px}
.co-card-items .ci-price{font-size:17px}
/* the steps that open a window: where it goes, and how it is paid */
.co-track li[role="button"]{cursor:pointer;border-radius:14px;transition:background .2s ease}
.co-track li[role="button"]:hover{background:#FBF9F4}
.co-track li[role="button"]:hover b{color:var(--brand-ink)}
.co-track li[role="button"]:focus-visible{outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 35%,transparent)}
@media (max-width:600px){
  .co-card-items .co-items{grid-template-columns:minmax(0,1fr)}
  .co-card-items .co-item-shot{height:220px}
}

/* ---------- The city: a picker of our own (the select stays hidden as the value), a search and the cities in two groups ---------- */
.city-pick{position:relative}
.city-btn{width:100%;cursor:pointer;text-align:start;font:500 13.5px var(--f-text);color:var(--ink)}
.city-btn:focus-visible{outline:none;border-color:var(--brand);box-shadow:0 0 0 4px color-mix(in srgb,var(--brand) 12%,transparent)}
.city-val{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.city-btn.is-empty .city-val{color:#A9AD9C}
.city-btn .sel-chev{transition:transform .25s ease}
.city-pick.is-open .city-btn{border-color:var(--brand);box-shadow:0 0 0 4px color-mix(in srgb,var(--brand) 12%,transparent)}
.city-pick.is-open .sel-chev{transform:rotate(180deg)}
.city-pop{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:30;min-width:240px;padding:8px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow-md);transform-origin:top center;animation:cityIn .22s cubic-bezier(.2,.8,.3,1)}
.city-search{height:40px;margin-bottom:4px;border-radius:11px}
.city-list{max-height:250px;overflow-y:auto;overscroll-behavior:contain;padding:2px;scrollbar-width:thin}
.city-group{margin:0;padding:10px 10px 4px;font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.city-opt{display:flex;align-items:center;gap:10px;width:100%;padding:7px 10px;border-radius:11px;font:600 13px var(--f-text);color:var(--ink);text-align:start;transition:background .15s ease,color .15s ease}
.city-ic{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:9px;background:#F4F3EF;color:var(--sub);transition:background .2s ease,color .2s ease}
.city-ic .ico{font-size:14px}
.city-tick{margin-inline-start:auto;font-size:16px;color:var(--brand);stroke-width:2.4;opacity:0;transform:scale(.5);transition:opacity .2s ease,transform .3s cubic-bezier(.3,1.6,.5,1)}
.city-opt:hover,.city-opt.is-act{background:#FBF6F1}
.city-opt:hover .city-ic,.city-opt.is-act .city-ic{background:var(--brand-soft);color:var(--brand-ink)}
.city-opt[aria-selected="true"]{color:var(--brand-ink)}
.city-opt[aria-selected="true"] .city-ic{background:var(--brand);color:#fff}
.city-opt[aria-selected="true"] .city-tick{opacity:1;transform:none}
.city-opt mark{background:none;color:var(--brand);font-weight:800}
.city-none{margin:0;padding:18px 10px;text-align:center;font-size:12.5px;color:var(--muted)}
@keyframes cityIn{from{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:none}}

