/* Checkout page: form on the left, order summary on the right (stacked on phones). */
.checkout-page { padding-bottom: 0; background: var(--ivory); }
.co-header .header-row { min-height: 72px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.co-main { padding: 22px 0 64px; }
.co-main:focus { outline: none; }
.co-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.co-back { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; color: var(--green); font-weight: 600; text-decoration: none; }
.co-back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.co-back:hover span { text-decoration: underline; text-underline-offset: 4px; }
.co-steps { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; color: var(--muted); }
.co-steps li { display: flex; align-items: center; gap: 6px; }
.co-steps li + li::before { content: ""; width: 18px; height: 1px; background: var(--rule-strong); }
.co-steps .is-done { color: var(--green); }
.co-steps .is-current { color: var(--green); font-weight: 600; }

.co-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) {
  .co-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 56px; }
  .co-summary { position: sticky; top: 24px; }
}
/* on phones the summary comes first so people see what they're paying for */
@media (max-width: 959px) { .co-summary { order: -1; } }

.co-title { font-size: clamp(1.875rem, 1.5rem + 1.4vw, 2.5rem); line-height: 1.1; margin-bottom: 18px; }
.co-block { margin: 0 0 26px; padding: 22px 0 0; border: 0; border-top: 1px solid var(--rule); min-width: 0; }
.co-block legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font-size: 1.25rem; font-weight: 600; }
.co-block legend + * { clear: both; }
.co-hint { margin: -6px 0 14px; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.co-row .co-city { grid-column: 1 / -1; }
@media (min-width: 600px) { .co-row { grid-template-columns: 2fr 1fr 1fr; } .co-row .co-city { grid-column: auto; } }
.field select {
  display: block; width: 100%; min-height: var(--tap); padding: 0 12px;
  background: #fff; border: 1px solid var(--rule-strong); border-radius: 0; font: inherit; font-size: 1.125rem; color: var(--green);
}
.co-pay { position: sticky; bottom: 0; background: var(--ivory); padding: 14px 0 8px; border-top: 1px solid var(--rule); }
@media (min-width: 960px) { .co-pay { position: static; border-top: 0; padding-top: 0; } }

.co-summary { background: #fff; border: 1px solid var(--rule); padding: 22px 20px; }
.co-sum-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 16px; }
.co-edit { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: var(--copper-ink); font-weight: 500; }

.co-footer { padding: 26px 0 36px; border-top: 1px solid var(--rule); font-size: 0.9375rem; color: var(--muted); }
.co-footer p + p { margin-top: 6px; }
.co-footer a { color: var(--green); }
.checkout-page .order-done { margin-top: 10px; }

.order-sub { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; font-size: 1.0625rem; }
.order-sub .tbd { font-size: 0.9375rem; color: var(--muted); text-align: right; }
.ship-free { color: var(--green); font-weight: 600; }
.co-summary .order-total { margin-top: 6px; border-top: 1px solid var(--rule); }

/* accepted payment methods, under the summary */
.pay-logos { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--rule); }
.pay-title { font-size: 0.9375rem; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.pay-logos ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pay-logos li { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 58px; padding: 0 10px; border: 1px solid var(--rule-strong); border-radius: 4px; background: #fff; }
.pay-logos img { width: auto; height: 26px; }
.pay-txt { font-size: 0.875rem; font-weight: 600; color: var(--green); }
.pay-txt svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.pay-stripe { margin-top: 10px; font-size: 0.875rem; color: var(--muted); }
