body { min-height: 100vh; background: #f4f7fb; }
.commerce-main { padding-block: 25px 48px; }
.commerce-main h1 { margin-bottom: 18px; font-size: clamp(1.6rem, 4vw, 2.25rem); line-height: 1.15; }
.commerce-main h2 { font-size: 1.04rem; }
.commerce-order-status { margin: -8px 0 16px; color: var(--brand-muted); }
.commerce-order-status strong { color: var(--brand-ink); }
.commerce-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 345px); gap: 16px; align-items: start; }
.commerce-panel { min-width: 0; padding: 17px; border: 1px solid var(--brand-line); border-radius: 11px; background: #fff; }
.commerce-sidebar, .checkout-form, .commerce-promo { display: grid; gap: 10px; }
.commerce-main .button { min-height: 38px; }
.commerce-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: start; padding-block: 12px; }
.commerce-item + .commerce-item { border-top: 1px solid var(--brand-line); }
.commerce-item-description { display: grid; gap: 4px; overflow-wrap: anywhere; }
.commerce-muted, .commerce-quantity label { font-size: .87rem; color: var(--brand-muted); }
.commerce-quantity { display: flex; flex-wrap: wrap; gap: 6px; align-items: end; }
.commerce-quantity label { display: grid; gap: 3px; }
.commerce-quantity input, .commerce-promo input { min-height: 38px; border: 1px solid var(--brand-line); border-radius: 7px; padding: 5px 8px; }
.commerce-quantity input { width: 75px; }
.commerce-link { min-height: 38px; padding: 4px 6px; border: 0; background: transparent; color: var(--brand-blue); font-weight: 650; }
.commerce-link:hover { text-decoration: underline; }
.commerce-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.commerce-line-total, .commerce-totals dd { white-space: nowrap; font-variant-numeric: tabular-nums; }
.commerce-totals { display: grid; gap: 5px; margin: 0; }
.commerce-totals div, .commerce-summary-items li { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.commerce-totals dd { margin: 0; text-align: right; }
.commerce-grand { padding-top: 9px; border-top: 1px solid var(--brand-line); font-weight: 750; }
.commerce-summary-items { display: grid; gap: 7px; font-size: .88rem; }
.commerce-summary-items strong { white-space: nowrap; }
.commerce-empty p, .commerce-error { margin-bottom: 12px; }
.commerce-error { color: #a51a33; }
.commerce-back { display: inline-block; margin-bottom: 10px; font-weight: 650; }
.payment-options { display: grid; gap: 8px; }
.payment-options label { display: flex; align-items: center; gap: 8px; padding: 9px; min-height: 43px; border: 1px solid var(--brand-line); border-radius: 7px; }
.payment-options label:has(:checked) { background: #edf5ff; border-color: #5085bf; }
.checkout-fields { display: grid; gap: 8px; min-width: 0; margin: 0 0 8px; padding: 0; border: 0; }
.checkout-fields legend { padding: 0 0 8px; font-weight: 700; }
.checkout-fields textarea { display: block; width: 100%; margin: 4px 0 6px; padding: 8px; border: 1px solid var(--brand-line); border-radius: 7px; resize: vertical; }
.checkout-fields .errorlist, .checkout-problems { margin: 0 0 8px; padding-inline-start: 20px; color: #a51a33; list-style: disc; }
.checkout-pickup a { color: var(--brand-blue); text-decoration: underline; }
.checkout-layout:not(:has([name="receive_method"][value="delivery"]:checked)) .checkout-delivery,
.checkout-layout:has([name="receive_method"][value="delivery"]:checked) .checkout-pickup { display: none; }
.test-invoice { padding: 9px; background: #f4f7fb; border-radius: 7px; }
.test-invoice summary { color: var(--brand-blue); font-weight: 650; }
.test-invoice p { margin-top: 7px; }
@media (max-width: 840px) { .commerce-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .commerce-item { grid-template-columns: minmax(0, 1fr) auto; }
  .commerce-item-description { grid-column: 1 / -1; }
  .commerce-quantity { grid-column: 1 / -1; }
}
