/* Checkout: the store chrome steps aside, one quiet header, form + summary */
body[data-page="checkout"] .announce,
body[data-page="checkout"] .header,
body[data-page="checkout"] > footer,
body[data-page="checkout"] .progress{display:none}

.co{min-height:100vh;display:flex;flex-direction:column}
.co [hidden]{display:none !important}
.co-top{border-bottom:1px solid var(--line);background:var(--paper)}
.co-top-in{height:76px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
.co-logo{color:var(--ink)}
.co-back{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;color:var(--muted);justify-self:start;transition:color .2s}
.co-back:hover{color:var(--ink)}
.co-back svg{width:16px;height:16px}
.co-secure{justify-self:end;display:inline-flex;align-items:center;gap:7px;font-size:13px;color:var(--muted)}
.co-secure svg,.co-pay-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5}
.co-demo{text-align:center;font-size:12.5px;color:#7a5b16;background:#f6ecd2;padding:8px 16px}

/* layout: form on the start side, sticky summary on the end side */
.co-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.78fr);gap:clamp(32px,5vw,80px);padding-block:40px 64px;align-items:start;flex:1}
.co-form{grid-column:1;grid-row:1;max-width:620px;width:100%;justify-self:end}
.co-sum{grid-column:2;grid-row:1;position:sticky;top:24px;background:#fff;border:1px solid var(--line);padding:28px}
.co-sum-toggle{display:none}

.co-steps{display:flex;gap:10px;list-style:none;margin:0 0 28px;padding:0;font-size:12.5px;color:var(--muted)}
.co-steps li{display:flex;align-items:center;gap:10px}
.co-steps li + li::before{content:"";width:28px;height:1px;background:var(--line)}
.co-steps li.on{color:var(--ink);font-weight:500}

.co-sec{border:0;margin:0 0 36px;padding:0}
.co-sec legend{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:400;margin-bottom:18px;padding:0}
.co-sec legend i{font-style:normal;width:28px;height:28px;border-radius:50%;border:1px solid var(--ink);display:grid;place-items:center;font-size:13px;font-weight:500;font-family:var(--latin)}

.co-row{display:grid;gap:12px}
.co-row.two{grid-template-columns:1fr 1fr}
.co-row.three{grid-template-columns:1fr 1fr 1fr}
.f{position:relative;margin-bottom:12px}
.f label{display:block;font-size:12.5px;color:#55514a;margin-bottom:6px}
.f .opt{color:var(--muted)}
.f input,.f select{width:100%;height:50px;padding-inline:14px;background:#fff;border:1px solid #d9d5cd;border-radius:0;font:inherit;font-size:15px;color:var(--ink);transition:border-color .2s,box-shadow .2s}
.f input::placeholder{color:#b3aea5}
.f input:focus,.f select:focus{outline:0;border-color:var(--ink);box-shadow:0 0 0 3px rgba(12,12,13,.06)}
.f input[dir="ltr"]{text-align:left}
.f .err{display:block;min-height:0;font-size:12px;color:#a33a26;margin-top:5px}
.f.bad input,.f.bad select{border-color:#a33a26}
.co-card .co-brand{position:absolute;inset-inline-start:14px;top:38px;font-family:var(--latin);font-size:12px;font-weight:600;letter-spacing:.06em;color:var(--muted);pointer-events:none}
.co-check{display:flex;align-items:flex-start;gap:10px;font-size:13.5px;color:#4b4741;cursor:pointer}
.co-check input{width:18px;height:18px;margin-top:2px;accent-color:var(--ink);flex:none}
.co-terms{margin-top:18px}
#termsErr{display:block;font-size:12px;color:#a33a26;margin-top:6px}

/* delivery options as cards */
.co-opts{display:grid;gap:10px;margin-bottom:16px}
.co-opt{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:18px;background:#fff;border:1px solid #d9d5cd;cursor:pointer;transition:border-color .2s,box-shadow .2s}
.co-opt:has(input:checked){border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.co-opt input{width:18px;height:18px;accent-color:var(--ink);margin:0}
.co-opt-in b{display:block;font-weight:500;font-size:15px}
.co-opt-in small{font-size:13px;color:var(--muted)}
.co-opt-price{font-size:14.5px;font-weight:500;font-variant-numeric:tabular-nums}

/* payment tabs */
.co-pay-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:16px}
.co-pay-tabs button{height:48px;background:#fff;border:1px solid #d9d5cd;font-size:13.5px;font-weight:500;transition:border-color .2s,box-shadow .2s}
.co-pay-tabs button[data-pay="apple"],.co-pay-tabs button[data-pay="google"],.co-pay-tabs button[data-pay="bit"]{font-family:var(--latin)}
.co-pay-tabs button[aria-selected="true"]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.co-pay-note{font-size:14px;color:#4b4741;background:#fff;border:1px dashed #d9d5cd;padding:18px}

.co-pay-btn{width:100%;height:60px;justify-content:center;font-size:15.5px;gap:12px}
.co-pay-btn b{font-weight:600;font-variant-numeric:tabular-nums}
.co-pay-btn.busy{opacity:.75;pointer-events:none}
.co-fine{margin-top:14px;font-size:13px;color:var(--muted);text-align:center}
.co-fine a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}

/* summary */
.co-items{list-style:none;margin:0;padding:0 0 18px;display:grid;gap:16px;border-bottom:1px solid var(--line)}
.co-items li{display:grid;grid-template-columns:68px 1fr auto;gap:14px;align-items:center}
.co-img{position:relative;aspect-ratio:1;background:linear-gradient(160deg,#f5f3ef,#dfd9cf);display:grid;place-items:center;padding:6px}
.co-img img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.co-img i{position:absolute;top:-7px;inset-inline-end:-7px;min-width:20px;height:20px;border-radius:10px;background:var(--ink);color:#fff;font-style:normal;font-size:11px;font-weight:600;display:grid;place-items:center;font-family:var(--latin)}
.co-name b{display:block;font-size:14px;font-weight:500;line-height:1.35}
.co-name small{font-size:12.5px;color:var(--muted)}
.co-price{font-size:14px;font-variant-numeric:tabular-nums;text-align:left;white-space:nowrap}
.co-price s{display:block;font-size:12px;color:var(--muted)}

.co-coupon{border-bottom:1px solid var(--line);padding:14px 0}
.co-coupon summary{cursor:pointer;font-size:13.5px;color:#4b4741;list-style:none}
.co-coupon summary::-webkit-details-marker{display:none}
.co-coupon summary::after{content:"+";float:left;color:var(--muted)}
.co-coupon[open] summary::after{content:"−"}
.co-coupon-row{display:flex;gap:8px;margin-top:12px}
.co-coupon-row input{flex:1;height:44px;padding-inline:12px;border:1px solid #d9d5cd;font:inherit;font-size:14px;text-align:left}
.co-coupon-row .btn{height:44px;padding-inline:18px}
.co-coupon-msg{font-size:12.5px;color:#a33a26;margin-top:8px}
.co-coupon-msg:empty{display:none}

.co-totals{margin:0;padding:16px 0 0;display:grid;gap:10px}
.co-totals div{display:flex;justify-content:space-between;font-size:14px}
.co-totals dt{color:#55514a}
.co-totals dd{margin:0;font-variant-numeric:tabular-nums}
.co-save dd{color:#2f7d4f}
.co-total{border-top:1px solid var(--line);padding-top:14px;margin-top:4px}
.co-total dt{font-size:15px;color:var(--ink);font-weight:500}
.co-total dd{font-size:22px;font-weight:500}
.co-inst-note{font-size:12.5px;color:var(--muted);text-align:left;margin-top:4px}
.co-trust{list-style:none;margin:22px 0 0;padding:18px 0 0;border-top:1px solid var(--line);display:grid;gap:10px}
.co-trust li{display:flex;align-items:center;gap:10px;font-size:13px;color:#4b4741}
.co-trust svg{width:18px;height:18px;fill:none;stroke:var(--ink);stroke-width:1.3;flex:none}

/* empty + done */
.co-empty,.co-done{flex:1;padding-block:80px;text-align:center;max-width:640px}
.co-empty h1,.co-done h1{font-size:clamp(30px,3.6vw,44px);font-weight:400;letter-spacing:-.01em}
.co-empty p{color:var(--muted);margin-top:10px}
.co-empty-actions,.co-done-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:28px}
.co-done:focus{outline:0}
.co-done-check svg{width:72px;height:72px;fill:none;stroke:#2f7d4f;stroke-width:2}
.co-done-check circle{stroke-dasharray:151;stroke-dashoffset:151;animation:coDraw .8s var(--ease) forwards}
.co-done-check path{stroke-dasharray:36;stroke-dashoffset:36;animation:coDraw .5s .6s var(--ease) forwards}
@keyframes coDraw{to{stroke-dashoffset:0}}
.co-done-kicker{margin-top:18px;font-size:13px;letter-spacing:.06em;color:var(--muted)}
.co-done h1{margin-top:6px}
.co-done-lead{margin-top:10px;font-size:16px;color:#4b4741}
.co-next{list-style:none;counter-reset:n;margin:36px 0 0;padding:0;text-align:right;display:grid;gap:0;border-top:1px solid var(--line)}
.co-next li{counter-increment:n;display:grid;grid-template-columns:36px 1fr;column-gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}
.co-next li::before{content:"0" counter(n);grid-row:span 2;font-family:var(--latin);font-size:13px;color:var(--muted);padding-top:2px}
.co-next b{font-weight:500;font-size:15px}
.co-next span{font-size:14px;color:#4b4741}

.co-foot{display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:center;padding-block:24px;border-top:1px solid var(--line);font-size:12.5px;color:var(--muted)}
.co-foot a:hover{color:var(--ink)}

@media (max-width:900px){
  .co-top-in{height:64px}
  .co-back,.co-secure{font-size:0;gap:0}
  .co-secure svg{width:18px;height:18px}
  .co-grid{grid-template-columns:1fr;padding-top:0;gap:24px}
  .co-form{grid-column:1;grid-row:2;justify-self:stretch;max-width:none}
  .co-sum{grid-column:1;grid-row:1;position:static;margin-inline:calc(var(--gutter) * -1);border-width:0 0 1px;padding:0}
  .co-sum-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;padding:16px var(--gutter);background:#fff;font-size:14px}
  .co-sum-toggle > span{display:flex;align-items:center;gap:8px}
  .co-sum-toggle svg{width:18px;height:18px}
  .co-sum-toggle .chev{width:14px;height:14px;transition:transform .3s}
  .co-sum-toggle[aria-expanded="true"] .chev{transform:rotate(180deg)}
  .co-sum-toggle b{font-weight:600;font-variant-numeric:tabular-nums}
  .co-sum-body{display:none;padding:4px var(--gutter) 24px;background:#fff}
  .co-sum-toggle[aria-expanded="true"] + .co-sum-body{display:block}
  .co-steps{margin-top:24px}
}
@media (max-width:560px){
  .co-row.two{grid-template-columns:1fr;gap:0}
  .co-row.three{grid-template-columns:1fr 1fr}
  .co-row.three .f:last-child{grid-column:1 / -1}
  .co-pay-tabs{grid-template-columns:1fr 1fr}
}
