@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #101933;
  --blue: #012169;
  --muted: #536075;
  --line: #d6dce5;
  font: 100%/1.5 "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: #f4f6fa;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, ul, dl, p, dd { margin: 0; }
a { color: var(--blue); text-underline-offset: .2em; }
button, select, input { font: inherit; }
:focus-visible { outline: 3px solid #487cce; outline-offset: 3px; }
.skip { position: absolute; left: 1rem; top: -5rem; padding: .75rem; background: #fff; }
.skip:focus { top: .5rem; }
.frame { width: min(100% - 3rem, 68rem); margin-inline: auto; }
.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.masthead-inner, .summary-title, .product, .outcome-actions { display: flex; align-items: center; gap: 1rem; }
.masthead-inner { justify-content: space-between; min-height: 4.8rem; }
.wordmark { display: block; width: clamp(8.2rem, 18vw, 11rem); height: auto; }
.back, .summary-title a { font-weight: 650; text-decoration: none; }
.back:hover, .summary-title a:hover { text-decoration: underline; }
main { padding-block: clamp(2rem, 5vw, 4.2rem) 4rem; }
h1 { font-size: clamp(2.35rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.06em; font-weight: 670; margin-bottom: 1.65rem; }
h2 { font-size: clamp(1.3rem, 2.1vw, 1.55rem); font-weight: 670; line-height: 1.2; letter-spacing: -.035em; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); align-items: start; gap: clamp(1rem, 3vw, 2.3rem); }
.card { min-width: 0; padding: clamp(1.25rem, 3vw, 2.15rem); background: white; border: 1px solid var(--line); border-radius: 1rem; }
fieldset { padding: 0; margin: 1.5rem 0 0; border: 0; min-width: 0; display: grid; gap: 1.05rem; }
label { font-weight: 650; font-size: .9rem; }
.optional, .product p, .totals dt, .meta { color: var(--muted); }
.optional { font-weight: 450; }
input:not([type="checkbox"]), select { display: block; width: 100%; min-width: 0; height: 2.9rem; margin-top: .32rem; border: 1px solid #a8b4c3; border-radius: .45rem; background-color: #fff; padding: .5rem .65rem; color: var(--ink); font-size: 1rem; font-weight: 450; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: #a72b25; background-color: #fff8f7; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .65rem; min-height: 2.9rem; padding: .72rem 1.2rem; border: 0; border-radius: .5rem; font: inherit; font-weight: 680; color: white; background: var(--blue); text-decoration: none; cursor: pointer; }
.button:hover:not(:disabled) { background: #153880; }
.button:disabled { opacity: .54; cursor: auto; }
.shipping-button { margin-top: 1.5rem; }
.summary-title { justify-content: space-between; }
.summary-title a { font-size: .9rem; white-space: nowrap; }
.product { margin-top: 1.5rem; }
.product img { width: 4.1rem; height: 4.1rem; flex: none; border-radius: .55rem; object-fit: cover; }
.product p, .meta { font-size: .88rem; }
#items { padding: 0; margin-top: 1.35rem; list-style: none; }
#items li, .totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: .85rem; }
#items li { margin-block: .8rem; }
.line-description { display: grid; }
.backorder-detail { margin-top: .75rem; }
.line-total, .totals dd { text-align: end; font-variant-numeric: tabular-nums; }
.line-total { white-space: nowrap; }
.totals { margin-top: 1.15rem; padding-top: .65rem; border-top: 1px solid var(--line); }
.totals > div { padding-block: .4rem; }
.totals dd { font-weight: 620; }
.totals .savings dt, .totals .savings dd { color: #1f6b55; }
.totals .total { margin-top: .45rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.total dt { color: var(--ink); font-weight: 650; }
.total small { color: var(--muted); font-weight: 500; }
.total dd { font-size: 1.55rem; letter-spacing: -.04em; }
.notice { margin-top: 1rem; padding: .85rem 1rem; border-radius: .5rem; background: #edf2f9; overflow-wrap: anywhere; }
.notice.error { background: #fff1ed; color: #852619; }
.retry { display: block; margin-top: .45rem; border: 0; background: transparent; color: inherit; text-decoration: underline; text-underline-offset: .2rem; cursor: pointer; padding: .25rem 0; font-weight: 650; }
.consent { display: flex; align-items: flex-start; gap: .65rem; margin-top: 1rem; font-weight: 500; }
.consent input { flex: none; width: 1.1rem; height: 1.1rem; margin: .1rem 0 0; accent-color: var(--blue); }
.payment-button { width: 100%; margin-top: 1.25rem; }
.outcome { max-width: 39rem; }
.outcome-actions { flex-wrap: wrap; margin-top: 1.35rem; }
@media (max-width: 48rem) {
  .frame { width: min(100% - 2rem, 34rem); }
  .masthead-inner { min-height: 4rem; }
  .checkout-grid { grid-template-columns: minmax(0, 1fr); }
  main { padding-top: 1.65rem; }
  .shipping-button { width: 100%; }
}
@media (max-width: 24rem) {
  .frame { width: calc(100% - 1.25rem); }
  .card { padding: 1rem; }
  .pair { grid-template-columns: minmax(0, 1fr); }
}

.delivery-note, .shipping-area { color: var(--muted); font-size: .92rem; margin-top: .55rem; }
.shipping-area { font-size: .85rem; }
.address-locality { display: grid; grid-template-columns: 1.3fr .9fr 1fr; gap: .7rem; }
#address-extra summary { width: fit-content; color: var(--blue); cursor: pointer; font-size: .9rem; }
#address-extra[open] label { display: block; margin-top: .5rem; }
@media (max-width: 48rem) {
  .checkout-grid .summary { grid-row: 1; }
  .checkout-grid .summary .product { margin-top: .8rem; }
}
@media (max-width: 30rem) {
  .address-locality { grid-template-columns: 1fr 1fr; }
  .address-locality > :first-child { grid-column: 1 / -1; }
}
