.checkout { margin-top: 24px; min-width: 0; }
.checkout .checkout-plan-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.checkout .checkout-plan-option { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; text-align: left; min-width: 0; }
.checkout .checkout-plan-option[aria-pressed="true"] { padding: 23px; }
.checkout-plan-option .checkout-plan-current { font-size: 32px; }
.checkout-plan-action { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--green); }
.checkout-confirmation { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 20px 0; padding-top: 20px; border-top: 1px solid var(--line); }
.checkout-confirmation > div { flex: 1 1 240px; min-width: 0; }
.checkout-confirmation p { margin: 0; }
#checkout-selection { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.checkout-confirmation .checkout-note { margin-top: 8px; }
.checkout-dialog { box-sizing: border-box; width: min(600px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper, white); color: var(--ink); overflow: auto; }
.checkout-dialog::backdrop { background: rgb(0 0 0 / .45); }
.checkout-close { display: block; margin: 0 0 16px auto; }
.pricing-layout:has([data-checkout]) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 600px) { .checkout .checkout-plan-options { grid-template-columns: minmax(0, 1fr); } #checkout-confirm { width: 100%; } }
#choose .route-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.checkout-plan-option:only-child { grid-column: 1 / -1; }
@media (max-width: 600px) {
  .checkout .checkout-plan-option { padding: 18px; }
  .checkout .checkout-plan-option[aria-pressed="true"] { padding: 17px; }
}
.checkout [hidden] { display: none !important; }
.checkout button { cursor: pointer; max-width: 100%; white-space: normal; }
.checkout button:disabled { opacity: .6; cursor: not-allowed; }
.checkout-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.checkout-order, .checkout-note { font-size: 13px; overflow-wrap: anywhere; }
#checkout-qr { display: block; width: min(256px, 100%); height: auto; margin: 20px auto; background: white; border-radius: 12px; }
.checkout-card { display: block; padding: 16px; margin: 16px 0; background: white; color: #15372a; border: 1px solid #c4d7cc; border-radius: 10px; font-size: 18px; overflow-wrap: anywhere; user-select: all; }

.checkout-progress { padding: 20px; border: 2px solid var(--green); border-radius: 14px; background: var(--soft); color: var(--ink); scroll-margin-top: 110px; }
.checkout-progress[data-stage="ready"] { padding: 0; border: 0; background: transparent; }
.checkout-progress[data-stage="ready"] h3 { margin-bottom: 4px; font-size: 16px; }
.checkout-progress h3 { font-size: clamp(21px, 3vw, 28px); line-height: 1.4; margin: 0 0 12px; color: inherit; }
.checkout-progress p { color: inherit; }
.checkout-progress[data-stage="loading"] h3::before { content: ""; display: inline-block; width: 20px; height: 20px; margin-right: 10px; border: 3px solid var(--line); border-top-color: var(--green); border-radius: 50%; vertical-align: middle; animation: checkout-spin .8s linear infinite; }
@keyframes checkout-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .checkout-progress[data-stage="loading"] h3::before { animation: none; } }
.checkout-location { font-weight: 600; margin-bottom: 0; }
.checkout-progress[data-stage="paid"], .checkout-progress[data-stage="delivered"] { background: var(--soft); border-color: var(--green); color: var(--green-dark); }
.checkout-progress[data-stage="paid"] h3::before, .checkout-progress[data-stage="delivered"] h3::before { content: "✓ "; }
.checkout-delivery { margin-top: 16px; padding: 20px; border: 2px solid var(--green); border-radius: 14px; background: var(--paper); color: var(--ink); }
.checkout-delivery .checkout-card-label { font-weight: 700; color: var(--green-dark); margin: 0; }
.checkout-delivery .checkout-card { font-size: 22px; font-weight: 700; background: var(--soft); }
.checkout-delivery > button { width: 100%; font-size: 18px; }
.checkout-delivery h4 { margin: 24px 0 12px; }
.checkout-delivery ol { padding-left: 22px; line-height: 1.8; }
.checkout-progress:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
@media (max-width: 420px) { .checkout-progress, .checkout-delivery { padding: 16px; } }
