.checkout-page {
  background: var(--paper, #f6f3ed);
  color: var(--ink, #20201e);
}

.checkout-page .checkout-header {
  border-bottom: 1px solid var(--line, #d9d4ca);
}

.checkout-header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.checkout-page .wordmark {
  flex: 0 0 auto;
}

.checkout-page .back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted, #706d66);
}

.checkout-page .back-link .icon {
  width: 15px;
  height: 15px;
  transform: rotate(180deg);
}

.checkout-shell {
  padding-top: 30px;
  padding-bottom: 44px;
}

.checkout-intro {
  max-width: 660px;
  margin-bottom: 27px;
}

.checkout-intro > .eyebrow {
  margin-bottom: 9px;
}

.checkout-intro h1 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(48px, 13vw, 62px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.035em;
}

.checkout-intro h1 em {
  font-style: italic;
  font-weight: 400;
}

.checkout-lede {
  max-width: 530px;
  margin-top: 16px;
  color: var(--muted, #706d66);
  font-size: 12px;
  line-height: 1.7;
}

.checkout-progress {
  max-width: 390px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 23px;
}

.checkout-progress span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #69645b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.checkout-progress b {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
}

.checkout-progress span.active {
  color: var(--accent, #783b33);
}

.checkout-progress i {
  height: 1px;
  flex: 1 1 24px;
  background: var(--line, #d9d4ca);
}

.checkout-layout {
  display: grid;
  gap: 28px;
}

.order-summary {
  padding-block: 20px;
  border-top: 1px solid var(--line, #d9d4ca);
  border-bottom: 1px solid var(--line, #d9d4ca);
}

.order-summary > .eyebrow {
  margin-bottom: 13px;
}

.summary-product {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.summary-image {
  min-height: 82px;
  display: grid;
  place-items: center;
  background: var(--paper, #f6f3ed);
}

.summary-image img {
  width: 100%;
  height: 72px;
  padding: 4px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.summary-copy h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.summary-copy p,
.summary-note {
  color: var(--muted, #706d66);
}

.summary-copy p {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.6;
}

.summary-cost {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid var(--line, #d9d4ca);
  font-size: 11px;
}

.summary-cost strong {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -.035em;
}

.summary-note {
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.65;
}

.checkout-flow {
  min-width: 0;
}

.demo-banner {
  margin: 0 0 26px;
  padding: 11px 0 11px 14px;
  border-left: 2px solid var(--accent, #783b33);
  color: var(--muted, #706d66);
  font-size: 11px;
  line-height: 1.65;
}

.demo-banner strong {
  color: var(--ink, #20201e);
  font-weight: 650;
}

.checkout-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.checkout-section + .checkout-section {
  margin-top: 34px;
  padding-top: 31px;
  border-top: 1px solid var(--line, #d9d4ca);
}

.checkout-form legend,
.review-panel h2,
.success-panel h2 {
  padding: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -.025em;
}

.checkout-form legend {
  margin-bottom: 12px;
  font-size: 25px;
  line-height: 1.08;
}

.section-help {
  margin: -4px 0 19px;
  color: var(--muted, #706d66);
  font-size: 11px;
}

.payment-options {
  border-top: 1px solid var(--line, #d9d4ca);
}

.payment-option {
  position: relative;
  min-height: 72px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line, #d9d4ca);
  cursor: pointer;
}

.payment-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.payment-control {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 1px solid #9e9990;
  border-radius: 50%;
}

.payment-control::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
}

.payment-option input:checked + .payment-control {
  border-color: var(--accent, #783b33);
}

.payment-option input:checked + .payment-control::after {
  background: var(--accent, #783b33);
}

.payment-option:has(input:checked) .payment-name,
.payment-option:has(input:checked) > strong {
  color: var(--ink, #20201e);
}

.payment-option:has(input:focus-visible) {
  outline: 2px solid var(--accent, #783b33);
  outline-offset: 4px;
}

.payment-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.payment-name small {
  display: block;
  margin-top: 4px;
  color: var(--muted, #706d66);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}

.payment-option > strong {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.035em;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 12px;
}

.field {
  min-width: 0;
  display: block;
}

.field.full {
  grid-column: 1 / -1;
}

.field > span {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 12px 13px;
  border: 1px solid #cbc5ba;
  border-radius: 0;
  background: #fffdf9;
  color: var(--ink, #20201e);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  outline: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field textarea {
  min-height: 98px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #746e64;
  opacity: 1;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.phone-input:focus-within {
  border-color: var(--ink, #20201e);
  box-shadow: 0 0 0 1px var(--ink, #20201e);
}

.field [aria-invalid="true"],
.field .phone-input:has(input[aria-invalid="true"]) {
  border-color: var(--accent, #783b33);
}

.field input[aria-invalid="true"]:focus,
.field textarea[aria-invalid="true"]:focus,
.field select[aria-invalid="true"]:focus,
.phone-input:has(input[aria-invalid="true"]):focus-within {
  box-shadow: 0 0 0 1px var(--accent, #783b33);
}

.phone-input {
  display: flex;
  align-items: stretch;
  border: 1px solid #cbc5ba;
  background: #fffdf9;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.phone-input > span {
  display: flex;
  align-items: center;
  padding-left: 13px;
  color: var(--muted, #706d66);
  font-size: 13px;
  white-space: nowrap;
}

.phone-input input {
  min-width: 0;
  border: 0;
  background: transparent;
  box-shadow: none !important;
}

.field-error {
  display: block;
  margin-top: 5px;
  color: var(--accent, #783b33);
  font-size: 11px;
  line-height: 1.45;
}

.field-error:empty {
  display: none;
}

.error-summary {
  margin-top: 20px;
  padding: 10px 0;
  border-top: 1px solid var(--accent, #783b33);
  border-bottom: 1px solid var(--accent, #783b33);
  color: var(--accent, #783b33);
  font-size: 11px;
}

.form-actions {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line, #d9d4ca);
}

.checkout-page .checkout-primary,
.review-actions .button,
.success-panel > .button {
  width: 100%;
  min-height: 52px;
}

.checkout-page .checkout-primary {
  justify-content: space-between;
}

.checkout-page .checkout-primary .icon {
  flex: 0 0 auto;
}

.privacy-note {
  max-width: 470px;
  margin: 11px auto 0;
  color: var(--muted, #706d66);
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
}

.review-panel,
.success-panel {
  padding-top: 7px;
}

.review-panel > .eyebrow,
.success-panel > .eyebrow {
  margin-bottom: 10px;
}

.review-panel h2,
.success-panel h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1;
}

.review-intro,
.success-panel > p:not(.eyebrow) {
  margin-top: 12px;
  color: var(--muted, #706d66);
  font-size: 11px;
  line-height: 1.65;
}

.review-block {
  padding: 20px 0;
  border-bottom: 1px solid var(--line, #d9d4ca);
}

.review-block:first-of-type {
  margin-top: 18px;
  border-top: 1px solid var(--line, #d9d4ca);
}

.review-block .eyebrow {
  margin-bottom: 7px;
}

.review-block p:not(.eyebrow) {
  margin: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.review-block .review-name {
  font-weight: 650;
}

.review-block .review-address {
  margin-block: 4px;
  white-space: pre-line;
  color: var(--muted, #706d66);
  line-height: 1.7;
}

.review-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 8px;
  font-size: 11px;
}

.review-total strong {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -.035em;
}

.review-panel .small-note {
  color: var(--muted, #706d66);
  font-size: 11px;
}

.review-actions {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.success-panel {
  text-align: left;
}

.success-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 21px;
  border: 1px solid var(--ink, #20201e);
  border-radius: 50%;
}

.success-icon .icon {
  width: 21px;
  height: 21px;
}

.success-recap {
  display: grid;
  gap: 4px;
  margin: 25px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line, #d9d4ca);
  border-bottom: 1px solid var(--line, #d9d4ca);
  font-size: 11px;
}

.success-recap span {
  color: var(--muted, #706d66);
}

.success-recap strong {
  font-weight: 600;
}

.success-panel > .button {
  justify-content: center;
}

.success-panel .text-link {
  display: block;
  margin: 11px auto 0;
  font-size: 11px;
}

.checkout-footer {
  margin-top: 37px;
  padding-top: 19px;
  border-top: 1px solid var(--line, #d9d4ca);
  color: var(--muted, #706d66);
  text-align: center;
  font-size: 11px;
  letter-spacing: .02em;
}

.checkout-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkout-page .noscript-note {
  margin-top: 20px;
  padding: 14px;
  border: 1px solid var(--line, #d9d4ca);
  background: var(--soft, #ebe6dd);
  font-size: 11px;
}

/* Reservation is a compact, reassuring row; only state transitions get accent. */
.reservation-panel{margin-top:14px;padding-block:10px;border-block:1px solid var(--line);font-size:12px;line-height:1.5}
.reservation-row{display:flex;justify-content:space-between;align-items:baseline;gap:18px;min-height:21px}
.reservation-row p{font-size:12px;line-height:1.6;color:var(--ink)}
.reservation-row time{flex-shrink:0;font:500 17px/1.3 "DM Sans",sans-serif;letter-spacing:.035em;font-variant-numeric:tabular-nums;color:var(--ink)}
.reservation-panel[data-state="low"] .reservation-row p,
.reservation-panel[data-state="low"] time,
.reservation-panel[data-state="expired"] .reservation-row p{color:var(--accent)}
.reservation-panel[data-state="low"]{border-top-color:#a38472}
.reservation-help{font-size:11px;line-height:1.6;margin-top:6px}
.reservation-recheck{font-size:11px;letter-spacing:.055em;min-height:44px;padding-block:10px;margin-top:5px}
.reservation-panel:focus{outline-offset:6px}
.checkout-primary[aria-disabled="true"]{opacity:.62;cursor:not-allowed}
.payment-online .payment-name,.payment-online>strong{color:var(--muted);font-weight:500}
.payment-online>strong{font-size:20px}
.payment-name small b{font-weight:inherit}
.payment-unavailable{color:var(--accent);font-size:12px;line-height:1.65;margin-top:12px;padding-left:11px;border-left:2px solid #b09986}
.payment-unavailable:empty{display:none}
.checkout-sticky-marker{display:block;height:1px;pointer-events:none}
.checkout-sticky{display:none}
@media(max-width:699px){
  .checkout-page{padding-bottom:78px}
  .reservation-panel{margin-top:13px;padding-block:9px}
  .checkout-progress{margin-top:12px}
  .checkout-sticky{position:fixed;z-index:20;inset:auto 0 0;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 20px calc(10px + env(safe-area-inset-bottom,0px));background:#f6f3edf7;backdrop-filter:blur(12px);border-top:1px solid var(--line)}
  .checkout-sticky>div{min-width:0}
  .checkout-sticky strong{font-size:20px;font-weight:600;letter-spacing:-.025em;line-height:1.4}
  .checkout-sticky strong>span:last-child{font-size:11px;font-weight:400;letter-spacing:0}
  .checkout-sticky-status{display:block;font-size:11px;line-height:1.5;color:var(--muted)}
  .checkout-sticky-status time{font-variant-numeric:tabular-nums}
  .checkout-sticky[data-state="low"] .checkout-sticky-status{color:var(--accent)}
  .checkout-sticky .button{min-height:48px;font-size:11px;letter-spacing:.035em;padding:12px 15px;max-width:55%;gap:12px}
  .checkout-sticky .icon{width:17px;height:17px}
}

@media (min-width: 700px) {
  .checkout-header-inner {
    min-height: 74px;
  }

  .checkout-page .back-link {
    font-size: 12px;
  }

  .checkout-shell {
    padding-top: 48px;
    padding-bottom: 58px;
  }

  .checkout-intro {
    margin-bottom: 41px;
  }

  .checkout-intro h1 {
    font-size: 68px;
  }

  .checkout-lede {
    font-size: 13px;
  }

  .checkout-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 54px;
    align-items: start;
  }

  .checkout-flow {
    grid-column: 1;
    grid-row: 1;
  }

  .order-summary {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 24px;
    padding-top: 0;
    border-top: 0;
  }

  .summary-product {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .summary-image {
    min-height: 180px;
  }

  .summary-image img {
    height: 164px;
    padding: 9px;
  }

  .summary-copy h2 {
    font-size: 17px;
  }

  .summary-copy p {
    font-size: 11px;
  }

  .checkout-form legend {
    font-size: 28px;
  }

  .payment-option {
    min-height: 78px;
    padding-block: 15px;
  }

  .review-panel h2,
  .success-panel h2 {
    font-size: 50px;
  }
}

@media (max-width: 699px) {
  .checkout-shell {
    padding-top: 22px;
  }

  .checkout-intro {
    margin-bottom: 18px;
  }

  .checkout-intro > .eyebrow {
    margin-bottom: 6px;
  }

  .checkout-intro h1 {
    font-size: 48px;
  }

  .checkout-lede {
    margin-top: 10px;
    line-height: 1.5;
  }

  .checkout-progress {
    margin-top: 14px;
    gap: 7px;
  }

  .checkout-layout {
    gap: 18px;
  }

  .order-summary {
    padding-block: 13px;
  }

  .order-summary > .eyebrow {
    display: none;
  }

  .summary-product {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 12px;
  }

  .summary-image {
    min-height: 62px;
  }

  .summary-image img {
    height: 60px;
    padding: 0;
  }

  .summary-copy h2 {
    font-size: 14px;
  }

  .summary-copy p {
    margin-top: 3px;
    line-height: 1.45;
  }

  .summary-cost {
    margin-top: 10px;
    padding-top: 8px;
  }

  .summary-note {
    margin-top: 4px;
    line-height: 1.45;
  }

  .demo-banner {
    margin-bottom: 18px;
    padding: 8px 0 8px 10px;
    line-height: 1.5;
  }

  .checkout-form legend {
    margin-bottom: 8px;
    font-size: 23px;
  }

  .payment-option {
    min-height: 62px;
    padding: 9px 2px;
  }

  .payment-name small {
    margin-top: 2px;
  }

  .checkout-section + .checkout-section {
    margin-top: 23px;
    padding-top: 8px;
  }

  .section-help {
    margin: -2px 0 12px;
  }

  .form-grid {
    gap: 15px 12px;
  }
}

@media (min-width: 1000px) {
  .checkout-layout {
    grid-template-columns: minmax(0, 650px) 360px;
    justify-content: space-between;
    gap: 80px;
  }

  .checkout-intro h1 {
    font-size: 76px;
  }

  .form-grid {
    column-gap: 16px;
  }
}

@media (max-width: 389px) {
  .checkout-page .back-link {
    font-size: 11px;
  }

  .checkout-intro h1 {
    font-size: 44px;
  }

  .summary-product {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .payment-option {
    grid-template-columns: 17px minmax(0, 1fr) auto;
    gap: 8px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .checkout-page *,
  .checkout-page *::before,
  .checkout-page *::after {
    transition: none !important;
  }
}
