.commerce-page,
.checkout-page {
  min-height: calc(100vh - 160px);
  background: #f5f7f8;
  color: #111111;
}

.commerce-page {
  padding: 56px 0 92px;
}

.commerce-page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.commerce-page-header h1,
.checkout-section-heading h1,
.checkout-return-card h1,
.checkout-confirmation-card h1 {
  margin: 6px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 62px);
  line-height: .96;
  letter-spacing: -.055em;
  color: #292826;
}

.commerce-page-header p,
.checkout-section-heading p {
  max-width: 650px;
  margin: 14px 0 0;
  color: #637169;
  font-size: 15px;
  line-height: 1.6;
}

.commerce-text-link,
.checkout-back-link {
  color: #292826;
  font-weight: 760;
  text-decoration: none;
}

.cart-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: start;
  gap: 24px;
}

.cart-page-lines,
.cart-summary-card,
.checkout-card,
.checkout-summary,
.checkout-return-card,
.checkout-confirmation-card,
.commerce-empty-page {
  border: 1px solid rgba(16, 35, 25, .11);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 50px rgba(18, 43, 29, .055);
}

.cart-page-line {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border-bottom: 1px solid rgba(16, 35, 25, .09);
}

.cart-page-line:last-child { border-bottom: 0; }

.cart-page-line__image {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  background: #eee9df;
}

.cart-page-line__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-page-line__domain,
.checkout-section-heading > span,
.checkout-summary__head span,
.checkout-confirmation-card > span,
.checkout-return-card > span,
.cart-summary-card > span {
  color: #9b7837;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.cart-page-line__copy h2 {
  margin: 6px 0 5px;
  font-size: 22px;
  letter-spacing: -.035em;
}

.cart-page-line__copy h2 a { color: inherit; text-decoration: none; }
.cart-page-line__copy p { margin: 0; color: #68756d; font-size: 13px; line-height: 1.5; }
.cart-page-line__remove { margin-top: 13px; padding: 0; border: 0; background: transparent; color: #6b766f; font: inherit; font-size: 12px; font-weight: 740; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cart-page-line__actions { display: grid; justify-items: end; gap: 18px; }
.cart-page-line__actions > strong { font-size: 18px; }

.cart-quantity {
  display: grid;
  grid-template-columns: 36px 42px 36px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(16, 35, 25, .14);
  border-radius: 11px;
}

.cart-quantity button {
  height: 36px;
  border: 0;
  background: #f5f7f6;
  color: #292826;
  font-size: 18px;
  cursor: pointer;
}

.cart-quantity output { text-align: center; font-weight: 780; }

.cart-summary-card {
  position: sticky;
  top: 105px;
  padding: 24px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  margin-top: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(16, 35, 25, .1);
  color: #666666;
  font-size: 14px;
}

.cart-summary-row strong { color: #111111; }
.cart-summary-row.is-muted strong { max-width: 150px; text-align: right; font-size: 12px; font-weight: 680; }
.cart-summary-card p { margin: 18px 0 0; color: #748078; font-size: 12px; line-height: 1.55; }
.cart-summary-card__cta { width: 100%; margin-top: 20px; }
.cart-summary-card__cta[disabled] { cursor: not-allowed; opacity: .48; }
.cart-summary-card .checkout-error { margin-top: 14px; margin-bottom: 0; }
.cart-summary-card > small { display: block; margin-top: 12px; text-align: center; color: #748078; }

.commerce-empty-page {
  padding: 72px 42px;
  text-align: center;
}

.commerce-empty-page h1 { margin: 8px 0 0; font-size: 42px; letter-spacing: -.05em; }
.commerce-empty-page p { max-width: 580px; margin: 16px auto 28px; color: #666666; line-height: 1.65; }

html[data-route^="/checkout"] #site-header,
html[data-route^="/checkout"] #room-navigation-root,
html[data-route^="/checkout"] #site-footer { display: none; }

html[data-route^="/checkout"] body { background: #f3f6f4; }

.checkout-page {
  --checkout-shell-width: 1040px;
  min-height: 100vh;
  padding-bottom: 56px;
}

.checkout-topline {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(20px, calc((100vw - var(--checkout-shell-width)) / 2));
  border-bottom: 1px solid rgba(16, 35, 25, .1);
  background: rgba(255, 255, 255, .9);
}

.checkout-brand {
  color: #292826;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 760;
  text-decoration: none;
}

.checkout-topline span { color: #68756d; font-size: 10px; font-weight: 720; }

.checkout-page__container {
  width: min(var(--checkout-shell-width), calc(100% - 36px));
  margin: 0 auto;
  padding-top: 23px;
}

.checkout-page__container--narrow { width: min(720px, calc(100% - 40px)); padding-top: 90px; }

.checkout-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 420px;
  margin: 0 auto 20px;
  padding: 0;
  list-style: none;
}

.checkout-stepper__step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #8b948f;
  font-size: 10px;
}

.checkout-stepper__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 12px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 1px;
  background: #d6ddd8;
}

.checkout-stepper__step.is-complete:not(:last-child)::after { background: #4f4c47; }
.checkout-stepper__step span { position: relative; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #cdd5d0; border-radius: 999px; background: #fff; font-weight: 800; }
.checkout-stepper__step.is-current { color: #292826; }
.checkout-stepper__step.is-current span { border-color: #292826; background: #292826; color: #fff; }
.checkout-stepper__step.is-complete span { border-color: #4f4c47; background: #4f4c47; color: #fff; }

.checkout-error {
  margin: 0 auto 14px;
  padding: 10px 13px;
  border: 1px solid #f0b8b8;
  border-radius: 10px;
  background: #fff4f4;
  color: #912e2e;
  font-size: 11px;
  font-weight: 680;
}

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

.checkout-card,
.checkout-summary {
  border-radius: 20px;
}
.checkout-card { min-height: 588px; padding: 22px; }
.checkout-summary { position: sticky; top: 18px; padding: 20px; }
.checkout-section-heading { margin-bottom: 18px; }
.checkout-section-heading h1 { font-size: 40px; }
.checkout-section-heading p { margin-top: 8px; font-size: 12px; line-height: 1.5; }

.checkout-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 11px;
}

.checkout-form label { display: grid; gap: 5px; }
.checkout-form label.is-wide { grid-column: span 2; }
.checkout-form label > span,
.checkout-promo label { color: #3f4e45; font-size: 10px; font-weight: 760; }
.checkout-form input,
.checkout-form select,
.checkout-promo input {
  width: 100%;
  height: 39px;
  border: 1px solid #d2dad5;
  border-radius: 9px;
  background: #fff;
  padding: 0 11px;
  color: #111111;
  font: inherit;
  font-size: 12px;
  outline: none;
}
.checkout-form input:focus,
.checkout-form select:focus,
.checkout-promo input:focus { border-color: #292826; box-shadow: 0 0 0 1px #292826; }

.checkout-shipping-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 15px;
  padding: 12px 14px;
  border: 1px solid #d5ddd8;
  border-radius: 12px;
  background: #f9fbfa;
}
.checkout-shipping-result div { display: grid; gap: 3px; }
.checkout-shipping-result span { font-size: 12px; font-weight: 790; }
.checkout-shipping-result strong { color: #69766e; font-size: 10px; }
.checkout-shipping-result small { color: #89928d; font-size: 9px; }
.checkout-shipping-result b { font-size: 14px; }

.checkout-primary-action { width: 100%; margin-top: 16px; min-height: 42px; font-size: 11px; }
.checkout-primary-action:disabled { opacity: .45; cursor: not-allowed; }
.checkout-back-link { display: inline-flex; margin-bottom: 18px; border: 0; background: transparent; padding: 0; cursor: pointer; }

.checkout-payment-section { margin-top: 22px; }
.checkout-payment-section h2 { margin: 0 0 12px; font-size: 14px; letter-spacing: -.02em; }
.checkout-payment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.checkout-bank-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.checkout-payment-method {
  position: relative;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid #d6ddd8;
  border-radius: 12px;
  background: #fff;
  color: #111111;
  text-align: left;
  cursor: pointer;
}
.checkout-payment-method:hover:not(:disabled) { border-color: #96a69c; }
.checkout-payment-method.is-active { border-color: #292826; box-shadow: inset 0 0 0 1px #292826; }
.checkout-payment-method:disabled { cursor: not-allowed; opacity: .52; }
.checkout-payment-method img { width: 62px; max-height: 30px; object-fit: contain; object-position: left center; }
.checkout-payment-method > span:not(.checkout-payment-mark) { display: grid; gap: 4px; min-width: 0; }
.checkout-payment-method strong { font-size: 13px; }
.checkout-payment-method small { color: #758078; font-size: 10px; line-height: 1.35; }
.checkout-payment-method i { width: 17px; height: 17px; margin-left: auto; border: 1px solid #bdc8c1; border-radius: 999px; }
.checkout-payment-method.is-active i { border: 5px solid #292826; }
.checkout-payment-mark { display: grid; place-items: center; width: 42px; height: 32px; border-radius: 8px; background: #292826; color: #fff; font-size: 11px; font-weight: 820; }

.checkout-provider-empty,
.checkout-provider-note {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #e1d3b7;
  border-radius: 13px;
  background: #fffaf0;
}
.checkout-provider-empty p,
.checkout-provider-note p { margin: 5px 0 0; color: #776d5d; font-size: 12px; line-height: 1.55; }

.checkout-summary__head { display: flex; justify-content: space-between; gap: 18px; }
.checkout-summary__head h2 { margin: 4px 0 0; font-size: 18px; letter-spacing: -.035em; }
.checkout-summary__head a { color: #292826; font-size: 10px; font-weight: 760; }
.checkout-summary__items { margin-top: 14px; border-top: 1px solid #e0e5e2; }
.checkout-summary__items article { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid #e0e5e2; }
.checkout-summary__items article div { display: grid; gap: 4px; }
.checkout-summary__items strong { font-size: 11px; }
.checkout-summary__items span,
.checkout-summary__items small { color: #758078; font-size: 9px; line-height: 1.4; }
.checkout-summary__items b { white-space: nowrap; font-size: 11px; }

.checkout-promo { margin-top: 14px; }
.checkout-promo > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin-top: 5px; }
.checkout-promo input { border-radius: 9px 0 0 9px; }
.checkout-promo button { border: 0; border-radius: 0 9px 9px 0; padding: 0 14px; font-size: 10px; background: #e7ece9; color: #292826; font-weight: 780; cursor: pointer; }
.checkout-promo small { display: block; margin-top: 5px; color: #8a3f36; }
.checkout-promo small.is-applied { color: #4f4c47; }

.checkout-summary__totals { margin: 14px 0 0; }
.checkout-summary__totals div { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; color: #666666; font-size: 10px; }
.checkout-summary__totals dd { margin: 0; color: #111111; font-weight: 730; }
.checkout-summary__totals .is-total { margin-top: 6px; padding-top: 13px; border-top: 1px solid #dddddd; color: #111111; font-size: 13px; font-weight: 800; }
.checkout-summary > p { margin: 14px 0 0; color: #7a857e; font-size: 9px; line-height: 1.5; }

.checkout-return-card,
.checkout-confirmation-card { padding: 58px 42px; text-align: center; }
.checkout-return-card p,
.checkout-confirmation-card p { max-width: 520px; margin: 18px auto 0; color: #666666; line-height: 1.65; }
.checkout-spinner { display: inline-block; width: 42px; height: 42px; margin-bottom: 20px; border: 3px solid #d6dfda; border-top-color: #292826; border-radius: 999px; animation: checkout-spin .8s linear infinite; }
@keyframes checkout-spin { to { transform: rotate(360deg); } }
.checkout-confirmation-card__mark { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 20px; border-radius: 999px; background: #292826; color: #fff; font-size: 28px; }
.checkout-confirmation-card.is-pending .checkout-confirmation-card__mark { background: #aa7d2c; }
.checkout-confirmation-actions { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }

/* Desktop checkout composition lock: equivalent to the approved ~84% visual density,
   achieved with real layout dimensions rather than CSS transform/zoom. */
@media (min-width: 1001px) {
  .checkout-page__container { max-width: var(--checkout-shell-width); }
  .checkout-stepper__step strong { font-size: 10px; }
}

.commerce-drawer__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@media (max-width: 1000px) {
  .cart-page-grid,
  .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary-card,
  .checkout-summary { position: static; }
  .checkout-summary { order: -1; }
}

@media (max-width: 680px) {
  .commerce-page { padding-top: 32px; }
  .commerce-page-header { align-items: start; flex-direction: column; }
  .cart-page-line { grid-template-columns: 88px minmax(0, 1fr); align-items: start; padding: 16px; }
  .cart-page-line__actions { grid-column: 2; justify-items: start; }
  .checkout-page__container { width: min(100% - 24px, 1360px); }
  .checkout-topline { padding: 0 16px; }
  .checkout-card,
  .checkout-summary { padding: 20px; border-radius: 18px; }
  .checkout-form,
  .checkout-payment-grid,
  .checkout-bank-grid { grid-template-columns: 1fr; }
  .checkout-form label.is-wide { grid-column: span 1; }
  .checkout-stepper__step strong { font-size: 10px; }
  .checkout-confirmation-actions { flex-direction: column; }
  .commerce-drawer__actions { grid-template-columns: 1fr; }
}
.checkout-stripe-element {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(41, 40, 38, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}
