.cart-layout,.checkout-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:32px;align-items:start}.cart-item{display:grid;grid-template-columns:100px 1fr auto;gap:20px;align-items:start;padding:24px 0;border-bottom:1px solid #deded7}.cart-item img{object-fit:contain;background:#f5f4ef;border-radius:6px}.cart-item input{width:70px;display:inline-block;margin:0 12px}.order-summary{position:sticky;top:20px;background:#f7f6f1}.order-summary button{width:100%;margin:16px 0}.order-summary>a{display:block;margin-top:12px}.checkout-layout h2{font-size:1.25rem}.checkout-layout label{display:block}.checkout-layout input:not([type=checkbox]){width:100%;box-sizing:border-box}.checkout-layout .line>label{flex:1;min-width:0}.checkout-layout input[type=checkbox]{width:auto;margin-right:8px}.checkout-layout details{padding:16px 0;border-top:1px solid #ddd}.checkout-layout summary{cursor:pointer}.checkout-layout button:disabled{opacity:.55;cursor:wait}.checkout-layout fieldset{border:0;padding:0;margin:0}.checkout-layout #state:empty{display:none}.checkout-step{letter-spacing:.1em;text-transform:uppercase;font-size:.75rem;color:#666}.checkout-summary-item{display:flex;gap:12px;align-items:center;margin-bottom:16px}.checkout-summary-item img{width:56px;height:56px;object-fit:contain}.checkout-summary-item span{flex:1}#email-status,#recovery-status{font-size:.85rem}input:focus-visible,button:focus-visible{outline:2px solid #264e46;outline-offset:3px}@media(max-width:760px){.cart-layout,.checkout-layout{grid-template-columns:1fr;gap:20px}.order-summary{position:static}.cart-item{grid-template-columns:72px 1fr;gap:12px}.cart-item img{width:72px;height:72px}.cart-item>strong{grid-column:2}.checkout-layout .line{flex-wrap:wrap}.checkout-layout .line>label{min-width:130px}}
/* Phase347: one clear action per stage, shared premium checkout styling. */
.checkout-page{background:#faf9f5;color:#20332f;padding:48px 0 72px}.checkout-page>.shell{max-width:1120px}.checkout-page h1{font-family:Georgia,serif;font-size:clamp(2.2rem,5vw,3.2rem);font-weight:400;margin:6px 0}.checkout-intro{color:#68726d;margin-bottom:32px}.checkout-layout{grid-template-columns:minmax(0,1.25fr) minmax(300px,.85fr);gap:36px}.checkout-layout .card{border:1px solid #dedfd6;border-radius:18px;box-shadow:none;padding:28px;background:#fff}.checkout-layout .order-summary{background:#f2f3ec}.checkout-layout h2{font-family:Georgia,serif;font-size:1.45rem;font-weight:400}.checkout-layout .checkout-step{color:#69776e;margin:24px 0 0}.checkout-layout .checkout-step:first-child{margin-top:0}.checkout-layout label{font-size:.9rem;font-weight:500}.checkout-layout input:not([type=checkbox]){min-height:48px;border:1px solid #ccd3ca;border-radius:8px;background:#fff;padding:12px;margin-top:6px;font:inherit}.checkout-layout button:not(.text-button){border-radius:8px;background:#244d40;color:#fff;min-height:46px}.checkout-layout button.secondary{background:transparent;color:#244d40;border:1px solid #bbc7bd}.checkout-layout button:disabled{cursor:not-allowed;opacity:.55}.checkout-layout button[aria-busy=true]{cursor:progress}.text-button{border:0!important;background:none!important;color:#244d40!important;padding:0!important;font:inherit;text-decoration:underline;cursor:pointer;box-shadow:none!important}.checkout-layout #reminder-label{font-weight:400;font-size:.85rem;line-height:1.5}.checkout-layout #recovery-status:empty{display:none}.checkout-summary-item{align-items:start;margin:24px 0}.checkout-summary-item img{width:64px;height:76px;border-radius:8px;background:#fff}.checkout-summary-item span>strong{font-size:.95rem;font-weight:500}.checkout-summary-item small{display:block;color:#65716a;margin-top:5px}.checkout-layout .line{padding:8px 0;gap:16px}.summary-total{border-top:1px solid #ccd3ca;margin-top:12px;font-size:1.2rem}.summary-products{border:0!important;padding:0!important}.summary-products>summary{font-size:1.2rem;font-weight:600;list-style:none}.summary-products>summary::-webkit-details-marker{display:none}.payment-card #confirm-payment{width:100%;margin-top:24px}.checkout-page dialog{max-width:480px;width:calc(100% - 32px);border:1px solid #dedfd6;border-radius:18px;padding:24px}.checkout-page dialog::backdrop{background:#14251f88}.checkout-page dialog .card{box-shadow:none;border:0;padding:16px 0}.checkout-page #close-checkout-login{display:block;margin-left:auto}.checkout-page [hidden]{display:none!important}
@media(max-width:760px){.checkout-page{padding:24px 0 48px}.checkout-layout{display:flex;flex-direction:column;gap:22px}.checkout-layout>div,.checkout-layout>aside{width:100%;box-sizing:border-box}.checkout-layout>aside{order:-1}.checkout-layout .card{padding:20px}.checkout-layout .line>label{min-width:110px}.summary-products>summary{list-style:disclosure-closed}.checkout-intro{margin-bottom:24px}.checkout-summary-item img{width:52px;height:64px}}

.confirmation-shell{max-width:760px!important;display:grid;gap:24px}.confirmation-shell .card{padding:28px;border-radius:18px;border:1px solid #dedfd6;box-shadow:none}.confirmation-heading{text-align:center}.confirmation-actions{display:flex;gap:24px;align-items:center;flex-wrap:wrap}.confirmation-shell .line{display:flex;justify-content:space-between}.confirmation-shell h2{font-family:Georgia,serif;font-weight:400}

#payment-element{padding:18px 14px;border:1px solid #c6d0c5;border-radius:8px;background:white;margin:24px 0}

/* Account conveniences keep the existing checkout spacing and touch targets. */
.checkout-page fieldset{border:1px solid #d8ddd7;border-radius:12px;padding:18px;min-width:0}
.checkout-page input[type=checkbox]{width:auto;min-height:auto;margin-right:8px}
.checkout-page select{width:100%;min-height:48px;font:inherit;border:1px solid #8c968b;border-radius:8px;padding:10px;background:#fff;color:#20332f}
.checkout-page details summary{cursor:pointer;text-decoration:underline;padding:10px 0}

/* Separate billing uses its own grid; the fieldset remains a normal group. */
.checkout-page #billing-fields{margin-top:16px;padding:16px;min-width:0}
.checkout-page #billing-fields legend{padding:0 6px;font-size:.9rem}
.checkout-page .billing-address-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.checkout-page .billing-address-grid>label{min-width:0}
.checkout-page .billing-address-grid>label:nth-child(3),.checkout-page .billing-address-grid>label:nth-child(4){grid-column:1/-1}
.checkout-page .billing-address-grid select{margin-top:6px;max-width:100%}
@media(max-width:520px){.checkout-page .billing-address-grid{grid-template-columns:minmax(0,1fr)}}

/* Reversible checkout presentation378: compact sections, native accessible menus. */
.checkout-layout #checkout-form{gap:16px}.checkout-layout h2{margin:8px 0;font-size:1.3rem}.checkout-layout .checkout-step{margin:14px 0 0}.checkout-layout #contact-summary{margin:0 0 6px}.checkout-layout details summary{padding:8px 0;text-decoration:none}.checkout-layout details summary:hover{text-decoration:underline}.checkout-layout #delivery-summary{display:flex;align-items:start;justify-content:space-between;gap:16px;font-size:.95rem;line-height:1.5}.delivery-edit{flex:none;text-decoration:underline;font-weight:600}.checkout-layout #delivery-details{padding:14px 0}.checkout-layout #delivery-details[open] #delivery-summary{margin-bottom:16px}.checkout-layout #delivery-details[open] .delivery-edit{display:none}.checkout-layout input[type=checkbox]{width:18px;height:18px;vertical-align:middle;accent-color:#244d40}.checkout-layout label:has(>input[type=checkbox]){padding:7px 0;line-height:1.5}.checkout-layout .coupon-section h2{display:none}.checkout-layout .cashback-help{border:0;padding:0;font-size:.85rem;line-height:1.5}.checkout-layout #earn-rewards{margin-bottom:8px}.checkout-layout #total-status{padding:10px 0;margin:8px 0 0;font-size:.9rem}.checkout-layout #benefit-fields:empty{display:none}.confirmation-heading{padding:24px!important}.confirmation-heading h1{font-size:clamp(1.8rem,4vw,2.5rem);margin:12px 0}.confirmation-access{margin:0;font-size:.95rem;line-height:1.6}
.checkout-page select,#account select{appearance:none;-webkit-appearance:none;min-height:48px;width:100%;box-sizing:border-box;padding:12px 42px 12px 14px;border:1px solid #aeb9ae;border-radius:8px;background-color:#fff;background-image:linear-gradient(45deg,transparent 50%,#244d40 50%),linear-gradient(135deg,#244d40 50%,transparent 50%);background-position:calc(100% - 20px) 21px,calc(100% - 14px) 21px;background-size:6px 6px;background-repeat:no-repeat;color:#20332f;font:inherit;line-height:1.4}.checkout-page select:focus-visible,#account select:focus-visible{outline:2px solid #244d40;outline-offset:3px}
@media(max-width:760px){.checkout-page{padding-top:18px}.checkout-intro{margin-bottom:20px}.checkout-layout{gap:18px}.checkout-layout .card{padding:20px}.checkout-layout #checkout-form{gap:12px}.checkout-layout h2{font-size:1.25rem}.checkout-layout #delivery-summary{font-size:.9rem}}
@media(forced-colors:active){.checkout-page select,#account select{appearance:auto;background-image:none}}
