.checkout-view { max-width: 1120px; margin: 30px auto 70px; }
.back-to-store { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--muted); font-size: 14px; }
.back-to-store svg { width: 18px; height: 18px; }
.back-to-store:hover { color: var(--ink); }
.checkout-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 24px 0 27px; }
.checkout-eyebrow { font-size: 12px; letter-spacing: 1.5px; color: var(--muted); }
.checkout-heading h1 { margin: 10px 0 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.5; letter-spacing: -.7px; }
.checkout-preview-badge { flex-shrink: 0; font-size: 12px; color: #93502c; background: #fff3e9; border: 1px solid #f3dbc6; padding: 7px 12px; border-radius: 20px; }
.checkout-steps { display: flex; align-items: center; gap: 30px; padding: 0 0 26px; margin: 0 0 32px; border-bottom: 1px solid var(--line); list-style: none; }
.checkout-steps li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); }
.checkout-steps li span { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 12px; }
.checkout-steps li[aria-current] { color: var(--ink); font-weight: 600; }
.checkout-steps li[aria-current] span { color: white; background: var(--accent); border-color: var(--accent); }
.checkout-steps li.complete span { background: var(--ink); color: white; border-color: var(--ink); }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.checkout-panel { padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.panel-heading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 27px; }
.panel-icon { display: grid; place-items: center; width: 44px; height: 44px; background: var(--soft); border-radius: 50%; flex-shrink: 0; }
.panel-heading h2 { font-size: 22px; font-weight: 600; letter-spacing: -.5px; }
.panel-heading p { font-size: 14px; margin-top: 4px; color: var(--muted); }
.checkout-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.field label span { font-size: 12px; font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; border: 1px solid #d7dade; border-radius: 4px; padding: 12px 13px; font: inherit; font-size: 16px; color: var(--ink); background: white; line-height: 1.5; min-width: 0; }
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #93989f; font-size: 14px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b63223; }
.field-error { color: #a52e20; font-size: 12px; line-height: 1.6; margin-top: 5px; }
.payment-methods { padding: 0; margin: 30px 0 0; border: 0; min-width: 0; }
.payment-methods legend { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.payment-method { display: flex; align-items: center; gap: 12px; padding: 16px; background: #fffaf7; border: 1px solid #ebba9e; border-radius: 5px; cursor: pointer; }
.payment-method input { accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; margin: 0; }
.promptpay-mark { display: grid; place-items: center; width: 44px; height: 34px; color: #194267; background: white; font-size: 14px; font-weight: 800; border: 1px solid var(--line); border-radius: 4px; flex-shrink: 0; }
.payment-method strong { display: block; font-size: 16px; font-weight: 600; }
.payment-method small { display: block; font-size: 12px; color: var(--muted); }
.payment-method > svg { margin-left: auto; color: #194267; }
.checkout-privacy { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 23px; }
.checkout-submit { width: 100%; display: flex; justify-content: space-between; background: var(--accent); margin-top: 22px; font-size: 16px; min-height: 52px; }
.checkout-submit:hover { background: var(--accent-dark); }
.checkout-submit:disabled { opacity: .5; }
.checkout-error { margin: 14px 0; background: #fff0ec; border: 1px solid #efc1b3; padding: 12px; border-radius: 4px; color: #9e3524; font-size: 14px; }
.checkout-summary { border-radius: 8px; padding: 26px; background: #f7f8f9; border: 1px solid var(--line); position: sticky; top: 24px; }
.summary-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding-bottom: 7px; }
.summary-heading h2 { font-size: 20px; font-weight: 600; letter-spacing: -.4px; }
.text-button { font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; min-height: 44px; padding: 0; }
.text-button:hover { color: var(--accent-dark); }
.cart-continue { display: block; margin: 8px auto 0; }
.summary-item { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.summary-item .product-photo { width: 62px; border-radius: 4px; }
.summary-item h3 { font-size: 14px; font-weight: 500; line-height: 1.7; overflow-wrap: anywhere; }
.summary-item p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.summary-item > strong { font-size: 14px; white-space: nowrap; font-weight: 600; }
.summary-totals { margin: 21px 0 0; font-size: 14px; }
.summary-totals > div { display: flex; justify-content: space-between; gap: 20px; margin-top: 12px; }
.summary-totals dd { margin: 0; }
.shipping-pending { color: var(--muted); font-size: 12px; }
.summary-totals .summary-grand-total { border-top: 1px solid var(--line); margin-top: 21px; padding-top: 20px; align-items: baseline; color: var(--ink); }
.summary-grand-total dd { font-size: 29px; font-weight: 650; letter-spacing: -.6px; }
.checkout-limit { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.8; }
.checkout-limit.over-limit { color: #a52e20; font-size: 14px; }
.summary-note { display: flex; align-items: flex-start; gap: 11px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.summary-note svg { width: 19px; height: 19px; color: var(--muted); }
.summary-note p { font-size: 12px; color: var(--muted); }
.checkout-empty { padding: 70px 24px; text-align: center; border-radius: 8px; background: var(--soft); }
.checkout-empty h2 { font-size: 24px; }
.checkout-empty p { color: var(--muted); margin-top: 10px; }
.checkout-empty a { margin-top: 25px; }
.payment-preview { text-align: center; }
.payment-status { display: inline-block; font-size: 12px; border-radius: 30px; padding: 5px 12px; background: #fff1e4; color: #945332; }
.payment-panel-heading h2 { margin: 21px 0 12px; font-size: 24px; letter-spacing: -.4px; }
.payment-panel-heading p { color: var(--muted); font-size: 14px; }
.payment-amount { display: block; font-size: 42px; font-weight: 650; line-height: 1.5; letter-spacing: -1px; margin-top: 3px; }
.qr-unavailable { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: min(100%, 240px); aspect-ratio: 1; border: 1px dashed #c8cdd3; border-radius: 8px; background: #f7f8f9; padding: 20px; margin: 24px auto; }
.qr-unavailable svg { width: 44px; height: 44px; color: #6b7480; stroke-width: 1.2; margin-bottom: 6px; }
.qr-unavailable strong { font-size: 16px; font-weight: 500; }
.qr-unavailable span { font-size: 12px; color: var(--muted); }
.payment-explanation { color: var(--muted); font-size: 14px; line-height: 1.9; }
.recipient-review { text-align: left; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 22px; }
.recipient-review h3 { font-size: 14px; font-weight: 600; }
.recipient-review p { margin-top: 8px; color: var(--muted); font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.secondary-button { border: 1px solid #cdd1d6; border-radius: 4px; min-height: 46px; padding: 10px 20px; font-size: 14px; background: white; }
.secondary-button:hover { background: var(--soft); }
.payment-edit { margin-top: 23px; width: 100%; }
@media (max-width: 900px) {
  .checkout-grid { gap: 22px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .checkout-panel, .checkout-summary { padding: 22px; }
  .checkout-fields { grid-template-columns: 1fr; }
  .summary-item { grid-template-columns: 50px minmax(0, 1fr); }
  .summary-item .product-photo { width: 50px; grid-row: 1 / 3; }
  .summary-item > strong { grid-column: 2; }
}
@media (max-width: 700px) {
  .checkout-view { margin-top: 17px; margin-bottom: 40px; }
  .checkout-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-top: 18px; }
  .checkout-heading h1 { font-size: 27px; }
  .checkout-eyebrow { font-size: 12px; letter-spacing: 1px; }
  .checkout-steps { gap: 15px; margin-bottom: 24px; padding-bottom: 22px; flex-wrap: wrap; }
  .checkout-steps li { font-size: 12px; gap: 6px; }
  .checkout-steps li span { width: 23px; height: 23px; }
  .checkout-grid { display: flex; flex-direction: column; gap: 24px; }
  .checkout-grid > * { width: 100%; }
  .checkout-summary { position: static; order: -1; }
  .payment-stage .checkout-summary { order: 0; }
  .checkout-summary, .checkout-panel { padding: 21px 18px; }
  .summary-item { grid-template-columns: 50px minmax(0, 1fr) auto; }
  .summary-item .product-photo { grid-row: auto; }
  .summary-item > strong { grid-column: auto; }
  .panel-heading { gap: 12px; }
  .panel-heading h2 { font-size: 20px; }
  .payment-method { gap: 10px; padding: 13px; }
  .payment-method > svg { display: none; }
  .checkout-heading h1 { letter-spacing: -.7px; }
}
