.checkout-view.active { animation: none; transform: none; }
.checkout-view .checkout-page {
  width: min(1180px, 100%);
  min-height: 0;
  margin-inline: auto;
  padding: 36px 28px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
  gap: 32px 52px;
  align-items: start;
  background: #fff;
}
.checkout-heading { grid-column: 1 / -1; }
.checkout-heading .back-link { min-height: 44px; margin-bottom: 8px; }
.checkout-heading h1 { margin: 0 0 10px; font-size: 2.5rem; line-height: 1.15; letter-spacing: 0; }
.checkout-heading p { margin: 0; color: var(--muted); }
.checkout-view .checkout-form { grid-column: 1; grid-row: 2; min-width: 0; padding: 0; }
.checkout-form h2, .checkout-channels legend { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; line-height: 1.4; letter-spacing: 0; }
.checkout-form h2 { margin: 0 0 24px; }
.checkout-step { width: 28px; height: 28px; flex: 0 0 28px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--green-deep); background: #e8f2e9; font-size: .875rem; font-weight: 700; }
.checkout-view .checkout-address-fields { gap: 16px; margin-bottom: 24px; }
.checkout-view input, .checkout-view textarea, .checkout-view select { scroll-margin-block: 125px 145px; }
.checkout-view .checkout-address-fields input, .checkout-view textarea { min-width: 0; border-radius: 6px; font-size: 1rem; }
.checkout-view .checkout-field-error { display: block; margin-top: 2px; color: #a62b24; font-size: .8125rem; font-weight: 500; line-height: 1.45; }
.checkout-view input[aria-invalid="true"], .checkout-view textarea[aria-invalid="true"], .checkout-view select[aria-invalid="true"] { border-color: #a62b24; }
.checkout-view .delivery-choice, .checkout-view .payment-options label { border-radius: 6px; background: #fff; }
.checkout-view .checkout-form fieldset { min-width: 0; }
.checkout-view .checkout-channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.checkout-view .checkout-channels legend { margin-bottom: 20px; }
.checkout-channel { min-width: 0; display: flex; align-items: flex-start; gap: 10px; min-height: 116px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }
.checkout-channel:has(input:checked) { border-color: var(--green-deep); background: #f2f8f2; box-shadow: inset 0 0 0 1px var(--green-deep); }
.checkout-channel:has(input:disabled) { background: #f6f6f5; cursor: default; }
.checkout-channel:has(input:focus-visible) { outline: 3px solid var(--green); outline-offset: 3px; }
.checkout-channel input { width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px; margin: 3px 0 0; accent-color: var(--green-deep); }
.checkout-channel span { min-width: 0; }
.checkout-channel strong { display: block; color: var(--cocoa); font-size: .9375rem; }
.checkout-channel small { display: block; margin-top: 6px; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
#checkout-online-availability { color: var(--green-deep); }
.checkout-view .checkout-confirm-heading { margin-top: 36px; margin-bottom: 16px; }
.checkout-coupon { margin:24px 0; padding:20px 0; border-block:1px solid var(--line); }
.checkout-coupon h3 { margin:0 0 12px; font-size:1.05rem; line-height:1.4; }
.checkout-coupon-choice { display:flex; align-items:flex-start; gap:10px; min-height:44px; font-size:.9375rem; line-height:1.6; }
.checkout-coupon-choice input { flex:0 0 20px; width:20px; height:20px; min-height:20px; margin-top:3px; accent-color:var(--green-deep); }
.checkout-coupon-choice span { min-width:0; }
.checkout-coupon-choice strong { display:block; overflow-wrap:anywhere; font-family:monospace; }
.checkout-coupon p { margin:10px 0 0; font-size:.8125rem; line-height:1.6; color:var(--muted); }
.checkout-coupon a { display:inline-block; min-height:44px; padding-block:10px; color:var(--green-deep); font-size:.875rem; font-weight:700; }
#checkout-discount-row { color:var(--green-deep); }
.checkout-view .checkout-note { margin: 16px 0; font-size: .8125rem; line-height: 1.6; }
.checkout-view .order-summary { grid-column: 2; grid-row: 2; position: sticky; top: 104px; min-width: 0; padding: 0 0 0 28px; border-left: 1px solid var(--line); background: #fff; }
.checkout-summary > summary { min-height: 74px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 12px; align-items: center; gap: 12px; padding: 0 0 20px; border-bottom: 1px solid var(--line); list-style: none; cursor: pointer; }
.checkout-summary > summary::-webkit-details-marker { display: none; }
.checkout-summary-title { font-size: 1.1rem; font-weight: 700; }
.checkout-summary-title small, .checkout-summary-amount small { display: block; margin-top: 5px; color: var(--muted); font-size: .75rem; font-weight: 500; }
.checkout-summary-amount { text-align: right; min-width: 0; }
.checkout-summary-amount small { margin-top: 0; margin-bottom: 5px; }
.checkout-summary-amount strong { font-size: 1.125rem; line-height: 1.35; overflow-wrap: anywhere; }
.checkout-summary-chevron { width: 8px; height: 8px; margin-right: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.checkout-summary[open] .checkout-summary-chevron { transform: rotate(225deg); }
.checkout-summary-content { padding-top: 12px; }
.checkout-view .checkout-item { gap: 10px; align-items: start; padding-block: 14px; }
.checkout-view .checkout-item > div { min-width: 0; }
.checkout-view .checkout-item strong, .checkout-view .checkout-item small { overflow-wrap: anywhere; }
.checkout-view .checkout-item b { max-width: 94px; text-align: right; }
.checkout-view .checkout-item-visual { border-radius: 4px; background: #edf3e9; }
.checkout-view .cart-total { align-items: baseline; gap: 16px; line-height: 1.5; }
.checkout-view .cart-total > span { min-width: 0; }
.checkout-view .cart-total > strong { flex: 0 1 auto; max-width: 60%; text-align: right; overflow-wrap: anywhere; }
.checkout-view .grand-total { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 1rem; }
.checkout-view .grand-total strong { font-size: 1.15rem; }
.checkout-view .order-assurance { padding: 20px 0 0; margin: 0; border: 0; background: none; }
.checkout-view .order-assurance p { margin: 8px 0 10px; font-size: .8125rem; line-height: 1.6; }
.checkout-view .order-assurance strong { font-size: .875rem; }
.checkout-actions { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); background: #fff; }
.checkout-action-amount { min-width: 0; }
.checkout-action-amount span { display: block; margin-bottom: 4px; color: var(--muted); font-size: .75rem; }
.checkout-action-amount strong { display: block; font-size: 1.2rem; line-height: 1.25; overflow-wrap: anywhere; }
.checkout-actions .button { min-width: 0; min-height: 52px; width: 100%; padding: 12px 14px; border-radius: 6px; text-align: center; font-size: .9375rem; line-height: 1.4; white-space: normal; }

@media (min-width: 801px) and (max-width: 1080px) {
  .checkout-view .checkout-page { gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(290px, .8fr); }
  .checkout-view .order-summary { padding-left: 22px; }
  .checkout-view .checkout-channels { grid-template-columns: 1fr; }
  .checkout-channel { min-height: 88px; }
}
@media (max-width: 800px) {
  body.checkout-active { padding-bottom: calc(114px + env(safe-area-inset-bottom, 0px)); }
  .checkout-view .checkout-page { padding: 24px 20px 40px; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .checkout-heading h1 { font-size: 2rem; }
  .checkout-heading p { font-size: .875rem; }
  .checkout-view .order-summary { position: static; grid-column: 1; grid-row: 2; padding: 0; border-left: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .checkout-view .checkout-form { grid-column: 1; grid-row: 3; }
  .checkout-summary > summary { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 12px; padding: 18px 0; border: 0; }
  .checkout-summary-title { font-size: 1rem; }
  .checkout-summary-amount strong { font-size: 1rem; }
  .checkout-summary-content { padding-top: 0; }
  .checkout-view .order-assurance { padding: 0 0 16px; }
  .checkout-view .order-assurance p { margin-bottom: 0; }
  .checkout-view .order-assurance > .text-link { margin-top: 8px; }
  .checkout-view .order-summary:has(.checkout-summary:not([open])) .order-assurance { display: none; }
  .checkout-actions { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; margin: 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -4px 18px #163c1612; }
  .checkout-action-amount strong { font-size: 1rem; }
  body.keyboard-open .checkout-actions { position: static; padding: 20px 0 0; margin-top: 24px; box-shadow: none; }
  body.cart-open .checkout-actions, body.detail-open .checkout-actions { visibility: hidden; }
}
@media (max-width: 480px) {
  .checkout-view .checkout-channels { grid-template-columns: minmax(0, 1fr); }
  .checkout-channel { min-height: 88px; }
  .checkout-view .checkout-address-fields { grid-template-columns: minmax(0, 1fr); }
  .checkout-view .checkout-address-fields .field-full { grid-column: auto; }
  .checkout-actions { gap: 10px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); padding-inline: 16px; }
  .checkout-actions .button { padding-inline: 10px; font-size: .875rem; }
}
