/* Checkout (pages/checkout.php), order page (pages/order-details.php) and the address popup
   (includes/address-modal.php — also used in My account). Phones: plain sections, the popup is a bottom sheet. */
.co [hidden],.od [hidden],.adm [hidden]{display:none!important}   /* display rules below must not beat the hidden attribute */
.co{padding-top:24px;padding-bottom:20px;color:var(--ink)}
.co-steps{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted)}
.co-steps button{border:0;background:none;padding:0;color:var(--muted);cursor:pointer;font:inherit}.co-steps button:hover{color:var(--accent)}
.co-steps b{color:var(--ink);font-weight:700}.co-steps i{font-style:normal}
.co-title{font-size:clamp(28px,3vw,38px);font-weight:700;letter-spacing:-.03em;margin:8px 0 24px}
.co-grid{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:32px;align-items:start}
.co-main{display:grid;gap:20px}
.co-sec{background:#fff;border:1px solid var(--line);border-radius:8px;padding:22px}
.co-sec h2{display:flex;align-items:center;gap:12px;font-size:19px;font-weight:700;letter-spacing:-.01em;margin-bottom:16px}
.co-sec h2 span{width:28px;height:28px;border-radius:50%;background:var(--ink);color:#fff;font-size:13px;display:grid;place-items:center;flex:none}
.co-sec h2 em{font-style:normal;font-weight:400;font-size:14px;color:var(--muted)}
.co-hint{color:var(--muted);font-size:14px;margin-bottom:10px}
.co-warn{font-size:14px;color:#8a5a00;background:#fff6e0;border-radius:8px;padding:10px 12px;margin-bottom:12px}
.co-note{font-size:14px;color:#8a5a00;background:#fff6e0;border-radius:8px;padding:12px 14px;margin-bottom:18px}

.co-addrs{display:grid;gap:10px}
.co-addr,.co-opt{position:relative;display:flex;gap:14px;align-items:flex-start;padding:14px 16px;border:1px solid var(--line);border-radius:8px;cursor:pointer;transition:border-color .2s,background .2s}
.co-addr:hover,.co-opt:hover{border-color:#c9c8d1}
.co-addr.on,.co-opt.on{border-color:var(--accent);background:#fff7f8;box-shadow:0 0 0 1px var(--accent)}
.co-addr input,.co-opt input{accent-color:var(--accent);width:18px;height:18px;margin-top:2px;flex:none}
.co-addr .b,.co-opt .b{flex:1;min-width:0;display:grid;gap:3px}
.co-addr .t{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.co-addr .t b{font-size:15px}.co-addr .t em{font-style:normal;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;background:#ececf2;color:#3d3b48;padding:3px 8px;border-radius:6px}
.co-addr .t i{font-style:normal;font-size:12px;font-weight:700;color:var(--good)}
.co-addr small,.co-opt small{font-size:13.5px;color:#5d5b6a;line-height:1.45}
.co-edit{border:0;background:none;color:var(--accent);font-weight:700;font-size:14px;cursor:pointer;padding:2px 4px;flex:none}
.co-add{margin-top:12px;border:0;background:none;color:var(--accent);font-weight:700;font-size:15px;cursor:pointer;display:inline-flex;align-items:center;gap:8px;padding:4px 0}
.co-opts{display:grid;gap:10px}
.co-opt b{font-size:15px}.co-opt .p{font-weight:700;font-size:15px;white-space:nowrap}.co-opt .p .free{font-style:normal;color:var(--good)}
.co-opt.off{cursor:not-allowed;opacity:.55;background:#fafafc}
.co-trx{margin-top:14px;display:grid;gap:10px}
.co-instr{font-size:14px;line-height:1.6;background:#f6f6f9;border-radius:8px;padding:12px 14px;color:#3d3b48}.co-instr b{display:block;color:var(--ink);margin-bottom:2px}
.co-sec textarea{width:100%;border:1px solid #d6d5de;border-radius:8px;padding:12px 14px;font:inherit;font-weight:400;font-size:15px;color:var(--ink);background:#fff}
.co-sec textarea{resize:vertical;min-height:84px}
.co-trx small{font-size:12.5px;color:var(--muted)}

.co-sum{position:sticky;top:92px}
.co-sum-in{background:#fff;border:1px solid var(--line);border-radius:8px;padding:22px}
.co-sh{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.co-sh h2{font-size:19px;font-weight:700}
.co-sh button{border:0;background:none;color:var(--accent);font-weight:700;font-size:14px;cursor:pointer}
.co-lines{display:grid;gap:12px;max-height:320px;overflow-y:auto;padding:6px 4px 6px 0;margin-bottom:14px}
.co-line{display:flex;gap:12px;align-items:center}
.co-line .ph{position:relative;flex:none;width:58px;height:58px;border-radius:8px;background:#ececf2}.co-line .ph img{width:100%;height:100%;object-fit:cover;border-radius:8px}
.co-line .ph em{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;border-radius:8px;background:var(--ink);color:#fff;font-style:normal;font-size:11px;font-weight:700;display:grid;place-items:center;padding:0 5px}
.co-line .tx{flex:1;min-width:0;display:grid;gap:1px}.co-line .tx a{font-size:14px;font-weight:600;color:var(--ink);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.co-line .tx small{font-size:12.5px;color:var(--muted)}.co-line>b{font-size:14px;white-space:nowrap}
.co-tot{display:grid;gap:10px;border-top:1px solid var(--line);padding-top:14px;margin:0}
.co-tot div{display:flex;justify-content:space-between;gap:10px;font-size:15px}.co-tot dt{color:#5d5b6a}.co-tot dd{margin:0;font-weight:600}
.co-tot .grand{border-top:1px solid var(--line);padding-top:12px;margin-top:2px}.co-tot .grand dt{color:var(--ink);font-weight:700;font-size:17px}.co-tot .grand dd{font-size:22px;font-weight:700;letter-spacing:-.02em}
.co-why{font-size:13px;color:#8a5a00;background:#fff6e0;border-radius:8px;padding:9px 12px;margin-top:14px}
.co-place{width:100%;height:54px;margin-top:14px;font-size:16px}
.co-safe{font-size:12.5px;color:var(--muted);margin-top:12px;text-align:center}.co-safe i{color:var(--good);margin-right:4px}
.co-empty{display:grid;justify-items:center;gap:6px;text-align:center;padding:60px 16px;color:#5d5b6a}
.co-empty i{font-size:30px;color:var(--accent);margin-bottom:6px}.co-empty b{font-size:19px;color:var(--ink)}.co-empty .ev-go{margin-top:14px;padding:0 26px}

/* order page */
.od{padding-top:24px;padding-bottom:20px;color:var(--ink)}
.od-ok{display:flex;gap:16px;align-items:center;background:var(--good-soft);border-radius:8px;padding:20px 22px;margin-bottom:24px}
.od-ok i{width:48px;height:48px;border-radius:50%;background:var(--good);color:#fff;display:grid;place-items:center;font-size:20px;flex:none}
.od-ok b{font-size:19px;display:block}.od-ok span{font-size:14px;color:#2f5d45}
.od-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.od-head h1{font-size:clamp(26px,3vw,34px);font-weight:700;letter-spacing:-.02em}.od-head p{color:#5d5b6a;font-size:14px;margin-top:4px}
.od-track{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:24px}
.od-track div{display:grid;gap:6px;font-size:13px;color:var(--muted);font-weight:600}
.od-track div::before{content:"";height:6px;border-radius:3px;background:#e4e4ec}
.od-track div.done{color:var(--ink)}.od-track div.done::before{background:var(--accent)}
.od-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:28px;align-items:start}
.od-box{background:#fff;border:1px solid var(--line);border-radius:8px;padding:20px 22px;margin-bottom:20px}
.od-box h2{font-size:17px;font-weight:700;margin-bottom:12px}
.od-box p{font-size:14.5px;color:#3d3b48;line-height:1.6}
.od-line{display:flex;gap:14px;align-items:center;padding:12px 0;border-top:1px solid #f0f0f4}.od-line:first-of-type{border-top:0}
.od-line .ph{flex:none;width:64px;height:64px;border-radius:8px;overflow:hidden;background:#ececf2}.od-line .ph img{width:100%;height:100%;object-fit:cover}
.od-line .tx{flex:1;min-width:0;display:grid;gap:2px}.od-line .tx a,.od-line .tx b{font-size:15px;font-weight:600;color:var(--ink);text-decoration:none}
.od-line .tx small{font-size:13px;color:#5d5b6a}.od-line>b{white-space:nowrap}
.od-act{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.od-act .ev-go{padding:0 22px}

/* address popup */
.adm{position:fixed;inset:0;z-index:70;display:grid;place-items:center;padding:20px;background:rgba(20,18,26,.55);backdrop-filter:blur(3px);opacity:0;visibility:hidden;transition:opacity .3s,visibility 0s .3s}
.adm.open{opacity:1;visibility:visible;transition-delay:0s}
.adm-box{width:min(620px,100%);max-height:calc(100vh - 40px);display:flex;flex-direction:column;background:#fff;border-radius:8px;overflow:hidden;transform:translateY(20px) scale(.97);transition:transform .4s cubic-bezier(.2,.8,.2,1)}
.adm.open .adm-box{transform:none}
.adm-h{display:flex;justify-content:space-between;align-items:center;padding:14px 14px 14px 22px;border-bottom:1px solid var(--line)}.adm-h h3{font-size:19px;font-weight:700}
.adm-b{padding:18px 22px;overflow-y:auto;display:grid;gap:14px}
.adm-labels{display:flex;gap:8px;flex-wrap:wrap}
.adm-labels input{position:absolute;opacity:0;pointer-events:none}
.adm-labels span{display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 14px;border:1px solid var(--line);border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;color:#3d3b48;transition:all .2s}
.adm-labels input:checked+span{border-color:var(--accent);color:var(--accent);background:#fff7f8;box-shadow:0 0 0 1px var(--accent)}
.adm-labels input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.adm-g2{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}
/* form fields: outlined box, the label sits on the top border (no shift on focus); required fields get a red * */
.adm-f{position:relative;display:block;margin-top:8px;font-size:14px;color:var(--ink);--fl-bg:#fff}
.adm-l{position:absolute;z-index:2;left:11px;top:0;transform:translateY(-50%);max-width:calc(100% - 24px);padding:0 5px;background:var(--fl-bg);font-size:12.5px;font-weight:700;line-height:1.25;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;transition:color .15s}
.adm-l span{font-weight:400;color:var(--muted)}
.adm-f.req .adm-l::after,.adm-f:has(> :is(input,select,textarea):required) .adm-l::after{content:"*";margin-left:2px;color:#c0262d}
.adm-f input,.adm-f select,.adm-f textarea,.adm-f .evs-btn{display:block;width:100%;height:52px;border:1px solid #d6d5de;border-radius:8px;padding:0 14px;font:inherit;font-weight:400;font-size:15px;color:var(--ink);background:#fff;transition:border-color .15s}
.adm-f input::placeholder,.adm-f textarea::placeholder{color:#a3a2ad;opacity:1}
.adm-f:hover input,.adm-f:hover .evs-btn{border-color:#b9b8c4}
.adm-f:focus-within .adm-l{color:var(--accent)}
.adm-f em{display:block;margin-top:6px;font-style:normal;font-size:12.5px;font-weight:500;color:#c0262d}.adm-f em:empty{display:none}
.adm-f>small{display:block;margin-top:6px;font-size:12.5px;font-weight:400;color:var(--muted)}
.adm-f.bad input,.adm-f.bad select,.adm-f.bad .evs-btn{border-color:#c0262d!important}.adm-f.bad .adm-l{color:#c0262d}
.adm-def{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:500;cursor:pointer;align-self:end;height:48px}.adm-def input{width:18px;height:18px;accent-color:var(--accent)}
.adm-err{font-size:13.5px;color:#c0262d;background:var(--accent-soft,#feecee);border-radius:8px;padding:10px 12px}
.adm-foot{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;padding:14px 22px calc(14px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}

@media(max-width:1000px){.co-grid,.od-grid{grid-template-columns:1fr}.co-sum{position:static}.co-lines{max-height:none}}
@media(max-width:640px){
  .co,.od{padding-top:16px}
  .co-sec,.co-sum-in,.od-box{background:transparent;border:0;border-radius:0;padding:0}
  .co-main{gap:0}.co-sec{padding:20px 0;border-bottom:1px solid var(--line)}.co-sec:first-child{padding-top:0}
  .co-sum-in{padding-top:20px}
  .od-box{padding:18px 0;margin:0;border-bottom:1px solid var(--line)}
  .od-track{grid-template-columns:repeat(2,1fr)}
  .adm{place-items:end center;padding:0}
  .adm-box{width:100%;max-height:92vh;border-radius:8px 8px 0 0;transform:translateY(100%)}
  .adm-g2{grid-template-columns:1fr}.adm-def{height:auto}
}
.od-pay{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;background:#fff4dc;border-radius:8px;padding:18px 22px;margin-bottom:24px}
.od-pay b{display:block;font-size:18px}.od-pay span{font-size:14px;color:#6b4a00}.od-pay .ev-go{padding:0 28px}

/* guest details on the checkout page (fields reuse the address popup styles) */
.co-gf{display:grid;gap:14px}.co-gf .full{grid-column:1/-1}.co-gf small{font-size:12.5px;font-weight:400;color:var(--muted)}
.co-hint a{color:var(--accent);font-weight:700}
.co-opt .lg{flex:none;width:40px;height:40px;border-radius:8px;border:1px solid var(--line);background:#fff;padding:3px;margin-top:-6px;display:grid;place-items:center}.co-opt .lg img{width:100%;height:100%;object-fit:contain}

/* phones/tablets: the total + Place order row stays on screen while the form scrolls */
.co-pay > .co-tot{margin:10px 0 0;border-top:0;padding-top:0}
@media(max-width:1000px){
  .co-pay{position:fixed;left:0;right:0;bottom:0;z-index:60;background:#fff;border-top:1px solid var(--line);box-shadow:0 -8px 24px rgba(17,17,17,.08);padding:10px 16px calc(10px + env(safe-area-inset-bottom))}
  .co-pay .grand{border-top:0;padding-top:0;margin:0;display:flex;align-items:center;justify-content:space-between}
  .co-pay .grand dd{font-size:20px}
  .co-pay .co-why{margin:6px 0 0}
  .co-pay .co-place{height:50px;margin-top:8px}
  body:has(.co-pay){padding-bottom:calc(130px + env(safe-area-inset-bottom))}
  body:has(.co-pay) .bnav{display:none!important}   /* checkout: the order bar takes the bottom of the screen */
}

/* ═══ unslop pass (same direction as home / product / listings): red only for Place order,
       dark ink for selection and links, medium weights, whole-taka prices, quiet hints ═══ */
.co-steps b{font-weight:500}
.co-steps button:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.co-title{font-weight:500;letter-spacing:-.01em;margin:8px 0 24px}
.co-grid{gap:32px}.co-main{gap:16px}
.co-sec{padding:24px}
.co-sec h2{font-size:18px;font-weight:500;letter-spacing:0;gap:12px;margin-bottom:16px}
.co-sec h2 span{width:24px;height:24px;background:var(--raised,#ecebe7);color:var(--ink);font-size:12px;font-weight:500;font-variant-numeric:tabular-nums}
.co-hint{margin-bottom:12px}
.co-hint a,.co-edit,.co-add,.co-sh button{color:var(--ink);font-weight:500;text-decoration:underline;text-decoration-color:rgba(38,38,38,.3);text-underline-offset:3px}
.co-hint a:hover,.co-edit:hover,.co-add:hover,.co-sh button:hover{text-decoration-color:currentColor}
/* hints are information, not warnings: neutral surface; real problems keep the amber */
.co-note,.co-why{color:var(--ink);background:var(--raised,#ecebe7)}
/* choices: selected = ink outline on white */
.co-addrs,.co-opts{gap:8px}
.co-addr,.co-opt{padding:16px;gap:12px;transition:border-color .15s cubic-bezier(.22,1,.36,1)}
.co-addr.on,.co-opt.on{border-color:var(--ink);background:#fff;box-shadow:0 0 0 1px var(--ink)}
.co-addr input,.co-opt input{accent-color:var(--ink)}
.co-addr .t b,.co-opt b{font-weight:500}
.co-addr .t em{font-size:12px;font-weight:500;text-transform:none;letter-spacing:0;background:var(--raised,#ecebe7);padding:2px 8px;border-radius:4px}
.co-addr .t i{font-weight:500}
.co-opt .p{font-weight:500;font-variant-numeric:tabular-nums}
.co-instr{background:var(--raised,#ecebe7);color:var(--ink)}.co-instr b{font-weight:500}
/* fields */
.adm-l{font-weight:500;font-size:12px}
.adm-f.req .adm-l::after,.adm-f:has(> :is(input,select,textarea):required) .adm-l::after{color:var(--muted)}
.adm-f:focus-within .adm-l{color:var(--ink)}
.adm-f input:focus,.adm-f select:focus,.adm-f textarea:focus,.co-sec textarea:focus{outline:none;border-color:var(--ink)}
.adm-f input,.adm-f select,.adm-f textarea,.adm-f .evs-btn{height:48px}
.adm-labels span{font-weight:500;transition:border-color .15s,color .15s,background-color .15s}
.adm-labels input:checked+span{border-color:var(--ink);color:var(--ink);background:#fff;box-shadow:0 0 0 1px var(--ink)}
.adm-labels input:focus-visible+span{outline-color:var(--ink)}
.adm-def input{accent-color:var(--ink)}
.adm-h h3{font-weight:500;font-size:18px}
.adm{backdrop-filter:none;background:rgba(20,18,16,.45)}
/* order summary */
.co-sum-in{padding:24px}
.co-sh h2{font-size:18px;font-weight:500}
.co-line .ph{background:var(--raised,#ecebe7)}
.co-line .ph em{border-radius:4px;font-weight:500;font-variant-numeric:tabular-nums}
.co-line .tx a{font-weight:500}.co-line>b{font-weight:500;font-variant-numeric:tabular-nums}
.co-tot dd{font-weight:500;font-variant-numeric:tabular-nums}
.co-tot .grand dt{font-weight:500;font-size:16px}
.co-tot .grand dd{font-size:24px;font-weight:500;letter-spacing:-.01em}
.co-place{height:52px;font-size:16px}
.co-safe i{color:var(--muted)}
.co-empty i{color:var(--muted)}.co-empty b{font-weight:500}
/* order page (shares this file) */
.od-head h1{font-weight:500;letter-spacing:-.01em}
.od-box h2,.od-ok b,.od-pay b{font-weight:500}
.od-track div{font-weight:500}.od-track div.done::before{background:var(--ink)}
.od-line .tx a,.od-line .tx b{font-weight:500}

/* note for the shop: a small "Add a note" link that opens the box (all sizes) */
.co-notesec{padding-top:16px;padding-bottom:16px}
.co-notebox summary{display:inline-flex;align-items:center;gap:8px;list-style:none;cursor:pointer;font-size:15px;font-weight:500;color:var(--ink)}
.co-notebox summary::-webkit-details-marker{display:none}
.co-notebox summary::before{content:"+";display:grid;place-items:center;width:20px;height:20px;border-radius:4px;background:var(--raised,#ecebe7);font-size:14px;line-height:1}
.co-notebox[open] summary::before{content:"−"}
.co-notebox summary em{font-style:normal;font-weight:400;font-size:14px;color:var(--muted)}
.co-notebox textarea{margin-top:12px}
.co-notebox summary:focus-visible{outline:2px solid var(--ink);outline-offset:4px;border-radius:4px}

/* phones: a focused checkout — the order, the address, delivery, payment and Place order; nothing else */
@media(max-width:640px){
  body:has(.co-grid) .evf,
  body:has(.co-grid) .ev-top,
  body:has(.co-grid) .ev-cats-row,
  body:has(.co-grid) .ev-srch-btn,
  body:has(.co-grid) .ev-hsearch,
  body:has(.co-grid) .ev-circ,
  body:has(.co-grid) .ev-pill{display:none!important}
  .co:has(.co-grid) .co-steps,.co-safe{display:none}
  .co:has(.co-grid) .co-title{font-size:22px;margin:0 0 16px}
  .co-grid{display:flex;flex-direction:column;align-items:stretch;gap:0}
  .co-sum{order:-1}                                   /* what you are buying comes first */
  .co-sum-in{padding:0 0 16px;border-bottom:1px solid var(--line)}
  .co-sh{margin-bottom:12px}.co-sh h2{font-size:16px}
  .co-lines{gap:8px;margin-bottom:12px;padding:6px 6px 0 0}
  .co-line .ph{width:48px;height:48px}
  .co-sum-in>.co-tot{gap:6px;padding-top:12px}.co-sum-in>.co-tot div{font-size:14px}
  .co-main{gap:0}                                    /* sections are split by a rule, not a gap */
  .co-sec{padding:16px 0;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0}
  .co-sum-in{background:transparent;border:0;border-radius:0}
  .co-sec h2{font-size:16px;margin-bottom:10px}
  .co-sec h2 span{display:none}                      /* no step numbers once the order is reordered */
  .co-hint{font-size:13px}
  .co-gf>.adm-f>small{display:none}                  /* "we send your confirmation…" */
  .co-opt.off{display:none}                          /* delivery options that cannot be used here */
  .co-addr,.co-opt{padding:12px}
  .co-notesec{padding:12px 0 0;border-bottom:0}
  .co{padding-bottom:8px}
}

/* ═══ one surface, lines between things (not a card per section or per option) ═══ */
@media(min-width:641px){
  .co-main{gap:0;background:#fff;border:1px solid var(--line);border-radius:12px}
  .co-sec{background:none;border:0;border-radius:0;padding:24px}
  .co-sec+.co-sec{border-top:1px solid var(--line)}
  .co-notesec{padding:16px 24px}
}
/* shared: options sit inside one bordered group, split by hairlines (drawn as shadows so wrapped rows still divide) */
.co-seg,.co-tiles,.co-addrs:has(.co-addr){gap:0;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff}
.co-seg .co-opt,.co-tiles .co-opt,.co-addrs .co-addr{border:0;border-radius:0;background:#fff;box-shadow:-1px 0 0 var(--line),0 -1px 0 var(--line)}
.co-seg .co-opt:hover,.co-tiles .co-opt:hover,.co-addrs .co-addr:hover{background:#faf9f7}
.co-seg .co-opt.on,.co-tiles .co-opt.on,.co-addrs .co-addr.on{background:#fff;border-radius:8px;box-shadow:inset 0 0 0 1.5px var(--ink)}
.co-seg .co-opt.off,.co-tiles .co-opt.off{background:#fff;opacity:.5}
.co-opt .nm{display:flex;align-items:baseline;justify-content:space-between;gap:4px 12px;flex-wrap:wrap}
.co-opt .nm b{font-size:15px;font-weight:500}
.co-opt .nm .p{font-size:15px}
.co-opt small{font-size:13px;line-height:18px;color:var(--muted)}
/* delivery: every method on one line */
.co-seg{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.co-seg .co-opt{padding:14px 16px;gap:10px}
.co-seg .co-opt input{margin-top:1px}
/* payment: small square tiles, the chosen method's detail underneath */
.co-tiles{display:grid;grid-template-columns:repeat(var(--n,3),minmax(0,1fr));max-width:calc(var(--n,3) * 168px)}
.co-tiles .co-opt{flex-direction:column;align-items:flex-start;justify-content:space-between;gap:12px;min-height:112px;padding:14px}
.co-tiles .co-opt input{position:absolute;top:12px;right:12px;margin:0}
.co-tiles .lg{margin:0;width:32px;height:32px;border-radius:6px}
.co-tiles .lg.ic{border:0;background:var(--raised,#ecebe7);color:var(--ink);font-size:14px}
.co-tiles .co-opt .b{flex:none;width:100%;gap:2px}
.co-tiles .nm{flex-direction:column;align-items:flex-start;gap:2px}
.co-tiles .nm b{font-size:14px;line-height:20px}
.co-tiles .nm .p{font-size:13px;color:var(--muted)}
.co-tiles .co-opt:not(.off) small{display:none}
.co-paynote{margin:10px 0 0;font-size:13px;line-height:18px;color:var(--muted)}
.co-paynote:empty{display:none}
/* pinned order bar (phones/tablets): the breakdown under "Total" */
.co-brk{display:none}
@media(max-width:1000px){
  .co-pay .grand dt{display:grid;gap:2px}
  .co-brk{display:block;font-size:13px;line-height:18px;font-weight:400;color:var(--muted);font-variant-numeric:tabular-nums}
}
/* saved addresses: one list */
.co-addrs:has(.co-addr){display:grid}
@media(max-width:640px){
  .co-seg .co-opt{padding:12px}
  .co-tiles{grid-template-columns:repeat(var(--nm,3),minmax(0,1fr));max-width:calc(var(--nm,3) * 150px)}
  .co-tiles .co-opt{min-height:100px;padding:12px}
}
