.compact-checkout {
  --ink: #122035;
  --line: #dbe2ea;
  --muted: #435369;
  --accent: #9a3412;
  max-width: 580px;
  margin: 28px auto 38px;
  padding-inline: 18px;
  color: var(--ink);
}
.compact-checkout h1 { margin: 0 0 14px; font-size: clamp(28px, 5vw, 38px); line-height: 1.1; }
.compact-checkout h2 { margin: 0 0 10px; font-size: 18px; }
.compact-checkout [hidden] { display: none !important; }
.compact-selection, .compact-form { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; }
.compact-selection { background: #f8fafc; }
.compact-form { margin-top: 12px; background: white; }
.compact-items { list-style: none; padding: 0; margin: 0; }
.compact-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 12px; padding: 7px 0; }
.compact-items li + li { border-top: 1px solid var(--line); }
.compact-items li > div:first-child { display: grid; gap: 2px; overflow-wrap: anywhere; }
.compact-items li > div:first-child span, .compact-note, .compact-help { color: var(--muted); font-size: 13px; }
.compact-item-price { grid-column: 2; grid-row: 1; }
.compact-quantity { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.compact-quantity button { min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.compact-quantity button:disabled { opacity: .45; cursor: default; }
.compact-quantity .compact-remove { padding-inline: 9px; }
.compact-edit, .compact-browse, .compact-policies a, .compact-help a {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-size: 13px;
}
.compact-totals { margin: 5px 0 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: 14px; }
.compact-totals div { display: flex; justify-content: space-between; gap: 10px; }
.compact-totals dd { margin: 0; font-weight: 650; }
.compact-totals .compact-total { padding-top: 4px; font-size: 17px; font-weight: 800; }
.compact-fields { display: grid; gap: 8px; }
.compact-fields label { display: grid; gap: 3px; font-weight: 650; font-size: 14px; }
.compact-fields input { display: block; width: 100%; min-height: 44px; padding: 7px 10px; border: 1px solid #8290a1; border-radius: 8px; color: var(--ink); background: white; font: 16px system-ui, sans-serif; }
.compact-note { margin: 11px 0 0; line-height: 1.45; }
.compact-policies { display: flex; flex-wrap: wrap; gap: 0 14px; }
.compact-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.compact-message { margin: 8px 0; padding: 10px; background: #fff3e8; border: 1px solid #f1c09f; border-radius: 8px; }
.compact-pay button { width: 100%; min-height: 49px; padding: 8px 14px; border: 0; border-radius: 9px; background: #9a3412; color: white; font: 750 16px system-ui, sans-serif; cursor: pointer; }
.compact-pay button:disabled { opacity: .7; cursor: wait; }
.compact-checkout :is(a, button, input):focus-visible { outline: 3px solid #174d9a; outline-offset: 2px; }
.compact-help { margin: 3px 0 0; }
@media (max-width: 640px) {
  .compact-checkout { margin-top: 16px; padding-inline: 12px; }
  .compact-selection, .compact-form { padding: 13px; }
  body.has-compact-payment { padding-bottom: calc(79px + env(safe-area-inset-bottom)); }
  html:has(.has-compact-payment) { scroll-padding-bottom: calc(85px + env(safe-area-inset-bottom)); }
  .compact-pay { position: fixed; inset: auto 0 0; z-index: 100; background: #fff; border-top: 1px solid var(--line); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .compact-pay button { display: block; max-width: 544px; margin-inline: auto; }
  .compact-checkout :is(input, a, .compact-message) { scroll-margin-bottom: 12px; }
}
