body.checkout-page { min-height: 100vh; background: var(--paper); }
.checkout-page [hidden] { display: none !important; }
.test-banner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 18px;
  color: #fff;
  background: #6d4d31;
  font-size: 13px;
  text-align: center;
}
.test-banner strong { letter-spacing: .12em; }
.checkout-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
}
.checkout-back { color: var(--muted); font-size: 14px; font-weight: 700; }
.checkout-main {
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .72fr);
  gap: clamp(42px, 7vw, 90px);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) 28px 100px;
}
.checkout-copy h1 { max-width: 680px; margin: 10px 0 0; font-size: clamp(50px, 6vw, 78px); }
.checkout-intro { max-width: 690px; margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.checkout-form { margin-top: 44px; }
.checkout-form fieldset { margin: 0 0 32px; padding: 0; border: 0; }
.checkout-form legend { width: 100%; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 25px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field-wide { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 700; }
.field input,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 500;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px; background-repeat: no-repeat; background-size: 5px 5px; padding-right: 38px; }
.field input:focus,
.field select:focus { outline: 2px solid var(--earth); outline-offset: 2px; }
.optional { color: var(--muted); font-size: 12px; font-weight: 500; }
.delivery-intro { margin: -4px 0 18px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.delivery-options { display: grid; gap: 10px; }
.delivery-option {
  min-height: 72px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.delivery-option:has(input:checked) { border-color: var(--earth-dark); box-shadow: inset 0 0 0 1px var(--earth-dark); background: #f8f2e9; }
.delivery-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--earth-dark); }
.delivery-option span { min-width: 0; }
.delivery-option strong,
.delivery-option small { display: block; }
.delivery-option strong { font-size: 15px; }
.delivery-option small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.delivery-fields { margin-top: 16px; padding: 18px; border: 1px solid var(--line); background: var(--paper-deep); }
.delivery-fields .field input,
.delivery-fields .field select { background-color: #fff; }
.delivery-help { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.pickup-location-details { margin: 10px 0 0; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.checkout-consents { display: grid; gap: 13px; margin-top: 8px; padding: 22px; background: var(--paper-deep); }
.consent-row { display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start; font-size: 14px; line-height: 1.55; }
.consent-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--earth-dark); }
.consent-row a { font-weight: 700; text-decoration: underline; }
.checkout-payment-note { margin-top: 24px; padding: 20px 22px; border: 1px solid var(--line); background: #fff; }
.checkout-payment-note strong { font-size: 16px; }
.checkout-payment-note p { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.checkout-error { min-height: 22px; margin: 18px 0 0; color: #9c2f26; font-size: 14px; font-weight: 700; }
.checkout-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 8px;
  border: 1px solid var(--ink);
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
}
.checkout-submit:hover:not(:disabled) { color: var(--ink); background: transparent; }
.checkout-submit:disabled { opacity: .45; cursor: not-allowed; }
.checkout-submit-note { margin: 9px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.order-summary {
  position: sticky;
  top: 28px;
  align-self: start;
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
}
.summary-heading { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.summary-heading .eyebrow { margin: 0 0 6px; font-size: 12px; }
.summary-heading h2 { margin: 0; font-size: 31px; }
.summary-items { display: grid; }
.summary-item { display: grid; grid-template-columns: 70px 1fr; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.summary-item img { width: 70px; height: 88px; object-fit: cover; background: var(--paper-deep); }
.summary-item h3 { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.3; }
.summary-item p { margin: 6px 0; color: var(--muted); font-size: 13px; }
.summary-item strong { font-size: 14px; }
.summary-empty { padding: 35px 0; text-align: center; }
.summary-empty p { color: var(--muted); }
.summary-empty a { font-weight: 700; text-decoration: underline; }
.summary-price-row,
.summary-total { display: flex; justify-content: space-between; gap: 20px; }
.summary-price-row { padding-top: 16px; color: var(--muted); font-size: 14px; }
.summary-coupon { margin-top: 16px; padding: 13px 14px; background: #eee5da; }
.summary-coupon span { display: block; color: var(--muted); font-size: 11px; }
.summary-coupon strong { display: block; margin-top: 4px; font-size: 13px; overflow-wrap: anywhere; }
.summary-discount strong { color: var(--earth-dark); }
.summary-total { margin-top: 16px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 18px; }
.summary-total strong { font-size: 22px; }
.summary-shipping { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.checkout-footer { padding: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-align: center; }

.result-main { max-width: 760px; min-height: calc(100vh - 125px); display: grid; place-items: center; margin: 0 auto; padding: 70px 22px; text-align: center; }
.result-card { width: 100%; padding: clamp(36px, 7vw, 70px); border: 1px solid var(--line); background: #fff; }
.result-mark { width: 66px; height: 66px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 50%; color: #fff; background: var(--earth-dark); font-size: 30px; }
.result-mark.rejected, .result-mark.error { background: #8a332c; }
.result-mark.cancelled { background: #786858; }
.result-card h1 { margin: 8px 0 0; font-size: clamp(42px, 8vw, 66px); }
.result-card > p { margin: 20px auto 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.result-order { display: inline-block; margin-top: 20px; padding: 10px 13px; background: var(--paper-deep); font-weight: 700; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.result-actions a { min-height: 48px; display: grid; place-items: center; padding: 0 20px; border: 1px solid var(--ink); font-weight: 700; }
.result-actions a:first-child { color: #fff; background: var(--ink); }

.privacy-main { max-width: 760px; margin: 0 auto; padding: clamp(54px, 8vw, 96px) 24px 110px; }
.privacy-main h1 { margin: 10px 0 28px; font-size: clamp(48px, 8vw, 72px); }
.privacy-main h2 { margin: 38px 0 10px; font-size: 28px; }
.privacy-main p { color: var(--muted); font-size: 17px; line-height: 1.75; }

@media (max-width: 820px) {
  .checkout-main { grid-template-columns: 1fr; }
  .order-summary { position: static; order: -1; }
}
@media (max-width: 560px) {
  .test-banner { display: grid; gap: 2px; }
  .checkout-header { min-height: 70px; padding-inline: 18px; }
  .checkout-header .brand { width: 100px; }
  .checkout-main { padding: 38px 16px 70px; }
  .checkout-copy h1 { font-size: clamp(44px, 13vw, 58px); }
  .field-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .order-summary { padding: 22px 18px; }
}
