/* V4: Five-step guest checkout inspired by the supplied checkout flow. */
.checkout-page{padding:35px 0 62px;min-height:570px}
.checkout-page>h1{font:700 clamp(26px,3.1vw,36px)/1.2 Arial,Helvetica,sans-serif;letter-spacing:-1.1px;color:#252c2a;margin:0 0 21px}
.checkout-steps{display:flex;gap:8px;align-items:center;list-style:none;margin:0 0 30px;padding:0;flex-wrap:wrap}
.checkout-steps li{margin:0;padding:0}
.checkout-step-pill{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;border:1px solid #dce3df;background:#fff;color:#67736e;border-radius:30px;padding:8px 13px;font-size:13px;line-height:1.2;min-height:36px}
.checkout-step-pill:not(:disabled):hover{border-color:var(--green)}
.checkout-step-pill:disabled{opacity:1;color:#84908a;cursor:default}
.checkout-step-pill.is-current{background:var(--green);border-color:var(--green);color:#fff;font-weight:700}
.checkout-step-pill.is-complete{color:var(--green);border-color:var(--green);background:#f7faf8}
.step-number{font-weight:700;font-size:13px}
.checkout-grid{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(290px,1fr);align-items:start;gap:30px}
.checkout-primary{min-width:0}
.checkout-panel,.checkout-summary,.checkout-success-card{border:1px solid #dce3df;border-radius:5px;background:#fff}
.checkout-panel{padding:29px;min-height:390px}
.checkout-panel>h2,.checkout-summary h2{font:700 20px/1.3 Arial,Helvetica,sans-serif;letter-spacing:-.45px;color:#28322f;margin:0 0 23px}
.checkout-form{display:flex;flex-direction:column;gap:17px}
.checkout-fields-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.checkout-field{display:flex;flex-direction:column;gap:6px;min-width:0;color:#303a35;font-size:13px;font-weight:500}
.checkout-field>span{line-height:1.4}
.field-optional{color:#8a958f;font-weight:400}
.checkout-field input,.checkout-field textarea{width:100%;min-width:0;border:1px solid #ccd5cf;background:#fff;color:#29362f;border-radius:4px;padding:12px 13px;line-height:1.45;font-size:14px;transition:border-color .16s,box-shadow .16s}
.checkout-field input{height:46px}
.checkout-field input:focus,.checkout-field textarea:focus{border-color:#3c765e;outline:none;box-shadow:0 0 0 3px #29785218}
.checkout-field input[readonly],.checkout-field input:disabled{background:#f7f8f6;color:#64706b}
.checkout-field small{color:#7a857e;font-size:11px;font-weight:400}
.checkout-check{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.5;cursor:pointer;color:#35423b}
.checkout-check input{width:16px;height:16px;min-width:16px;margin:2px 0 0;accent-color:var(--green);cursor:pointer}
.checkout-confirm{margin-top:0}
#billing-extra{border-top:1px solid #e5eae7;padding-top:15px;display:flex;flex-direction:column;gap:15px}
#billing-extra h3{font:700 16px/1.3 Arial,Helvetica,sans-serif;margin:0}
.checkout-actions{display:flex;align-items:center;gap:12px;margin-top:3px;flex-wrap:wrap}
.checkout-actions .btn{min-height:44px}
.checkout-back{background:#fff;color:#37453d;border:1px solid #cbd3ce;box-shadow:0 2px 4px #0000000b;padding:11px 16px;border-radius:4px;min-height:44px}
.checkout-back:hover{background:#f5f7f4}
.delivery-choice{border:1px solid #d7dfda;border-radius:5px;padding:19px 17px;display:flex;align-items:center;gap:13px;cursor:pointer}
.delivery-choice.selected{background:#e6f0e9;border-color:var(--green)}
.delivery-choice input{accent-color:var(--green);width:17px;height:17px;flex-shrink:0}
.delivery-choice b{display:block;font-size:16px;margin-bottom:2px}
.delivery-choice small{font-size:13px;line-height:1.6;color:#6d7972;display:block}
.checkout-notice{background:#f5f2e9;border:1px solid #e7e2d7;padding:18px;border-radius:4px;font-size:14px;color:#303c34}
.checkout-notice strong{font-weight:700}
.checkout-notice p{margin:8px 0 0;color:#637068;line-height:1.6}
.review-details{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:3px 0 5px}
.review-details b{font-size:14px}
.review-description{font-size:13px;color:#66716b;white-space:pre-line;line-height:1.6;margin:3px 0 5px;overflow-wrap:anywhere}
.review-details .text-btn{color:var(--green);text-decoration:underline;font-size:13px}
.checkout-summary{padding:21px;position:sticky;top:14px}
.checkout-summary-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.checkout-summary-heading h2{margin:0;font-size:18px}
.checkout-summary-heading a{font-size:12px;text-decoration:underline;color:var(--green)}
.checkout-order-items{border-bottom:1px solid #e1e6e2;padding:6px 0 16px}
.checkout-summary-product{display:flex;justify-content:space-between;gap:8px;padding:5px 0;align-items:flex-start;font-size:12px;color:#3a4740}
.checkout-summary-product>div{flex:1;min-width:0}
.checkout-summary-name{display:block;line-height:1.4}
.checkout-summary-product strong{font-size:12px;white-space:nowrap}
.checkout-summary-origin{font-size:11px;color:#8b978f;display:block;margin-top:4px}
.checkout-totals{padding-top:11px}
.checkout-totals>div{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;font-size:13px;padding:7px 0}
.checkout-totals>div>span:last-child{color:#69756d;text-align:right}
.checkout-totals .checkout-grand{border-top:1px solid #e0e5e2;margin-top:6px;padding-top:14px;font-size:15px;color:#28352d}
.checkout-footnote{font-size:11px;line-height:1.55;color:#75817a;margin:12px 0 0}
.checkout-empty{padding:35px;border:1px solid #dce3df;border-radius:5px;max-width:650px}
.checkout-empty h2{font:700 24px Arial,Helvetica,sans-serif}
.checkout-success-page{padding:42px 0 80px;min-height:540px}
.checkout-success-card{max-width:700px;padding:35px;margin:0 auto}
.checkout-success-card h1{font:700 clamp(27px,4vw,37px)/1.2 Arial,Helvetica,sans-serif;letter-spacing:-.8px;margin:18px 0 12px}
.checkout-success-card>p{color:#647169;font-size:15px}
.success-mark{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:#e5f3e9;color:#206646;font-size:36px;font-weight:bold}
.success-reference{background:#f5f7f4;color:#2e4a3c!important;font-size:12px!important;font-weight:700;letter-spacing:.04em;padding:12px;border-radius:4px;overflow-wrap:anywhere}
.receipt-details{border-block:1px solid #e5eae7;margin:20px 0;padding:8px 0}
.receipt-item,.receipt-total{display:flex;gap:15px;justify-content:space-between;font-size:13px;padding:7px 0;color:#3c4840}
.receipt-item span{flex:1}
.receipt-item strong{white-space:nowrap}
.receipt-total{border-top:1px solid #e5eae7;padding-top:14px;margin-top:8px;font-size:15px}
.success-warning{margin-top:18px}
.checkout-success-actions{display:flex;gap:12px;margin-top:22px;flex-wrap:wrap}
#checkout-link.is-disabled{opacity:.5;cursor:not-allowed}
@media(max-width:950px){.checkout-grid{grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr);gap:15px}.checkout-panel{padding:20px}.checkout-summary{padding:17px}}
@media(max-width:730px){.checkout-grid{grid-template-columns:1fr}.checkout-summary{position:static}.checkout-page{padding:22px 0 50px}.checkout-steps{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding:0 0 8px;margin-bottom:15px}.checkout-panel{min-height:0}.checkout-summary{order:2}}
@media(max-width:490px){.checkout-fields-two,.review-details{grid-template-columns:1fr;gap:13px}.checkout-panel{padding:18px}.checkout-actions{align-items:stretch}.checkout-actions .btn{flex:1}.checkout-step-pill{padding:8px 10px;font-size:12px}.checkout-success-card{padding:22px}.checkout-success-actions .btn{width:100%}}
/* Keep inactive steps and optional billing fields hidden despite component display rules. */
.checkout-panel[hidden],#billing-extra[hidden],#checkout-empty[hidden],.checkout-success-card[hidden]{display:none!important}
