/* Shopping, checkout and receipts. */
.cart-layout { grid-template-columns: minmax(0, 1.5fr) minmax(310px, 1fr); gap: clamp(34px, 5vw, 76px); align-items: start; padding-bottom: 88px; }
.cart-layout > div { min-width: 0; }
.cart-lines { margin: 24px 0 27px; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-thumb { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 115px; padding: 12px 8px 7px; overflow: hidden; }
.cart-thumb > span { font-size: 7px; letter-spacing: .1em; line-height: 1.4; }
.cart-thumb svg { flex: none; width: 59px; height: 79px; max-width: 100%; }
.cart-line-info { min-width: 0; padding-top: 1px; }
.cart-line-info .eyebrow { margin-bottom: 6px; font-size: 9px; letter-spacing: .11em; }
.cart-line-info > a { display: block; max-width: 340px; font-size: 13px; line-height: 1.5; font-weight: 500; }
.cart-line-info > a:hover { color: var(--rust); }
.cart-line-info > small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.cart-line > strong { padding-top: 22px; white-space: nowrap; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.cart-line-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 15px; }
.cart-line .quantity { height: 38px; flex: none; border-color: #b9c2b2; background: var(--white); }
.cart-line .quantity button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; font-size: 16px; line-height: 1; }
.cart-line .quantity button:disabled { opacity: .35; }
.cart-line .quantity span { display: inline-block; width: 24px; font-size: 12px; }
.text-button { display: inline-block; border: 0; padding: 5px 0; background: transparent; color: var(--muted); font-size: 11px; line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: var(--rust); }
.shipping-progress { margin: 0; padding: 19px 21px; background: #e9ecdf; }
.shipping-progress p { color: var(--ink); font-size: 12px; line-height: 1.65; }
.shipping-progress > div { height: 3px; margin: 12px 0 9px; background: #ced5c2; overflow: hidden; }
.shipping-progress > div > span { display: block; height: 100%; background: #718665; max-width: 100%; transition: width 220ms ease; }
.shipping-progress > small { display: block; color: var(--muted); font-size: 9px; line-height: 1.6; }
.summary-card { padding: 30px; background: var(--sage); position: sticky; top: 24px; }
.summary-card > .eyebrow { margin-bottom: 10px; font-size: 9px; }
.summary-card h2 { font-size: 35px; margin: 0 0 25px; }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 9px 0; font-size: 12px; }
.summary-row strong, .summary-product strong { flex: none; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.summary-product { display: flex; align-items: baseline; justify-content: space-between; gap: 22px; padding: 14px 0; border-bottom: 1px solid #cbd2c3; font-size: 11px; line-height: 1.65; }
.summary-product:last-of-type { margin-bottom: 13px; }
.summary-product > span { min-width: 0; }
.summary-product small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.summary-total { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; border-top: 1px solid #bdc7b5; margin-top: 16px; padding-top: 21px; font-size: 15px; }
.summary-total strong { font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.summary-card .mini-label, .bag-content .mini-label, .receipt .mini-label { font-size: 9px; line-height: 1.65; margin-top: 10px; color: var(--muted); }
.discount-row { color: #48623f; }
.discount-row .text-button { padding: 0 5px; color: inherit; text-decoration: none; font-size: 15px; }
#coupon-form { display: flex; align-items: stretch; gap: 0; margin-top: 23px; }
#coupon-form input { min-width: 0; width: 100%; min-height: 43px; padding: 10px 11px; border-right: 0; background: #fffdf8aa; font-size: 11px; }
#coupon-form button { flex: none; padding: 10px 17px; border: 1px solid #aebaa5; background: transparent; font-size: 11px; }
#coupon-form button:hover { background: #d7decc; }
#coupon-form + small { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.full-width { width: 100%; }
.summary-card > .button { margin-top: 23px; padding-inline: 15px; }
.checkout-note, .summary-card p.checkout-note { margin-top: 19px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.bag-overlay { justify-content: flex-end; align-items: stretch; padding: 0; }
.bag-overlay .bag-drawer { width: min(500px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; padding: 43px 32px 30px; overflow: auto; overscroll-behavior: contain; animation: bag-in 220ms ease-out; }
.bag-drawer .modal-close { top: 14px; right: 17px; width: 38px; height: 38px; }
.bag-content > .eyebrow { font-size: 9px; margin: 9px 30px 12px 0; }
.bag-content h2 { font-size: 38px; margin-bottom: 25px; }
.bag-content .shipping-progress { margin-bottom: 0; }
.bag-lines { margin-top: 6px; }
.bag-lines .cart-line { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; padding: 23px 0; }
.bag-lines .cart-thumb { min-height: 101px; padding-inline: 4px; }
.bag-lines .cart-thumb svg { width: 53px; height: 72px; }
.bag-lines .cart-line-info > a { font-size: 12px; }
.bag-lines .cart-line > strong { font-size: 12px; }
.bag-lines .cart-line-controls { gap: 12px; margin-top: 12px; }
.bag-content > .summary-total { padding-top: 23px; border-top: 0; margin-top: 0; font-size: 13px; }
.bag-content > .button { margin: 23px 0 13px; }
.bag-content > .text-link { display: table; margin-inline: auto; text-align: center; font-size: 11px; }
.bag-content > .checkout-note { text-align: center; }
.empty-icon { display: flex; justify-content: center; margin: 0 auto 30px; }
.empty-icon > svg { width: 42px; height: 42px; stroke-width: 1.2; }
.empty-state h1 { font-size: clamp(38px, 5vw, 58px); margin-bottom: 22px; }
.checkout-heading { margin-bottom: 35px; padding-bottom: 30px; }
.checkout-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin: 28px 0 0; color: var(--muted); font-size: 11px; }
.checkout-steps > a, .checkout-steps > span { padding-bottom: 8px; }
.checkout-steps .active { color: var(--ink); border-color: var(--ink); }
.checkout-steps > a:hover { color: var(--rust); }
.checkout-layout > div > .note { margin: 0 0 30px; padding: 16px 20px; font-size: 11px; }
.checkout-section { padding: 0 0 30px; margin: 0 0 30px; border-bottom: 1px solid var(--line); }
.checkout-section h2 { font-size: 31px; margin-bottom: 23px; }
.checkout-section .section-head { align-items: center; gap: 20px; margin-bottom: 23px; }
.checkout-section .section-head h2 { margin: 0; }
.checkout-section .section-head .text-link { font-size: 10px; }
.checkout-section > p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.checkout-section > small { display: block; color: var(--muted); font-size: 10px; line-height: 1.7; margin-top: 15px; }
.checkout-layout .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.checkout-layout .form-field { font-size: 11px; gap: 8px; }
.checkout-layout .form-field input, .checkout-layout .form-field select { width: 100%; min-height: 46px; font-size: 13px; }
.checkout-choice { display: flex; align-items: center; gap: 13px; padding: 17px 16px; border: 1px solid var(--line); margin-top: 11px; cursor: pointer; font-size: 12px; }
.checkout-choice:has(input:checked) { border-color: #829276; background: #e9ecdf; }
.checkout-choice input { flex: none; width: 16px; height: 16px; margin: 0; }
.checkout-choice > span { flex: 1; min-width: 0; }
.checkout-choice strong { font-size: 12px; font-weight: 500; }
.checkout-choice > strong { flex: none; font-variant-numeric: tabular-nums; }
.checkout-choice small { display: block; color: var(--muted); font-size: 10px; line-height: 1.65; margin-top: 4px; }
.checkout-consent { display: flex; align-items: flex-start; gap: 11px; margin: 0 0 23px; font-size: 11px; line-height: 1.7; color: var(--muted); cursor: pointer; }
.checkout-consent input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; }
.order-success { max-width: 740px; padding-block: 66px 90px; text-align: center; }
.success-seal { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 29px; border: 1px solid #a3b094; border-radius: 50%; background: var(--sage); }
.success-seal svg { width: 25px; height: 25px; stroke-width: 1.4; }
.order-success h1 { font-size: clamp(42px, 5vw, 66px); }
.order-success > p { max-width: 520px; margin: 23px auto 0; color: var(--muted); font-size: 13px; }
.receipt { margin-top: 35px; padding: 30px; background: var(--sage); text-align: left; }
.receipt .section-head { margin-bottom: 15px; align-items: baseline; gap: 18px; }
.receipt .section-head h3 { font: 500 12px/1.5 var(--sans); letter-spacing: .04em; overflow-wrap: anywhere; }
.receipt .section-head > span { flex: none; font-size: 10px; color: var(--muted); }
.order-success .hero-actions { justify-content: center; flex-wrap: wrap; gap: 22px; }
@keyframes bag-in { from { transform: translateX(30px); opacity: .7; } to { transform: translateX(0); opacity: 1; } }
@media (max-width: 1000px) {
  .cart-layout { grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr); gap: 30px; }
  .cart-line { grid-template-columns: 70px minmax(0, 1fr) auto; gap: 14px; }
  .cart-line-info > a { font-size: 12px; }
  .summary-card { padding: 25px; }
  .checkout-layout .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cart-layout { grid-template-columns: minmax(0, 1fr); gap: 38px; padding-bottom: 58px; }
  .cart-layout .summary-card { position: static; }
  .cart-line { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; padding-block: 23px; }
  .cart-line > strong { font-size: 12px; }
  .cart-line .quantity { height: 42px; }
  .cart-line .quantity button { width: 38px; height: 40px; }
  .cart-line-controls { gap: 12px; }
  .shipping-progress { padding: 17px 18px; }
  .summary-card { padding: 26px; }
  .checkout-heading { padding-bottom: 24px; }
  .checkout-steps { gap: 25px; margin-top: 24px; }
  .checkout-section { padding-bottom: 26px; margin-bottom: 26px; }
  .checkout-section .section-head { gap: 12px; flex-wrap: wrap; }
  .checkout-layout .form-grid { grid-template-columns: 1fr 1fr; }
  .checkout-layout .form-grid .form-field:nth-child(-n+2), .checkout-layout .form-grid .form-field:last-child { grid-column: 1/-1; }
  .checkout-choice { padding: 16px 13px; }
  .order-success { padding-block: 50px 60px; }
  .receipt { padding: 23px; }
  .order-success .hero-actions { flex-direction: column; }
}
@media (max-width: 420px) {
  .cart-line { grid-template-columns: 62px minmax(0, 1fr) auto; gap: 11px; }
  .cart-thumb { min-height: 97px; padding: 10px 4px 5px; }
  .cart-thumb svg { width: 48px; height: 65px; }
  .cart-thumb > span { font-size: 6px; }
  .cart-line-info > small { font-size: 10px; }
  .cart-line-controls { gap: 7px 12px; }
  .bag-overlay .bag-drawer { padding: 43px 20px 25px; }
  .bag-lines .cart-line { grid-template-columns: 61px minmax(0, 1fr) auto; gap: 10px; }
  .summary-card { padding: 23px; }
  .summary-total { gap: 14px; }
  .checkout-choice { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .bag-overlay .bag-drawer { animation: none; }
  .shipping-progress > div > span { transition: none; }
}

/* Destination, reusable addresses and a persistent local checkout draft. */
.cart-destination { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:8px 20px; padding:0 0 22px; }
.cart-destination .eyebrow { display:block; margin-bottom:7px; }
.cart-destination strong { font:500 13px/1.5 var(--sans); }
.cart-destination p { flex-basis:100%; color:var(--muted); font-size:11px; line-height:1.6; }
.checkout-saved-address { margin-bottom:22px; padding:18px; background:var(--sage); }
.checkout-saved-address p,.checkout-delivery-note { margin-top:10px; font-size:11px; line-height:1.7; color:var(--muted); }
.checkout-saved-address select { max-width:100%; }
.checkout-section .checkout-delivery-note { font-size:11px; margin-top:-10px; }
.checkout-draft-note { display:flex; align-items:baseline; flex-wrap:wrap; justify-content:space-between; gap:10px 20px; margin-top:16px; }
.checkout-draft-note small { font-size:10px; line-height:1.7; color:var(--muted); }
.checkout-form-error { color:var(--rust); font-size:12px; line-height:1.6; margin-bottom:16px; }
.checkout-form-error:empty { display:none; }
@media print {
 body:has(.order-success) #header, body:has(.order-success) #footer, body:has(.order-success) #overlay-root, body:has(.order-success) #toast, .order-success .hero-actions { display:none!important; }
 .order-success { max-width:none; padding:0; }
 .order-success .receipt { break-inside:avoid; border:1px solid #ccc; background:white; }
}

.receipt-brand{font:600 16px/1.3 var(--sans);margin:0 0 24px;color:var(--ink)}
