.checkout-document {
  width: 100%;
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: auto;
}
.checkout-page {
  width: 100%;
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: auto;
  user-select: text;
  background: radial-gradient(ellipse at 78% 0%, #211a18 0, #0a0a09 42%, #080807 75%);
}
.checkout-page button,
.checkout-page input,
.checkout-page textarea { user-select: text; }
.checkout-page [hidden] { display: none !important; }
.checkout-header {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(20px, 6vw, 88px);
  border-bottom: 1px solid rgba(232, 226, 216, 0.12);
}
.checkout-wordmark {
  color: var(--ivory);
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.2em;
}
.checkout-wordmark span { color: rgba(232, 226, 216, 0.72); font-weight: 300; }
.checkout-back { color: rgba(232, 226, 216, 0.76); font: 400 12px/1.4 var(--sans); }
.checkout-back:hover { color: var(--ivory); }
.checkout-shell { width: min(1140px, calc(100% - 40px)); margin: 0 auto; padding: clamp(42px, 8vh, 88px) 0 80px; }
.checkout-heading { margin-bottom: 34px; }
.checkout-kicker { margin-bottom: 12px; color: var(--chrome); font: 600 10px/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; }
.checkout-heading h1 { color: var(--ivory); font: italic 400 clamp(38px, 6vw, 62px)/1.08 var(--serif); }
.checkout-heading > p:last-child { margin-top: 12px; color: rgba(232, 226, 216, 0.72); font-size: 15px; line-height: 1.6; }
.checkout-progress { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 40px; border-bottom: 1px solid rgba(232, 226, 216, 0.16); }
.checkout-progress-step { display: flex; align-items: center; gap: 12px; padding: 0 12px 16px 0; color: rgba(232, 226, 216, 0.48); font: 500 12px/1.4 var(--sans); }
.checkout-progress-step > span:first-child { color: inherit; font-size: 10px; letter-spacing: 0.12em; }
.checkout-progress-step.is-active { color: var(--ivory); border-bottom: 1px solid var(--chrome); margin-bottom: -1px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 330px); gap: clamp(30px, 6vw, 84px); align-items: start; }
.checkout-main { min-width: 0; }
.checkout-step[hidden],
.checkout-empty[hidden] { display: none !important; }
.checkout-step { animation: checkoutFade 0.25s ease both; }
@keyframes checkoutFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.checkout-step-heading { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.step-index { padding-top: 5px; color: rgba(197, 199, 204, 0.76); font: 600 10px/1.4 var(--sans); letter-spacing: 0.16em; }
.checkout-step-heading h2 { color: var(--ivory); font: 400 27px/1.2 var(--serif); }
.checkout-step-heading p { margin-top: 7px; color: rgba(232, 226, 216, 0.66); font-size: 13px; line-height: 1.6; }
.checkout-field { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; }
.checkout-field label { color: rgba(232, 226, 216, 0.9); font-size: 12px; font-weight: 500; }
.checkout-field label span { margin-left: 6px; color: rgba(232, 226, 216, 0.5); font-size: 11px; font-weight: 300; }
.checkout-field input,
.checkout-field textarea,
.map-search input {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid rgba(232, 226, 216, 0.22); border-radius: 0; outline: none;
  background: rgba(255, 255, 255, 0.035); color: var(--ivory); font: 400 14px/1.5 var(--sans); letter-spacing: 0.01em;
}
.checkout-field textarea { min-height: 74px; resize: vertical; }
.checkout-field input::placeholder,
.checkout-field textarea::placeholder,
.map-search input::placeholder { color: rgba(232, 226, 216, 0.4); }
.checkout-field input:focus,
.checkout-field textarea:focus,
.map-search input:focus { border-color: rgba(232, 226, 216, 0.78); }
.checkout-fields-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.checkout-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 30px; }
.checkout-actions--end { justify-content: flex-end; }
.checkout-button,
.checkout-primary-link { min-height: 48px; display: inline-flex; justify-content: center; align-items: center; gap: 12px; padding: 0 20px; border: 1px solid rgba(197, 199, 204, 0.52); color: var(--ivory); font: 600 11px/1.3 var(--sans); letter-spacing: 0.1em; transition: border-color .2s ease, background .2s ease, color .2s ease; cursor: pointer; }
.checkout-button--primary,
.checkout-primary-link { background: var(--ivory); border-color: var(--ivory); color: #111; }
.checkout-button--primary:hover,
.checkout-primary-link:hover { background: #fff; border-color: #fff; }
.checkout-button--secondary:hover { border-color: var(--ivory); color: #fff; }
.checkout-button--text { min-height: 44px; padding: 0; border: 0; color: rgba(232, 226, 216, 0.68); background: none; font-weight: 400; }
.checkout-button--text:hover { color: var(--ivory); }
.map-heading { margin-top: 28px; margin-bottom: 12px; }
.map-heading h3 { color: var(--ivory); font: 400 19px/1.3 var(--serif); }
.map-heading p { margin-top: 5px; color: rgba(232, 226, 216, 0.63); font-size: 12px; line-height: 1.5; }
.map-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.map-search input { min-width: 0; }
.map-results { display: flex; flex-direction: column; margin-top: 5px; border: 1px solid rgba(232, 226, 216, 0.18); background: #10100f; }
.map-results[hidden] { display: none; }
.map-result { padding: 12px 14px; text-align: left; color: var(--ivory); border-bottom: 1px solid rgba(232, 226, 216, 0.12); font: 400 12px/1.5 var(--sans); cursor: pointer; }
.map-result:last-child { border-bottom: 0; }
.map-result:hover,
.map-result:focus-visible { background: rgba(232, 226, 216, 0.08); }
.map-shell { position: relative; margin-top: 12px; border: 1px solid rgba(232, 226, 216, 0.2); background: #20201e; }
#deliveryMap { width: 100%; height: 350px; }
.map-shell .leaflet-container { background: #d9d5cc; font-family: var(--sans); }
.map-shell .leaflet-control-attribution { font-size: 10px; }
.map-status { padding: 10px 12px; color: rgba(232, 226, 216, 0.76); background: #111; font-size: 11px; line-height: 1.5; }
.location-summary { margin-top: 12px; color: var(--ivory); font-size: 12px; line-height: 1.6; }
.checkout-order { position: sticky; top: 28px; padding: 24px; border: 1px solid rgba(232, 226, 216, 0.16); background: rgba(255, 255, 255, 0.025); }
.checkout-order h2 { margin-bottom: 20px; color: var(--ivory); font: 400 21px/1.3 var(--serif); }
.checkout-order-items { display: flex; flex-direction: column; }
.checkout-order-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 13px; padding: 13px 0; border-top: 1px solid rgba(232, 226, 216, 0.12); }
.checkout-order-item img { width: 64px; height: 78px; object-fit: cover; background: #211f1d; }
.checkout-order-item-name { color: var(--ivory); font-size: 12px; line-height: 1.45; }
.checkout-order-item-category { margin-top: 4px; color: rgba(232, 226, 216, 0.54); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.checkout-order-item-price { margin-top: 9px; color: rgba(232, 226, 216, 0.82); font-size: 11px; }
.checkout-order-total { display: flex; justify-content: space-between; gap: 14px; margin-top: 12px; padding-top: 16px; border-top: 1px solid rgba(232, 226, 216, 0.2); color: rgba(232, 226, 216, 0.76); font-size: 12px; }
.checkout-order-total strong { max-width: 60%; color: var(--ivory); font-weight: 500; text-align: right; }
.checkout-order-note { margin-top: 14px; color: rgba(232, 226, 216, 0.55); font-size: 11px; line-height: 1.6; }
.review-card { border: 1px solid rgba(232, 226, 216, 0.16); }
.review-section { padding: 18px; border-bottom: 1px solid rgba(232, 226, 216, 0.12); }
.review-section:last-child { border-bottom: 0; }
.review-section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.review-section h3 { color: var(--ivory); font: 400 17px/1.4 var(--serif); }
.review-edit { color: rgba(232, 226, 216, 0.74); font: 500 10px/1.4 var(--sans); text-decoration: underline; text-underline-offset: 3px; }
.review-section p { color: rgba(232, 226, 216, 0.82); font-size: 13px; line-height: 1.7; white-space: pre-line; }
.review-section .review-coordinates { margin-top: 6px; color: rgba(232, 226, 216, 0.58); font-size: 11px; }
.checkout-submit-status { min-height: 20px; color: #e89595; font-size: 13px; }
.checkout-order-success { margin: 20px 0; padding: 22px; border: 1px solid rgba(197, 199, 204, 0.25); background: rgba(197, 199, 204, 0.04); }
.checkout-order-success h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 22px; color: var(--ivory); }
.checkout-order-success p { margin: 0; color: rgba(232, 226, 216, 0.72); line-height: 1.6; }
.review-map-preview { height: 170px; margin-top: 14px; border: 1px solid rgba(232, 226, 216, 0.14); background: #222; }
.review-map-preview .leaflet-container { width: 100%; height: 100%; }
.payment-notice { display: flex; align-items: flex-start; gap: 13px; margin-top: 18px; padding: 18px; border: 1px solid rgba(197, 173, 133, 0.38); background: rgba(197, 173, 133, 0.06); }
.payment-notice-icon { flex: 0 0 22px; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid rgba(197, 173, 133, 0.72); border-radius: 50%; color: #e1d1b2; font: 500 12px/1 var(--serif); }
.payment-notice h3 { margin: 1px 0 7px; color: var(--ivory); font-size: 13px; font-weight: 500; }
.payment-notice p { color: rgba(232, 226, 216, 0.72); font-size: 12px; line-height: 1.65; }
.checkout-empty { padding: 54px 28px; border: 1px solid rgba(232, 226, 216, 0.16); text-align: center; }
.checkout-empty h2 { color: var(--ivory); font: 400 28px/1.3 var(--serif); }
.checkout-empty p { margin: 12px 0 24px; color: rgba(232, 226, 216, 0.66); font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 820px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-order { position: static; grid-row: 1; }
  .checkout-order h2 { margin-bottom: 12px; }
  .checkout-order-item img { width: 58px; height: 70px; }
}
@media (max-width: 560px) {
  .checkout-header { min-height: 64px; padding: 14px 18px; }
  .checkout-shell { width: calc(100% - 36px); padding-top: 38px; }
  .checkout-heading { margin-bottom: 25px; }
  .checkout-progress { margin-bottom: 30px; }
  .checkout-progress-step { gap: 7px; padding-bottom: 12px; font-size: 10px; }
  .checkout-progress-step > span:first-child { font-size: 9px; }
  .checkout-fields-two { grid-template-columns: 1fr; gap: 0; }
  .checkout-actions { align-items: stretch; }
  .checkout-actions .checkout-button { padding-inline: 12px; font-size: 10px; }
  .checkout-actions .checkout-button--primary { flex: 1; }
  #deliveryMap { height: 300px; }
  .checkout-order { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .checkout-step { animation: none; }
  .checkout-button { transition: none; }
}
