/* ==========================================================================
   Beach Pass KSA — checkout (/book/) and payment result pages (/book/success|cancelled/)
   Calendar, steppers, price lines and access notes come from booking.css.
   ========================================================================== */

/* ----- Title area + progress ----- */
.checkout-hero { padding: clamp(40px, 5vw, 72px) 0 clamp(28px, 3vw, 40px); background: var(--c-white); border-bottom: 1px solid var(--c-line); }
.checkout-hero__inner { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.checkout-hero__title { font-size: var(--fs-h3); line-height: 1.2; }
.checkout-hero__intro { max-width: 640px; font-size: 17px; line-height: 1.66; color: var(--c-text); }

.checkout-progress { display: flex; align-items: center; list-style: none; margin: 36px 0 0; padding: 0; max-width: 760px; }
.checkout-progress__item { display: flex; align-items: center; flex: 1 1 0; min-width: 0; }
.checkout-progress__item:last-child { flex: 0 0 auto; }
.checkout-progress__item:not(:last-child)::after {
  content: ""; flex: 1; height: 1px; margin: 0 18px; background: #d9dbd6;
  transition: background-color var(--t) var(--ease);
}
.checkout-progress__item.is-complete:not(:last-child)::after { background: var(--c-lagoon); }
.checkout-progress__btn { display: inline-flex; align-items: center; gap: 12px; padding: 4px 0; color: var(--c-muted); white-space: nowrap; }
.checkout-progress__btn[aria-disabled="true"] { cursor: default; }
.checkout-progress__num {
  position: relative; display: grid; place-items: center; flex: none; width: 36px; height: 36px;
  border: 1px solid #cfd2cc; border-radius: 50%; background: var(--c-white);
  font-family: var(--ff-heading); font-size: 15px; line-height: 1; color: var(--c-muted);
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.checkout-progress__num .icon { position: absolute; width: 15px; height: 15px; stroke-width: 2; opacity: 0; transform: scale(0.6); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.checkout-progress__label { font-size: 15px; line-height: 1.3; transition: color var(--t) var(--ease); }
.checkout-progress__item.is-reachable .checkout-progress__btn { color: var(--c-ink); }
.checkout-progress__item.is-reachable:not(.is-current) .checkout-progress__btn:hover .checkout-progress__label { color: var(--c-lagoon); }
.checkout-progress__item.is-current .checkout-progress__num { background: var(--c-lagoon); border-color: var(--c-lagoon); color: var(--c-white); }
.checkout-progress__item.is-current .checkout-progress__label { color: var(--c-ink); font-weight: 500; }
.checkout-progress__item.is-complete .checkout-progress__num { border-color: var(--c-lagoon); color: transparent; }
.checkout-progress__item.is-complete .checkout-progress__num .icon { opacity: 1; transform: none; color: var(--c-lagoon); }

/* ----- Layout ----- */
.checkout-body { padding: clamp(32px, 4vw, 56px) 0 clamp(80px, 8vw, 120px); background: var(--c-mist); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.checkout-main { grid-column: 1; grid-row: 1; min-width: 0; }
.checkout-summary { grid-column: 2; grid-row: 1; position: sticky; top: 110px; }

/* Phone/email fallback. early.js sets html.js before the first paint, so with JavaScript on the form, progress
   and summary render straight away and the fallback takes no space. It is shown:
   - when JavaScript is off (html:not(.js)), instead of the form;
   - when booking.js reports that it could not start (.is-failed), instead of the form;
   - as a last resort when booking.js never ran (no .is-ready after a few seconds): it then opens above the form. */
.checkout-fallback { display: none; margin-bottom: 20px; padding: 36px; background: var(--c-white); border: 1px solid #e6e6e6; font-size: 16px; }
.checkout-fallback__title { font-size: 26px; margin-bottom: 10px; }
.checkout-fallback a { color: var(--c-lagoon); text-decoration: underline; }
html:not(.js) .checkout-fallback,
.checkout.is-failed .checkout-fallback { display: block; }
html:not(.js) .checkout-form, html:not(.js) .checkout-progress, html:not(.js) .checkout-summary,
.checkout.is-failed .checkout-form, .checkout.is-failed .checkout-progress, .checkout.is-failed .checkout-summary { display: none; }
html:not(.js) .checkout-layout,
.checkout.is-failed .checkout-layout { grid-template-columns: minmax(0, 1fr); }
html:not(.js) .checkout-main,
.checkout.is-failed .checkout-main { grid-row: 1; }
.js .checkout:not(.is-ready):not(.is-failed) .checkout-fallback { display: block; overflow: hidden; animation: bp-fallback-in 0.3s var(--ease) 5s both; }
@keyframes bp-fallback-in {
  from { visibility: hidden; opacity: 0; max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }
  to { visibility: visible; opacity: 1; max-height: 40em; }
}

/* ----- Steps ----- */
.checkout-step { padding: clamp(24px, 4vw, 48px); background: var(--c-white); border: 1px solid #e6e6e6; }
.checkout-step.is-enter-next { animation: bp-step-next 0.34s var(--ease-out) both; }
.checkout-step.is-enter-prev { animation: bp-step-prev 0.34s var(--ease-out) both; }
@keyframes bp-step-next { from { opacity: 0; transform: translateX(16px); } }
@keyframes bp-step-prev { from { opacity: 0; transform: translateX(-16px); } }
.checkout-step__head { display: flex; flex-direction: column; gap: 8px; }
.checkout-step__count { font-size: 12px; font-weight: 500; line-height: 1.2; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-lagoon); }
.checkout-step__title { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.2; scroll-margin-top: 130px; }
.checkout-step__title:focus { outline: none; }
.checkout-step__intro { font-size: 16px; line-height: 1.6; color: var(--c-muted); }

.checkout-group { position: relative; min-width: 0; margin: 36px 0 0; }
.checkout-group + .checkout-group { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--c-line); }
.checkout-group__title { font-family: var(--ff-heading); font-size: 22px; line-height: 1.3; color: var(--c-ink); }
.checkout-group__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.checkout-group__value { font-size: 15px; font-weight: 500; color: var(--c-lagoon); }
.checkout-group__hint { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--c-muted); }
.checkout-group__hint a { color: var(--c-lagoon); text-decoration: underline; text-underline-offset: 2px; }
.checkout-group__action {
  display: inline-block; margin-top: 16px; padding: 6px 0 3px;
  font-family: var(--ff-heading); font-size: 14px; line-height: 1.2; color: var(--c-lagoon); border-bottom: 1px solid currentColor;
}
.checkout-group__action:hover { color: var(--c-lagoon-dark); }
.checkout-group .field__error { margin-top: 10px; }

/* Beach chooser (radio cards) */
.beach-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-top: 18px; }
.beach-option { position: relative; display: block; min-width: 0; cursor: pointer; }
.beach-option__input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; margin: 0; }
.beach-option__card {
  position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: start; height: 100%;
  padding: 12px 14px 12px 12px; background: var(--c-white); border: 1px solid #e3e3df;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.beach-option:hover .beach-option__card { border-color: #b9bdb5; }
.beach-option__input:checked + .beach-option__card { border-color: var(--c-lagoon); box-shadow: inset 0 0 0 1px var(--c-lagoon); background: #fbfdfd; }
.beach-option__input:focus-visible + .beach-option__card { outline: 2px solid var(--c-lagoon); outline-offset: 3px; }
.beach-option__media { display: block; width: 88px; aspect-ratio: 1; overflow: hidden; background: var(--c-mist); }
.beach-option__media picture, .beach-option__media img { width: 100%; height: 100%; object-fit: cover; }
.beach-option__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-right: 22px; }
.beach-option__name { font-family: var(--ff-heading); font-size: 18px; line-height: 1.25; color: var(--c-ink); }
.beach-option__tags { font-size: 13px; line-height: 1.45; }
.beach-option__price { font-size: 13px; line-height: 1.4; color: var(--c-muted); }
.beach-option__price strong { font-weight: 500; color: var(--c-ink); }
.beach-option__access { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 7px; }
.beach-option__access .access-badge { max-width: 100%; padding: 3px 9px 3px 7px; border-radius: 12px; font-size: 12px; gap: 5px; white-space: normal; }
.beach-option__access .access-badge .icon { width: 13px; height: 13px; }
.beach-option__day-label { font-size: 12px; font-weight: 500; color: var(--c-ink); }
.beach-option__check {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 22px; height: 22px;
  border: 1px solid #cfd2cc; border-radius: 50%; background: var(--c-white); color: transparent;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast);
}
.beach-option__check .icon { width: 12px; height: 12px; stroke-width: 2.2; }
.beach-option__input:checked + .beach-option__card .beach-option__check { background: var(--c-lagoon); border-color: var(--c-lagoon); color: var(--c-white); }
.beach-option.is-closed .beach-option__media { opacity: 0.6; }
.beach-chooser.is-collapsed .beach-option:not(.is-selected) { display: none; }
.beach-chooser.is-collapsed .beach-options { grid-template-columns: minmax(0, 1fr); }
.beach-chooser.has-error .beach-option__card { border-color: rgba(180, 35, 24, 0.45); }

/* Date */
.checkout-calendar { margin-top: 20px; padding: 24px 20px 20px; border: 1px solid #e6e6e6; transition: border-color var(--t-fast); }
.checkout-group.has-error .checkout-calendar { border-color: var(--c-error); }
.checkout-notice {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 16px;
  background: #fbf3e4; border-left: 3px solid #c08a2d; font-size: 14px; line-height: 1.55; color: var(--c-ink);
}
.checkout-notice .icon { width: 16px; height: 16px; margin-top: 2px; color: #a8741b; }

/* Passes */
.guest-list { max-width: 560px; padding-top: 10px; }
.guest-list .guest-row { border-bottom: 0; }
.guest-list .guest-row + .guest-row { border-top: 1px solid var(--c-line); }
.checkout-group.has-error .stepper__input { color: var(--c-error); }

/* Day rules */
.access-panel {
  --a: var(--access-family); --a-bg: var(--access-family-bg);
  margin-top: 32px; padding: 22px 24px; background: var(--a-bg); border-left: 3px solid var(--a);
}
.access-panel--ladies { --a: var(--access-ladies); --a-bg: var(--access-ladies-bg); }
.access-panel--women_kids { --a: var(--access-women_kids); --a-bg: var(--access-women_kids-bg); }
.access-panel--closed { --a: var(--access-closed); --a-bg: var(--access-closed-bg); }
.access-panel--neutral { --a: var(--c-sand); --a-bg: var(--c-cream); }
.access-panel__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.access-panel .access-badge { background: var(--c-white); }
.access-panel__date { font-size: 14px; font-weight: 500; color: var(--c-ink); }
.access-panel__rules { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--c-text); }
.access-panel .access-fine { margin-top: 10px; }
.access-panel__confirm { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(0, 0, 0, 0.08); }
.access-panel__confirm .check { font-weight: 500; color: var(--c-ink); }
.access-panel__confirm.has-error .check input { outline: 2px solid var(--c-error); outline-offset: 2px; }

/* Details */
.checkout-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.checkout-fields .field--full { grid-column: 1 / -1; }
.field__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field__optional { font-size: 14px; color: var(--c-muted); }
.field__count { font-size: 13px; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.checkout-fields .field__hint { margin-top: -2px; }
.checkout-privacy { display: flex; gap: 10px; align-items: flex-start; margin-top: 28px; font-size: 14px; line-height: 1.55; color: var(--c-muted); }
.checkout-privacy .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--c-lagoon); }
.checkout-privacy a { color: var(--c-lagoon); text-decoration: underline; text-underline-offset: 2px; }

/* Actions */
.checkout-step__actions {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--c-line);
}
.checkout-step__actions--end { justify-content: flex-end; }
.checkout-step__actions .btn { min-width: 220px; padding: 0 36px; }
.checkout-next .icon { width: 15px; height: 15px; stroke-width: 1.6; transition: transform var(--t) var(--ease); }
.checkout-next:hover .icon { transform: translateX(3px); }
.checkout-back {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px;
  font-family: var(--ff-heading); font-size: 15px; color: var(--c-ink);
}
.checkout-back .icon { width: 15px; height: 15px; stroke-width: 1.6; transition: transform var(--t) var(--ease); }
.checkout-back:hover { color: var(--c-lagoon); }
.checkout-back:hover .icon { transform: translateX(-3px); }
.checkout-submit[aria-disabled="true"] { pointer-events: none; }
.checkout-fine { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--c-muted); text-align: right; }

/* Alert (server errors) */
.checkout-alert {
  display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; padding: 16px 20px;
  background: #fdf0ee; border-left: 3px solid var(--c-error); font-size: 15px; line-height: 1.55; color: var(--c-ink);
}
.checkout-alert__icon { width: 20px; height: 20px; margin-top: 1px; color: var(--c-error); }
.checkout-alert__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

/* Review */
.review { margin-top: 28px; border: 1px solid #e6e6e6; }
.review-block { padding: 22px 26px; }
.review-block + .review-block { border-top: 1px solid #e6e6e6; }
.review-block--price { background: var(--c-paper-alt); }
.review-block__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.review-block__title { font-size: 20px; line-height: 1.3; }
.review-block--price .review-block__title { margin-bottom: 14px; }
.review-block__edit {
  padding: 6px 0 3px; font-family: var(--ff-heading); font-size: 14px; line-height: 1.2; color: var(--c-lagoon); border-bottom: 1px solid currentColor;
}
.review-block__edit:hover { color: var(--c-lagoon-dark); }
.review-list { display: grid; gap: 10px; margin: 0; }
.review-list__row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; font-size: 15px; line-height: 1.55; }
.review-list dt { color: var(--c-muted); }
.review-list dd { margin: 0; color: var(--c-ink); overflow-wrap: anywhere; }

/* Payment options */
.pay-options { display: grid; gap: 12px; padding-top: 16px; }
.pay-option { position: relative; display: block; cursor: pointer; }
.pay-option__input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; margin: 0; }
.pay-option__card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid #e3e3df; background: var(--c-white);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.pay-option:hover .pay-option__card { border-color: #b9bdb5; }
.pay-option__input:checked + .pay-option__card { border-color: var(--c-lagoon); box-shadow: inset 0 0 0 1px var(--c-lagoon); }
.pay-option__input:focus-visible + .pay-option__card { outline: 2px solid var(--c-lagoon); outline-offset: 3px; }
.pay-option__radio { position: relative; flex: none; width: 20px; height: 20px; border: 1px solid var(--c-field-border); border-radius: 50%; }
.pay-option__radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--c-lagoon); transform: scale(0); transition: transform var(--t-fast) var(--ease); }
.pay-option__input:checked + .pay-option__card .pay-option__radio { border-color: var(--c-lagoon); }
.pay-option__input:checked + .pay-option__card .pay-option__radio::after { transform: scale(1); }
.pay-option__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; background: var(--c-foam); color: var(--c-lagoon); }
.pay-option__icon .icon { width: 20px; height: 20px; }
.pay-option__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay-option__label { font-family: var(--ff-heading); font-size: 17px; line-height: 1.3; color: var(--c-ink); }
.pay-option__desc { font-size: 14px; line-height: 1.5; color: var(--c-muted); }
.pay-option__soon {
  margin-left: auto; flex: none; padding: 4px 10px; background: var(--c-mist);
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted);
}
.pay-option.is-disabled { cursor: not-allowed; }
.pay-option.is-disabled .pay-option__card { background: #fafaf8; border-style: dashed; }
.pay-option.is-disabled .pay-option__label,
.pay-option.is-disabled .pay-option__icon { opacity: 0.6; }
.pay-option.is-disabled:hover .pay-option__card { border-color: #e3e3df; }
.checkout-terms { margin-top: 28px; }
.checkout-terms.has-error .check input { outline: 2px solid var(--c-error); outline-offset: 2px; }

/* ----- Live summary (right column; collapsible bar on smaller screens) ----- */
.checkout-summary__toggle { display: none; }
.checkout-summary__body { background: var(--c-white); border: 1px solid #e6e6e6; }
.checkout-summary__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-mist); }
.checkout-summary__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s var(--ease); }
.checkout-summary__media.is-loading img { opacity: 0.35; }
.checkout-summary__inner { padding: 26px 28px 28px; }
.checkout-summary__title { font-family: var(--ff-body); font-size: 12px; font-weight: 500; line-height: 1.2; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-lagoon); }
.checkout-summary__beach { margin-top: 8px; font-family: var(--ff-heading); font-size: 24px; line-height: 1.25; color: var(--c-ink); }
.summary-list { display: grid; gap: 12px; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--c-line); }
.summary-list__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; line-height: 1.45; }
.summary-list dt { color: var(--c-muted); }
.summary-list dd { margin: 0; color: var(--c-ink); text-align: right; }
.checkout-summary .price-lines { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--c-line); }
.checkout-assurance { display: grid; gap: 10px; list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--c-line); font-size: 14px; line-height: 1.45; color: var(--c-text); }
.checkout-assurance li { display: flex; align-items: center; gap: 10px; }
.checkout-assurance .icon { width: 17px; height: 17px; color: var(--c-lagoon); }

/* ----- Confirmation ----- */
.checkout-layout.is-done { grid-template-columns: minmax(0, 1fr); max-width: calc(860px + var(--gutter) * 2); }
.booking-done {
  padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 64px); background: var(--c-white); border: 1px solid #e6e6e6; text-align: center;
  animation: bp-done-in 0.6s var(--ease-out) both;
}
@keyframes bp-done-in { from { opacity: 0; transform: translateY(16px); } }
.booking-done__icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; background: var(--c-foam); color: var(--c-lagoon); }
.booking-done__icon .icon { width: 38px; height: 38px; stroke-width: 1.3; }
.booking-done__title { margin-top: 22px; font-size: var(--fs-h4); line-height: 1.25; }
.booking-done__title:focus { outline: none; }
.booking-done__lead { max-width: 560px; margin: 14px auto 0; font-size: 17px; line-height: 1.66; }
.booking-done__ref {
  display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 480px; margin: 32px auto 0; padding: 22px 24px;
  background: var(--c-foam); border: 1px dashed rgba(15, 110, 118, 0.4);
}
.booking-done__ref-label { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-lagoon); }
.booking-done__ref-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; }
.booking-done__ref-code { font-family: var(--ff-body); font-variant-numeric: lining-nums tabular-nums; font-size: clamp(24px, 3vw, 32px); font-weight: 500; line-height: 1.2; letter-spacing: 0.04em; color: var(--c-ink); overflow-wrap: anywhere; }
.booking-done__copy {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  border: 1px solid rgba(15, 110, 118, 0.45); background: var(--c-white); color: var(--c-lagoon); font-size: 14px;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.booking-done__copy:hover { background: var(--c-lagoon); color: var(--c-white); }
.booking-done__copy .icon { width: 14px; height: 14px; }
.booking-done__ref-hint { font-size: 13px; color: var(--c-muted); }
.booking-done__summary { max-width: 560px; margin: 32px auto 0; padding: 22px 0; border-block: 1px solid var(--c-line); text-align: left; }
.booking-done__next { max-width: 560px; margin: 30px auto 0; text-align: left; }
.booking-done__subtitle { font-size: 22px; line-height: 1.3; }
.next-steps { display: grid; gap: 14px; list-style: none; margin: 16px 0 0; padding: 0; }
.next-steps li { display: flex; align-items: flex-start; gap: 14px; font-size: 15px; line-height: 1.6; color: var(--c-text); }
.next-steps__num {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px; margin-top: -2px;
  border: 1px solid var(--c-lagoon); border-radius: 50%; font-family: var(--ff-heading); font-size: 14px; line-height: 1; color: var(--c-lagoon);
}
.booking-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.booking-done__actions .icon { width: 17px; height: 17px; }

/* ----- Payment result pages ----- */
.result-page { padding: clamp(48px, 7vw, 100px) 0 clamp(80px, 9vw, 130px); background: var(--c-mist); }
.result-card {
  max-width: 760px; margin: 0 auto; padding: clamp(36px, 5vw, 64px) clamp(22px, 5vw, 64px);
  background: var(--c-white); border: 1px solid #e6e6e6; text-align: center;
}
.result-card__icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--c-foam); color: var(--c-lagoon); }
.result-card--cancelled .result-card__icon { background: var(--c-cream); color: var(--c-sand); }
.result-card__icon .icon { width: 36px; height: 36px; stroke-width: 1.3; }
.result-card__title { margin-top: 12px; font-size: var(--fs-h4); line-height: 1.25; }
.result-card__lead { max-width: 560px; margin: 16px auto 0; font-size: 17px; line-height: 1.66; }
.result-card__ref {
  display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 420px; margin: 28px auto 0; padding: 18px 22px;
  background: var(--c-foam); border: 1px dashed rgba(15, 110, 118, 0.4);
}
.result-card__ref-label { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-lagoon); }
.result-card__ref-code { font-family: var(--ff-body); font-variant-numeric: lining-nums tabular-nums; font-size: 26px; font-weight: 500; letter-spacing: 0.04em; color: var(--c-ink); overflow-wrap: anywhere; }
.result-card__steps { max-width: 460px; margin: 30px auto 0; text-align: left; }
.result-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.result-card__help { margin-top: 26px; font-size: 14px; color: var(--c-muted); }
.result-card__help a { color: var(--c-lagoon); text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  .checkout-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; }
}
/* Short laptop screens: keep the sticky summary shorter than the viewport. */
@media (min-width: 1025px) and (max-height: 860px) {
  .checkout-summary__media { display: none; }
  .checkout-summary__inner { padding-top: 22px; }
}
@media (max-width: 1024px) {
  .checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .checkout-summary { grid-column: 1; grid-row: 1; position: static; }
  .checkout-main { grid-row: 2; }
  .checkout-summary__toggle {
    display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 12px 20px;
    background: var(--c-white); border: 1px solid #e6e6e6; color: var(--c-ink); text-align: left;
  }
  .checkout-summary__toggle-icon { width: 22px; height: 22px; color: var(--c-lagoon); }
  .checkout-summary__toggle-text { display: flex; flex-direction: column; min-width: 0; }
  .checkout-summary__toggle-label { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-lagoon); }
  .checkout-summary__toggle-sub { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .checkout-summary__toggle-total { margin-left: auto; font-family: var(--ff-heading); font-size: 19px; white-space: nowrap; }
  .checkout-summary__toggle-chevron { width: 11px; height: 11px; stroke-width: 1.8; transition: transform var(--t) var(--ease); }
  .checkout-summary.is-expanded .checkout-summary__toggle-chevron { transform: rotate(180deg); }
  .checkout-summary:not(.is-expanded) .checkout-summary__body { display: none; }
  .checkout-summary__body { border-top: 0; animation: bp-summary-open 0.3s var(--ease-out) both; }
  .checkout-summary__media { display: none; }
  .checkout-summary__beach { display: none; }
  .checkout-summary__title { display: none; }
  .checkout-summary .summary-list { margin-top: 0; border-top: 0; }
}
@keyframes bp-summary-open { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 767px) {
  .checkout-progress { margin-top: 26px; }
  .checkout-progress__item:not(:last-child)::after { margin: 0 10px; }
  /* Only the current step shows its title; the others keep it as their accessible name (visually hidden). */
  .checkout-progress__btn { position: relative; }
  .checkout-progress__item:not(.is-current) .checkout-progress__label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  .checkout-progress__item.is-current .checkout-progress__label { font-size: 14px; }
  .beach-options { grid-template-columns: minmax(0, 1fr); }
  .checkout-fields { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .checkout-calendar { padding: 18px 8px 14px; margin-inline: -4px; }
  .access-panel { padding: 18px; }
  .checkout-step__actions { flex-direction: column-reverse; align-items: stretch; }
  .checkout-step__actions--end { flex-direction: column; }
  .checkout-step__actions .btn { width: 100%; min-width: 0; }
  .checkout-back { justify-content: center; }
  .checkout-fine { text-align: center; }
  .review-block { padding: 18px; }
  .review-list__row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .booking-done__actions .btn { width: 100%; }
  .result-card__actions .btn { width: 100%; }
}
@media (max-width: 480px) {
  .checkout-step { padding: 22px 16px; }
  .checkout-fallback { padding: 24px 20px; }
  .checkout-fallback__title { font-size: 24px; }
  .beach-option__card { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .beach-option__media { width: 72px; }
  .beach-option__name { font-size: 17px; }
  .checkout-calendar { border: 0; padding: 8px 0 0; margin-inline: 0; }
  .pay-option__card { padding: 16px; gap: 12px; flex-wrap: wrap; }
  .pay-option__icon { display: none; }
  .pay-option__soon { margin-left: 32px; }
}
