/* Checkout pages. White background by the owner's request; gold accent from the shop brand. */
.ams-checkout-body {
  --co-bg: #ffffff; --co-text: #111111; --co-muted: #5b5b5b; --co-border: #e4e4e4; --co-surface: #f7f7f7;
  --co-accent: #C6A15B; --co-accent-ink: #111111; --co-ok: #1a7f37; --co-warn: #b54708; --co-err: #b42318;
  background: var(--co-bg); color: var(--co-text); margin: 0;
}
.co { max-width: 1040px; margin: 0 auto; padding: 24px 16px 80px; font-family: var(--font-body, Inter, -apple-system, sans-serif); line-height: 1.45; }
.co-narrow { max-width: 640px; }
.co h1 { font-family: var(--font-head, Outfit, Inter, sans-serif); font-size: 1.7rem; margin: 0 0 4px; color: var(--co-text); }
.co h2 { font-family: var(--font-head, Outfit, Inter, sans-serif); font-size: 1.05rem; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; color: var(--co-text); }
.co .eyebrow { color: var(--co-accent); }
.co-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.co-sub { color: var(--co-muted); font-size: 0.9rem; margin: 6px 0; }
.co-sub a, .co a { color: var(--co-text); }
.co-num { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--co-text); color: #fff; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (max-width: 860px) { .co-grid { grid-template-columns: 1fr; } .co-summary { order: -1; } }
.co-card { border: 1px solid var(--co-border); border-radius: 10px; padding: 18px; margin-bottom: 18px; background: #fff; }
.co-card-summary { background: var(--co-surface); }
.co-card.is-locked { opacity: .5; pointer-events: none; }
.co-summary { position: sticky; top: 12px; }
.co-items { list-style: none; margin: 0 0 8px; padding: 0; }
.co-items li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--co-border); font-size: 0.92rem; }
.co-items .t { display: block; color: var(--co-muted); font-size: 0.78rem; }
.co-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 0.95rem; }
.co-total { border-top: 2px solid var(--co-text); margin-top: 6px; padding-top: 10px; font-weight: 700; font-size: 1.1rem; }
.co-trust { font-size: 0.78rem; color: var(--co-muted); margin-top: 10px; }
.co-fulfill { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .co-fulfill { grid-template-columns: 1fr; } }
.co-choice { display: block; position: relative; border: 2px solid var(--co-border); border-radius: 10px; padding: 14px; cursor: pointer; min-height: 100px; background: #fff; }
.co-choice.is-on { border-color: var(--co-text); background: var(--co-surface); }
.co-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.co-choice:focus-within { outline: 2px solid var(--co-accent); outline-offset: 2px; }
.co-choice strong { display: block; margin-bottom: 4px; }
.co-choice small { color: var(--co-muted); }
.co .field { margin: 0 0 12px; }
.co .field label { display: block; font-size: 0.8rem; color: var(--co-muted); margin-bottom: 4px; }
.co .field input, .co .field select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #c9c9c9; border-radius: 8px; background: #fff; color: var(--co-text); font: inherit; box-sizing: border-box; }
.co .field input:focus, .co .field select:focus { outline: 2px solid var(--co-text); outline-offset: 1px; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .co-row, .co-row3 { grid-template-columns: 1fr; } }
.co-check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; }
.co-check input { width: 22px; height: 22px; margin-top: 1px; }
.co .btn { display: inline-block; min-height: 48px; padding: 12px 20px; border-radius: 8px; border: 1px solid var(--co-text); background: var(--co-text); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; box-sizing: border-box; }
.co .btn-cta { background: var(--co-accent); border-color: var(--co-accent); color: var(--co-accent-ink); }
.co .btn-outline { background: #fff; color: var(--co-text); }
.co .btn-sm { min-height: 40px; padding: 8px 14px; font-size: 0.9rem; }
.co .btn:disabled { opacity: .5; cursor: default; }
.co-block { display: block; width: 100%; }
.co-msg { border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.co-notice { color: var(--co-warn); background: #fffaeb; border: 1px solid #fedf89; border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.co .form-error { color: var(--co-err); background: #fef3f2; border: 1px solid #fecdca; }
.co .form-success { color: var(--co-ok); background: #ecfdf3; border: 1px solid #abefc6; }
.co-rates { list-style: none; margin: 12px 0 0; padding: 0; }
.co-rates label { display: flex; align-items: center; gap: 12px; border: 2px solid var(--co-border); border-radius: 10px; padding: 12px; margin-bottom: 8px; cursor: pointer; background: #fff; }
.co-rates label.is-on { border-color: var(--co-text); }
.co-rates input { width: 20px; height: 20px; }
.co-rates .name { font-weight: 600; }
.co-rates .eta { display: block; font-size: 0.8rem; color: var(--co-muted); }
.co-rates .price { margin-left: auto; font-weight: 700; white-space: nowrap; }
.co-shop { background: var(--co-surface); border-radius: 10px; padding: 12px 14px; font-size: 0.92rem; }
.co-paytabs { display: flex; gap: 8px; margin-bottom: 14px; }
.co-paytab { flex: 1; min-height: 46px; border: 2px solid var(--co-border); background: #fff; color: var(--co-text); border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; }
.co-paytab.is-on { border-color: var(--co-text); background: var(--co-surface); }
#stripe-element { margin-bottom: 14px; }
/* The hidden attribute must always win, whatever display the button classes set. */
.co [hidden], .ams-checkout-body [hidden] { display: none !important; }

.co-foot { margin-top: 32px; border-top: 1px solid var(--co-border); padding-top: 20px; font-size: 0.92rem; color: var(--co-muted); }
.co-foot strong { color: var(--co-text); }
.co-foot-grid { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.co-foot-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.co-foot-links { margin: 14px 0 0; }
.co-foot-links a { color: var(--co-text); margin-right: 4px; }
