:root{color-scheme:light;--navy:#11243b;--muted:#495665;--gold:#a98647;--cream:#f8f5ed;--paper:#fffdf8;--line:#ded5c4;font:16px/1.55 system-ui,sans-serif;color:var(--navy);background:var(--cream)}
*{box-sizing:border-box}
body{margin:0}
header,footer{background:var(--paper);border-block-end:1px solid var(--line)}
header div,footer div,main{width:min(100% - 2rem,68rem);margin:auto}
header div{display:flex;gap:1rem;justify-content:space-between;align-items:center;padding:1rem 0}
header img{display:block;width:9rem;height:3.8rem;object-fit:contain;object-position:left center}
main{padding:clamp(2rem,8vw,5rem) 0;min-height:65vh}
.panel{max-width:45rem;padding:clamp(1.25rem,5vw,3.5rem);background:var(--paper);border:1px solid var(--line);border-top:4px solid var(--gold);border-radius:.5rem;margin:0 auto}
.admin .panel{max-width:none;margin-bottom:1rem}
h1,h2{font-family:Georgia,serif;font-weight:400;line-height:1.1;margin:.3em 0 .65em}
h1{font-size:clamp(2.15rem,6vw,4rem)}h2{font-size:1.8rem}
p{max-width:64ch}a{color:inherit;text-underline-offset:.2em}
.kicker{color:var(--muted);font-size:.78rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.brand-logo{max-width:11rem;max-height:5rem;object-fit:contain}
button,.button{display:inline-block;background:var(--navy);color:#fff;padding:.7rem 1.1rem;border:1px solid var(--navy);border-radius:.25rem;text-decoration:none;font:inherit;font-weight:650;cursor:pointer}
button:disabled{opacity:.7;cursor:default}
:focus-visible{outline:3px solid #a26100;outline-offset:3px}
label{display:grid;gap:.25rem;font-weight:600}input,select{max-width:100%;padding:.6rem;border:1px solid #87919b;border-radius:.25rem;font:inherit;background:white;color:inherit}
fieldset{border:1px solid var(--line);padding:1rem;margin:1rem 0}.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:1rem}
.inline{display:flex;flex-wrap:wrap;gap:.5rem;align-items:end;margin:.5rem 0}
.notice{background:#f1e7cf;padding:.85rem 1rem;border-left:3px solid var(--gold)}
dl{display:grid;grid-template-columns:auto 1fr;gap:.5rem 1rem}dd{margin:0;font-weight:600}
footer{border-block-start:1px solid var(--line)}footer div{padding:1.25rem 0;color:var(--muted)}footer p{margin:.35rem 0}
code{overflow-wrap:anywhere}.records article{border-top:1px solid var(--line);padding:1rem 0}.records p{margin:.35rem 0}

.payment-review{grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:.75rem;margin:1.5rem 0}
.payment-review div{padding:.85rem 1rem;background:var(--cream);border:1px solid var(--line);border-radius:.35rem;min-width:0}
.payment-review dt{color:var(--muted);font-size:.9rem}
.payment-review dd{font-size:1.3rem;overflow-wrap:anywhere}
.payment-review .review-amount{font-variant-numeric:tabular-nums}

/* Branded checkout */
.checkout-page {
  min-height:100vh;
  background:radial-gradient(ellipse at top, #e9e0ce 0, transparent 38rem), #f8f5ed;
}
.checkout-page header {background:#fffdf9}
.checkout-page .staging-badge {
  max-width:16rem;
  padding:.45rem .75rem;
  border-radius:2rem;
  border:1px solid #ded5c4;
  background:#f7f2e8;
  text-align:center;
  letter-spacing:.08em;
}
.checkout-page main {width:min(100% - 1.5rem, 52rem);padding:clamp(1.5rem, 5vw, 4rem) 0}
.checkout-panel {
  max-width:none;
  border-top:3px solid #a98647;
  border-radius:1rem;
  padding:clamp(1.3rem, 4.4vw, 3.25rem);
  box-shadow:0 1.5rem 4rem #24314814;
}
.checkout-panel .brand-logo {display:block;width:auto;max-width:min(12rem, 65%);max-height:4rem}
.checkout-panel h1 {font-size:clamp(2.3rem, 5.6vw, 3.75rem);margin:.45rem 0 .65rem;letter-spacing:-.025em}
.checkout-panel > p:not(.kicker):not(.notice) {color:var(--muted)}
.checkout-panel .checkout-test {font-size:.86rem;font-weight:650;margin:0 0 1.65rem}
.checkout-progress {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.5rem;
  margin:1.5rem 0 1.7rem;
  padding:0 0 1rem;
  list-style:none;
  border-bottom:1px solid var(--line);
}
.checkout-progress li {
  display:flex;
  align-items:center;
  gap:.45rem;
  min-width:0;
  color:var(--muted);
  font-size:.82rem;
  line-height:1.3;
  font-weight:650;
}
.checkout-progress li span {
  display:grid;
  flex:none;
  place-items:center;
  width:1.65rem;
  height:1.65rem;
  border-radius:50%;
  background:#f0ebe0;
}
.checkout-progress li[aria-current] {color:var(--navy)}
.checkout-progress li[aria-current] span {background:var(--navy);color:white}
.checkout-progress li.complete span {background:#e8e0cb;color:var(--navy)}
.checkout-panel .fields label {gap:.4rem}
.checkout-panel input:not([type="hidden"]) {
  width:100%;
  min-height:3rem;
  padding:.65rem .85rem;
  border-radius:.55rem;
  border-color:#8b8f92;
}
.checkout-panel label small {font-size:.83rem;font-weight:400;color:var(--muted)}
.checkout-panel .checkout-action {max-width:none;margin:1.5rem 0 1rem}
.checkout-action button {
  width:100%;
  min-height:3.2rem;
  padding:.8rem 1.15rem;
  border-radius:.55rem;
  transition:background-color .15s ease,border-color .15s ease;
}
.checkout-action button:hover:not(:disabled) {background:#213d59;border-color:#213d59}
.checkout-panel .payment-review {gap:1rem;margin:1.5rem 0}
.checkout-panel .payment-review div {padding:1rem 1.1rem;border-radius:.65rem;background:#f8f4eb}
.checkout-panel .payment-review dd {margin-top:.18rem;font-size:clamp(1.2rem,3vw,1.65rem)}
.checkout-panel .review-amount {font-family:Georgia,serif;font-weight:400}
.checkout-panel .checkout-trust {
  display:flex;
  align-items:center;
  gap:.55rem;
  padding:.8rem 0;
  margin:.7rem 0 0;
  border-block-start:1px solid var(--line);
  font-size:.85rem;
}
.checkout-trust svg {width:1.1rem;height:1.1rem;flex:none}
.checkout-panel .checkout-help {font-size:.92rem;margin:.55rem 0 0}
.checkout-status {display:grid;place-items:center;width:3rem;height:3rem;border-radius:50%;background:#efe5d1;color:var(--navy);font-size:1.45rem;font-weight:700}
.checkout-status-success {background:#e2eee7;color:#1f624a}
@media (max-width:28rem) {
  .checkout-page header div {gap:.5rem}
  .checkout-page header img {width:7rem}
  .checkout-page .staging-badge {font-size:.63rem;padding:.35rem .5rem}
  .checkout-progress li {font-size:.72rem;gap:.3rem}
  .checkout-progress li span {width:1.3rem;height:1.3rem}
}
