.checkout-page {
  --checkout-bg: #f7f7f7;
  --checkout-accent: #ff3500;
  --checkout-border: #f0f0f0;
  background: var(--checkout-bg);
}
.checkout-page .navbar h1 { font-weight: 400; letter-spacing: 0; }
.checkout-page .nav-back span { width: 13px; height: 13px; }
.checkout-body { padding: 12px 12px calc(60px + env(safe-area-inset-bottom)); }
.checkout-card { margin: 0 0 12px; padding: 0 12px; border-radius: 8px; background: var(--surface); font-size: 13px; }
.checkout-recipient {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: start;
  column-gap: 8px;
  row-gap: 6px;
  padding: 11px 9px 12px;
}
.checkout-recipient > :not(.checkout-icon) { grid-column: 2; }
.checkout-account { font-size: 17px; line-height: 22px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.checkout-account-label { color: #77797d; line-height: 18px; }
.checkout-recipient p { color: var(--checkout-accent); font-size: 12px; line-height: 20px; }
.checkout-icon { position: relative; display: inline-grid; place-items: center; flex: none; }
.checkout-account-icon { width: 13px; height: 15px; margin-top: 3px; border-radius: 1px; background: #d9dbdc; }
.checkout-account-icon::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #fff; align-self: end; }
.checkout-account-icon::after { content: ''; width: 7px; height: 4px; border-radius: 4px 4px 1px 1px; background: #fff; align-self: start; }

.checkout-card-heading { display: flex; justify-content: space-between; align-items: center; min-height: 36px; border-bottom: 1px solid var(--checkout-border); }
.checkout-card-heading h2 { font-size: 13px; }
.checkout-card-heading > span { color: var(--muted); }
.checkout-product { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 94px; padding: 10px 0; }
.checkout-thumb { display: grid; place-items: center; width: 68px; height: 68px; }
.checkout-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.checkout-item { min-width: 0; line-height: 1.45; overflow-wrap: anywhere; }
.checkout-spec { margin-top: 2px; color: #77797d; }
.checkout-quantity { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 6px; }
.checkout-quantity strong { color: var(--checkout-accent); font-size: 15px; }
.checkout-quantity span { color: #8b8e95; font-size: 12px; }
.checkout-remark { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--checkout-border); line-height: 20px; }
.checkout-remark textarea { width: 100%; min-height: 40px; padding: 0; border: 0; background: transparent; color: inherit; text-align: right; resize: vertical; font: inherit; font-size: 12px; }
.checkout-remark textarea::placeholder { color: #888b93; }
.checkout-remark textarea:focus-visible { outline: 1px solid var(--orange-text); outline-offset: 3px; border-radius: 2px; }

.checkout-totals { padding-block: 6px; }
.checkout-totals > div { display: flex; justify-content: space-between; align-items: center; min-height: 33px; }
.checkout-discount { color: var(--orange-text); }
.checkout-info, .checkout-invoice-note { border: 0; background: transparent; color: #76787e; }
.checkout-info { padding: 3px 4px; font-size: 12px; }

.checkout-line { display: flex; width: 100%; min-height: 44px; gap: 8px; align-items: center; padding: 0; text-align: left; border: 0; background: transparent; color: inherit; }
.checkout-line + .checkout-line { min-height: 40px; border-top: 1px solid var(--checkout-border); }
.checkout-line:disabled { cursor: default; }
.checkout-coupon-icon, .checkout-invoice-icon { width: 20px; height: 16px; border: 1px solid currentColor; border-radius: 2px; }
.checkout-coupon-icon { color: #f57911; }
.checkout-coupon-icon::before { content: ''; width: 8px; height: 5px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.checkout-coupon-icon::after { content: ''; position: absolute; inset: 5px -1px; background: radial-gradient(circle at left, var(--surface) 1.5px, currentColor 1.6px 2.4px, transparent 2.5px), radial-gradient(circle at right, var(--surface) 1.5px, currentColor 1.6px 2.4px, transparent 2.5px); }
.checkout-invoice-icon { color: #d95181; font-size: 10px; font-weight: 700; }
.checkout-coupon-status { padding: 2px 5px; border-radius: 9px; background: #fff1ed; color: var(--orange-text); font-size: 11px; white-space: nowrap; }
.checkout-end { display: flex; align-items: center; gap: 4px; margin-left: auto; font-size: 12px; white-space: nowrap; }
.checkout-end::after { content: ''; width: 6px; height: 6px; margin-right: 2px; border-top: 1px solid #a8aab0; border-right: 1px solid #a8aab0; transform: rotate(45deg); }
.checkout-invoice-note { display: block; width: 100%; padding: 3px 0 6px 24px; text-align: left; font-size: 12px; line-height: 17px; }
.checkout-invoice-note span { white-space: nowrap; }

.checkout-dock {
  position: fixed;
  z-index: 5;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: min(100%, var(--frame));
  min-height: 48px;
  padding: 7px 12px calc(7px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--checkout-border);
}
.checkout-pay { display: flex; align-items: baseline; gap: 6px; font-size: 12px; }
.checkout-pay strong { color: var(--checkout-accent); font-size: 21px; line-height: 1; font-variant-numeric: tabular-nums; }
.checkout-pay small { font-size: 11px; }
.checkout-submit.primary { width: auto; min-width: 90px; min-height: 32px; padding: 0 16px; font-size: 13px; }
.checkout-submit:disabled { background: #ececee; border-color: #ececee; color: #66696f; cursor: default; }

.checkout-selection-list { display: grid; margin-block: 12px 16px; }
.checkout-selection-list label { display: flex; align-items: center; gap: 10px; min-height: 42px; border-bottom: 1px solid var(--line); cursor: pointer; }
.checkout-selection-list input { margin: 0; accent-color: var(--orange); }
.checkout-selection-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
