/* =========================================================================
   WP Activity Bookings: booking widget v2

   The default design since 0.40.6 (see includes/class-wab-ui-v2.php; the
   old look is still at ?wab_ui=v1 for comparison). Loaded after public.css.
   Every rule is scoped under `.wab-ui-v2` (a body class) and carries the same
   `:not(#_wab) ` prefix as public.css, so a v2 rule has one more class than
   the v1 rule it replaces and wins without !important. Date-picker rules
   keep their normal weight, like in public.css.

   Direction: calm and grown-up, close to a heritage brand. Charcoal for the
   main actions and the chosen day, a bronze accent used sparingly, warm
   off-white grounds, thin warm-grey lines, small corners (no pills, no round
   badges, no emoji), uppercase spaced labels, even-width digits for prices
   and dates. One obvious next action per step. No one-sided borders:
   separation comes from spacing and soft fills.
   ========================================================================= */

/* ---------- Tokens ----------
   Zero weight (:where), and later than public.css's defaults, so they replace
   them, while any `.wab-booking { --wab-...: ... }` rule from a site still
   wins. Sites can also set --wab-font-display for headings, for example
   .wab-booking { --wab-font-display: "neutra-text", sans-serif; } */
:where(.wab-ui-v2) :where(.wab-booking, .wab-portal) {
  --wab-bg: #faf8f5;
  --wab-surface: #ffffff;
  --wab-surface-alt: #f4f0ea;
  --wab-text: #23262d;
  --wab-muted: #6e6962;
  --wab-faint: #bdb6ad;
  --wab-border: #e6e0d8;
  --wab-border-strong: #cdc5ba;
  --wab-primary: #262a33;
  --wab-primary-hover: #0f1115;
  --wab-primary-soft: #f1ede7;
  --wab-on-primary: #ffffff;
  --wab-accent: #a8835f;
  --wab-accent-text: #7c5d42;
  --wab-radius: 6px;
  --wab-radius-sm: 4px;
  --wab-radius-pill: 4px;
  --wab-shadow-sm: none;
  --wab-shadow-md: 0 1px 2px rgba(35, 38, 45, 0.05);
  --wab-shadow-lg: 0 10px 28px rgba(35, 38, 45, 0.08);
  --wab-font-display: var(--wab-font);
  --wab-label-size: 11px;
  --wab-label-spacing: 0.1em;
}

/* ---------- Root ---------- */
:not(#_wab) .wab-ui-v2 .wab-booking {
  padding: clamp(16px, 3vw, 32px);
  font-variant-numeric: tabular-nums;
}

/* Shared "label" voice: small, uppercase, spaced. */
:not(#_wab) .wab-ui-v2 .wab-summary-title,
:not(#_wab) .wab-ui-v2 .wab-field-label,
:not(#_wab) .wab-ui-v2 .wab-step-label,
:not(#_wab) .wab-ui-v2 .wab-back,
:not(#_wab) .wab-ui-v2 .wab-language-switcher a,
:not(#_wab) .wab-ui-v2 .wab-language-switcher span {
  font-size: var(--wab-label-size);
  font-weight: 600;
  letter-spacing: var(--wab-label-spacing);
  text-transform: uppercase;
}

/* Test notice: thin and quiet (it only shows while testing). */
:not(#_wab) .wab-ui-v2 .wab-test-banner {
  margin-bottom: 14px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--wab-accent-text);
  background: #f7f1e8;
  border: 1px solid #e7d9c6;
  border-radius: var(--wab-radius-sm);
}

:not(#_wab) .wab-ui-v2 .wab-top-bar {
  margin-bottom: 18px;
}

:not(#_wab) .wab-ui-v2 .wab-help-prompt,
:not(#_wab) .wab-ui-v2 .wab-help-prompt a {
  font-size: 12.5px;
}

/* Language switcher: plain text, the current one underlined. */
:not(#_wab) .wab-ui-v2 .wab-language-switcher {
  gap: 2px;
}

:not(#_wab) .wab-ui-v2 .wab-language-switcher a,
:not(#_wab) .wab-ui-v2 .wab-language-switcher span {
  padding: 6px 8px;
  background: none;
  border-radius: 0;
  color: var(--wab-muted);
}

:not(#_wab) .wab-ui-v2 .wab-language-switcher a:hover,
:not(#_wab) .wab-ui-v2 .wab-language-switcher a:focus-visible {
  background: none;
  color: var(--wab-text);
}

:not(#_wab) .wab-ui-v2 .wab-language-switcher .wab-lang-active,
:not(#_wab) .wab-ui-v2 .wab-language-switcher .current-lang,
:not(#_wab) .wab-ui-v2 .wab-language-switcher .lang-item-current a {
  background: none;
  color: var(--wab-text);
  text-decoration: underline;
  text-decoration-color: var(--wab-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* ---------- Progress: numbered words on a thin line ---------- */
:not(#_wab) .wab-ui-v2 .wab-stepper {
  counter-reset: wab-step;
  gap: 8px;
  margin: 0 0 28px;
}

:not(#_wab) .wab-ui-v2 .wab-step:not(.is-hidden) {
  counter-increment: wab-step;
}

:not(#_wab) .wab-ui-v2 .wab-step {
  gap: 0;
  padding: 0 0 12px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--wab-faint);
}

:not(#_wab) .wab-ui-v2 .wab-step .wab-step-num {
  display: none;
}

/* "01", "02"... from a counter, so a hidden extras step renumbers itself. */
:not(#_wab) .wab-ui-v2 .wab-step-label::before {
  content: counter(wab-step, decimal-leading-zero);
  margin-right: 10px;
  font-weight: 700;
}

/* The line under each step: its own layer, not a border. */
:not(#_wab) .wab-ui-v2 .wab-step::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--wab-border);
  transition: background var(--wab-transition);
}

:not(#_wab) .wab-ui-v2 .wab-step.is-done,
:not(#_wab) .wab-ui-v2 .wab-step.is-active {
  background: none;
  border: 0;
  box-shadow: none;
  color: var(--wab-text);
}

:not(#_wab) .wab-ui-v2 .wab-step.is-done::before {
  background: var(--wab-border-strong);
}

:not(#_wab) .wab-ui-v2 .wab-step.is-active::before {
  background: var(--wab-primary);
}

:not(#_wab) .wab-ui-v2 .wab-step.is-done .wab-step-label::before {
  color: var(--wab-accent-text);
}

:not(#_wab) .wab-ui-v2 .wab-step:not(.is-active):not(.is-locked):hover {
  background: none;
  border: 0;
  color: var(--wab-text);
}

/* Phones: every step keeps its number; only the current one shows its name. */
@media (max-width: 640px) {
  :not(#_wab) .wab-ui-v2 .wab-step .wab-step-label {
    display: inline;
    font-size: 0;
    letter-spacing: 0;
  }

  :not(#_wab) .wab-ui-v2 .wab-step .wab-step-label::before {
    font-size: var(--wab-label-size);
    letter-spacing: var(--wab-label-spacing);
    margin-right: 0;
  }

  :not(#_wab) .wab-ui-v2 .wab-step.is-active {
    flex-grow: 3;
  }

  :not(#_wab) .wab-ui-v2 .wab-step.is-active .wab-step-label {
    font-size: var(--wab-label-size);
    letter-spacing: var(--wab-label-spacing);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  :not(#_wab) .wab-ui-v2 .wab-step.is-active .wab-step-label::before {
    margin-right: 8px;
  }
}

/* ---------- Screen header ---------- */
:not(#_wab) .wab-ui-v2 .wab-screen-header {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

:not(#_wab) .wab-ui-v2 .wab-screen-header h2 {
  font-family: var(--wab-font-display);
  font-size: clamp(16px, 14px + 0.5vw, 19px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wab-text);
}

/* Back: a quiet text link above the heading. */
:not(#_wab) .wab-ui-v2 .wab-back {
  padding: 4px 0;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--wab-muted);
}

:not(#_wab) .wab-ui-v2 .wab-back:hover,
:not(#_wab) .wab-ui-v2 .wab-back:focus-visible {
  background: none;
  color: var(--wab-text);
}

/* ---------- Buttons ---------- */
:not(#_wab) .wab-ui-v2 .wab-btn {
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--wab-radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

:not(#_wab) .wab-ui-v2 .wab-btn-primary {
  background: var(--wab-primary);
  color: var(--wab-on-primary);
  box-shadow: none;
}

:not(#_wab) .wab-ui-v2 .wab-btn-primary:hover,
:not(#_wab) .wab-ui-v2 .wab-btn-primary:focus-visible {
  background: var(--wab-primary-hover);
  box-shadow: none;
  transform: none;
}

:not(#_wab) .wab-ui-v2 .wab-btn-primary:focus-visible {
  outline: 2px solid var(--wab-accent);
  outline-offset: 2px;
}

/* ---------- Step 1: activities ---------- */
:not(#_wab) .wab-ui-v2 .wab-activities-grid {
  /* 3 columns in the default 1100px width: five activities sit as 3 + 2. */
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}

:not(#_wab) .wab-ui-v2 .wab-activity-card {
  border: 1px solid var(--wab-border);
  border-radius: var(--wab-radius);
  box-shadow: none;
}

:not(#_wab) .wab-ui-v2 .wab-activity-card::before {
  border-radius: var(--wab-radius);
  border-width: 1px;
}

:not(#_wab) .wab-ui-v2 .wab-activity-card:hover,
:not(#_wab) .wab-ui-v2 .wab-activity-card:focus-visible {
  box-shadow: var(--wab-shadow-lg);
}

:not(#_wab) .wab-ui-v2 .wab-activity-card-media {
  aspect-ratio: 3 / 2;
  border-radius: var(--wab-radius) var(--wab-radius) 0 0;
  background: var(--wab-surface-alt);
}

/* Badge on the photo: a small dark tag, no emoji. */
:not(#_wab) .wab-ui-v2 .wab-activity-card-meta {
  top: 12px;
  left: 12px;
}

:not(#_wab) .wab-ui-v2 .wab-meta-chip {
  padding: 5px 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(35, 38, 45, 0.82);
  border: 0;
  border-radius: 3px;
}

:not(#_wab) .wab-ui-v2 .wab-meta-chip-icon {
  display: none;
}

/* The long description is one tap away on the next step. */
:not(#_wab) .wab-ui-v2 .wab-activity-card-info {
  display: none;
}

:not(#_wab) .wab-ui-v2 .wab-activity-card-body {
  gap: 8px;
  padding: 18px 18px 16px;
}

:not(#_wab) .wab-ui-v2 .wab-activity-card-name {
  padding-right: 0;
  font-family: var(--wab-font-display);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.3;
  color: var(--wab-text);
}

:not(#_wab) .wab-ui-v2 .wab-booking .wab-activity-card-notice {
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  color: var(--wab-accent-text);
  background: none;
}

:not(#_wab) .wab-ui-v2 .wab-booking .wab-activity-card-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--wab-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

:not(#_wab) .wab-ui-v2 .wab-activity-card-footer {
  margin-top: auto;
  padding: 12px 0 0;
  background: none;
  border: 0;
  border-radius: 0;
}

:not(#_wab) .wab-ui-v2 .wab-activity-card-price strong {
  font-size: 19px;
  font-weight: 650;
}

:not(#_wab) .wab-ui-v2 .wab-activity-card-price-label,
:not(#_wab) .wab-ui-v2 .wab-activity-card-price-suffix {
  font-size: 12.5px;
  color: var(--wab-muted);
}

/* The arrow: plain, no circle; it moves a little on hover. */
:not(#_wab) .wab-ui-v2 .wab-activity-card-cta,
:not(#_wab) .wab-ui-v2 .wab-activity-card:hover .wab-activity-card-cta,
:not(#_wab) .wab-ui-v2 .wab-activity-card:focus-visible .wab-activity-card-cta {
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  box-shadow: none;
  color: var(--wab-text);
  font-size: 18px;
  font-weight: 400;
}

:not(#_wab) .wab-ui-v2 .wab-activity-card:hover .wab-activity-card-cta,
:not(#_wab) .wab-ui-v2 .wab-activity-card:focus-visible .wab-activity-card-cta {
  transform: translateX(3px);
}

/* Phones: compact rows (thumb + text), so most activities fit one screen. */
@media (max-width: 600px) {
  :not(#_wab) .wab-ui-v2 .wab-activities-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  :not(#_wab) .wab-ui-v2 .wab-activity-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: stretch;
  }

  :not(#_wab) .wab-ui-v2 .wab-activity-card-media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 112px;
    border-radius: var(--wab-radius) 0 0 var(--wab-radius);
  }

  :not(#_wab) .wab-ui-v2 .wab-activity-card--no-image {
    grid-template-columns: minmax(0, 1fr);
  }

  :not(#_wab) .wab-ui-v2 .wab-activity-card--no-image .wab-activity-card-media,
  :not(#_wab) .wab-ui-v2 .wab-activity-card-meta,
  :not(#_wab) .wab-ui-v2 .wab-booking .wab-activity-card-desc {
    display: none;
  }

  :not(#_wab) .wab-ui-v2 .wab-activity-card-body {
    padding: 12px 14px;
    gap: 5px;
  }

  :not(#_wab) .wab-ui-v2 .wab-activity-card-name {
    font-size: 15px;
  }

  :not(#_wab) .wab-ui-v2 .wab-booking .wab-activity-card-notice {
    font-size: 12px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  :not(#_wab) .wab-ui-v2 .wab-activity-card-footer {
    padding-top: 4px;
  }

  :not(#_wab) .wab-ui-v2 .wab-activity-card-price strong {
    font-size: 16px;
  }
}

/* ---------- Step 2: date ---------- */

/* Activity recap: name, price, two lines of description, "More info". */
:not(#_wab) .wab-ui-v2 .wab-activity-full-desc {
  margin-bottom: 18px;
  padding: 0;
  background: none;
  border: 0;
}

:not(#_wab) .wab-ui-v2 .wab-activity-full-desc-header {
  margin-bottom: 6px;
}

:not(#_wab) .wab-ui-v2 .wab-booking .wab-activity-full-desc-name {
  font-family: var(--wab-font-display);
  font-size: 18px;
  font-weight: 650;
}

:not(#_wab) .wab-ui-v2 .wab-activity-full-desc-price {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--wab-accent-text);
}

:not(#_wab) .wab-ui-v2 .wab-booking .wab-activity-full-desc-body {
  max-width: 72ch;
  font-size: 14px;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

:not(#_wab) .wab-ui-v2 .wab-activity-full-desc.is-expanded .wab-activity-full-desc-body {
  display: block;
  white-space: pre-wrap;
  overflow: visible;
}

:not(#_wab) .wab-ui-v2 .wab-desc-toggle {
  margin-top: 6px;
  padding: 4px 0;
  font-size: var(--wab-label-size);
  font-weight: 700;
  letter-spacing: var(--wab-label-spacing);
  text-transform: uppercase;
  color: var(--wab-text);
  text-decoration: underline;
  text-decoration-color: var(--wab-accent);
  text-underline-offset: 4px;
}

:not(#_wab) .wab-ui-v2 .wab-activity-gallery {
  margin-top: 12px;
}

:not(#_wab) .wab-ui-v2 .wab-activity-full-desc:not(.is-expanded) .wab-activity-gallery {
  display: none;
}

/* Cards on this step: thin lines, no shadows. */
:not(#_wab) .wab-ui-v2 .wab-card {
  background: var(--wab-surface);
  border: 1px solid var(--wab-border);
  border-radius: var(--wab-radius);
  box-shadow: none;
}

/* Group size: label left, counter right. */
:not(#_wab) .wab-ui-v2 .wab-participants-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}

:not(#_wab) .wab-ui-v2 .wab-participants-card .wab-field-label {
  margin: 0;
  color: var(--wab-text);
}

:not(#_wab) .wab-ui-v2 .wab-stepper-control {
  flex: 0 0 auto;
  gap: 0;
  border: 1px solid var(--wab-border-strong);
  border-radius: var(--wab-radius-sm);
  overflow: hidden;
}

:not(#_wab) .wab-ui-v2 .wab-stepper-control button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: var(--wab-surface);
  color: var(--wab-text);
  font-size: 18px;
}

:not(#_wab) .wab-ui-v2 .wab-stepper-control button:hover {
  background: var(--wab-surface-alt);
  color: var(--wab-text);
}

:not(#_wab) .wab-ui-v2 .wab-stepper-control input {
  width: 52px;
  height: 44px;
  border: 0;
  border-radius: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 650;
  background: var(--wab-surface);
}

/* Calendar: plain numbers. Free days in dark ink with a bronze dot, the
   rest in a faint grey, the chosen day a solid charcoal square. */
:not(#_wab) .wab-ui-v2 .wab-calendar-card {
  padding: 16px;
}

.wab-ui-v2 .wab-booking .flatpickr-calendar .flatpickr-month,
.wab-ui-v2 .wab-booking .flatpickr-calendar .flatpickr-current-month {
  font-size: 15px;
  font-weight: 650;
  color: var(--wab-text);
}

.wab-ui-v2 .wab-booking .flatpickr-calendar span.flatpickr-weekday {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--wab-muted);
}

.wab-ui-v2 .wab-booking .flatpickr-calendar .flatpickr-day {
  aspect-ratio: auto;
  height: 44px;
  border: 0;
  border-radius: var(--wab-radius-sm);
  font-size: 14px;
  font-weight: 650;
  color: var(--wab-text);
  background-color: transparent;
  background-image: radial-gradient(circle at 50% 80%, var(--wab-accent) 0 2px, transparent 2.5px);
}

.wab-ui-v2 .wab-booking .flatpickr-calendar .flatpickr-day:hover {
  background-color: var(--wab-surface-alt);
}

.wab-ui-v2 .wab-booking .flatpickr-calendar .flatpickr-day.selected,
.wab-ui-v2 .wab-booking .flatpickr-calendar .flatpickr-day.selected:hover {
  background-color: var(--wab-primary);
  background-image: none;
  color: var(--wab-on-primary);
}

.wab-ui-v2 .wab-booking .flatpickr-calendar .flatpickr-day.flatpickr-disabled,
.wab-ui-v2 .wab-booking .flatpickr-calendar .flatpickr-day.flatpickr-disabled:hover {
  text-decoration: none;
  font-weight: 400;
  color: var(--wab-faint);
  background-color: transparent;
  background-image: none;
  opacity: 1;
}

.wab-ui-v2 .wab-booking .flatpickr-calendar .flatpickr-day.nextMonthDay,
.wab-ui-v2 .wab-booking .flatpickr-calendar .flatpickr-day.prevMonthDay {
  visibility: hidden;
}

.wab-ui-v2 .wab-booking .flatpickr-calendar .flatpickr-day.today:not(.selected) {
  box-shadow: inset 0 0 0 1px var(--wab-border-strong);
}

@media (max-width: 600px) {
  .wab-ui-v2 .wab-booking .flatpickr-calendar .flatpickr-day {
    height: 42px;
  }
}

:not(#_wab) .wab-ui-v2 .wab-calendar-status {
  margin-top: 12px;
  font-size: 13px;
  color: var(--wab-muted);
}

/* ---------- Time buttons (popup, a bottom sheet on phones) ---------- */
:not(#_wab) .wab-ui-v2 .wab-slot-modal-card {
  border-radius: var(--wab-radius);
}

:not(#_wab) .wab-ui-v2 .wab-slot-modal-head h3 {
  font-family: var(--wab-font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

:not(#_wab) .wab-ui-v2 .wab-slot-list {
  gap: 8px;
}

:not(#_wab) .wab-ui-v2 .wab-slot {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--wab-border-strong);
  border-radius: var(--wab-radius-sm);
  background: var(--wab-surface);
}

:not(#_wab) .wab-ui-v2 .wab-slot:hover:not(:disabled) {
  border-color: var(--wab-primary);
  background: var(--wab-surface);
}

:not(#_wab) .wab-ui-v2 .wab-slot.is-selected {
  border-color: var(--wab-primary);
  background: var(--wab-primary);
  color: var(--wab-on-primary);
}

:not(#_wab) .wab-ui-v2 .wab-slot-time {
  font-size: 16px;
  font-weight: 700;
}

:not(#_wab) .wab-ui-v2 .wab-slot-remaining {
  font-size: 12px;
}

@media (max-width: 600px) {
  :not(#_wab) .wab-ui-v2 .wab-slot-modal {
    align-items: flex-end;
    padding: 0;
  }

  :not(#_wab) .wab-ui-v2 .wab-slot-modal-card {
    width: 100%;
    max-width: none;
    border-radius: 12px 12px 0 0;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    animation: wab-v2-sheet-up 220ms ease-out;
  }

  :not(#_wab) .wab-ui-v2 .wab-slot-modal .wab-slot-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@keyframes wab-v2-sheet-up {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---------- Summary ---------- */
:not(#_wab) .wab-ui-v2 .wab-summary {
  padding: 16px;
}

:not(#_wab) .wab-ui-v2 .wab-summary-title {
  margin-bottom: 10px;
  color: var(--wab-muted);
}

:not(#_wab) .wab-ui-v2 .wab-summary-row dt {
  font-size: 12.5px;
  color: var(--wab-muted);
}

:not(#_wab) .wab-ui-v2 .wab-summary-row dd {
  font-size: 14px;
  font-weight: 600;
  color: var(--wab-text);
}

:not(#_wab) .wab-ui-v2 .wab-summary-breakdown {
  margin-top: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--wab-radius-sm);
  background: var(--wab-bg);
}

:not(#_wab) .wab-ui-v2 .wab-summary-total-row {
  margin-top: 4px;
  padding: 12px 0 0;
  border: 0;
  background: none;
}

:not(#_wab) .wab-ui-v2 .wab-summary-total-row dt {
  font-size: var(--wab-label-size);
  font-weight: 700;
  letter-spacing: var(--wab-label-spacing);
  text-transform: uppercase;
  color: var(--wab-text);
}

:not(#_wab) .wab-ui-v2 .wab-summary-total-row dd {
  font-size: 22px;
  font-weight: 700;
  color: var(--wab-text);
}

/* ---------- Step 3: extras ---------- */
:not(#_wab) .wab-ui-v2 .wab-addons-list {
  display: grid;
  gap: 10px;
}

:not(#_wab) .wab-ui-v2 .wab-addon-item,
:not(#_wab) .wab-ui-v2 .wab-addon-item.has-image {
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "check body price";
  gap: 10px 16px;
  padding: 16px;
  border: 1px solid var(--wab-border);
  border-radius: var(--wab-radius);
}

:not(#_wab) .wab-ui-v2 .wab-addon-item.has-image {
  grid-template-columns: auto 88px minmax(0, 1fr) auto;
  grid-template-areas: "check media body price";
}

:not(#_wab) .wab-ui-v2 .wab-addon-item:hover {
  border-color: var(--wab-border-strong);
}

:not(#_wab) .wab-ui-v2 .wab-addon-item input[type="checkbox"] {
  grid-area: check;
  width: 20px;
  height: 20px;
  accent-color: var(--wab-primary);
}

:not(#_wab) .wab-ui-v2 .wab-addon-media {
  grid-area: media;
  width: 88px;
  height: 72px;
  border-radius: var(--wab-radius-sm);
}

:not(#_wab) .wab-ui-v2 .wab-addon-body {
  grid-area: body;
}

:not(#_wab) .wab-ui-v2 .wab-addon-body strong {
  font-size: 15px;
  font-weight: 650;
}

:not(#_wab) .wab-ui-v2 .wab-addon-desc {
  font-size: 13px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

:not(#_wab) .wab-ui-v2 .wab-addon-price {
  grid-area: price;
  align-self: start;
  font-size: 15px;
  font-weight: 650;
  color: var(--wab-text);
}

:not(#_wab) .wab-ui-v2 .wab-addon-item:has(input:checked) {
  border-color: var(--wab-primary);
  background: var(--wab-bg);
}

@media (max-width: 600px) {
  :not(#_wab) .wab-ui-v2 .wab-addon-item,
  :not(#_wab) .wab-ui-v2 .wab-addon-item.has-image {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "body body"
      "check price";
    align-items: center;
  }

  :not(#_wab) .wab-ui-v2 .wab-addon-item.has-image {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    grid-template-areas:
      "media body body"
      "check check price";
  }

  :not(#_wab) .wab-ui-v2 .wab-addon-media {
    width: 72px;
    height: 72px;
  }

  :not(#_wab) .wab-ui-v2 .wab-addon-price {
    align-self: center;
  }
}

/* ---------- Step 4: details ---------- */
:not(#_wab) .wab-ui-v2 .wab-form-grid {
  gap: 14px 18px;
}

:not(#_wab) .wab-ui-v2 .wab-field-label {
  color: var(--wab-text);
}

:not(#_wab) .wab-ui-v2 .wab-field input,
:not(#_wab) .wab-ui-v2 .wab-field textarea {
  padding: 12px 14px;
  border: 1px solid var(--wab-border-strong);
  border-radius: var(--wab-radius-sm);
  background: var(--wab-surface);
}

:not(#_wab) .wab-ui-v2 .wab-field input {
  min-height: 48px;
}

:not(#_wab) .wab-ui-v2 .wab-field input:focus,
:not(#_wab) .wab-ui-v2 .wab-field textarea:focus {
  border-color: var(--wab-primary);
  box-shadow: 0 0 0 3px rgba(35, 38, 45, 0.08);
}

@media (max-width: 600px) {
  :not(#_wab) .wab-ui-v2 .wab-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

:not(#_wab) .wab-ui-v2 .wab-policy {
  font-size: 13px;
  background: var(--wab-bg);
  border: 1px solid var(--wab-border);
}

/* One-line recap at the top of the details step (built by the script). */
:not(#_wab) .wab-ui-v2 .wab-recap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin: 0 0 20px;
  padding: 14px 16px;
  background: var(--wab-surface);
  border: 1px solid var(--wab-border);
  border-radius: var(--wab-radius);
  font-size: 14px;
  color: var(--wab-text);
}

:not(#_wab) .wab-ui-v2 .wab-recap-text {
  min-width: 0;
  font-weight: 600;
}

:not(#_wab) .wab-ui-v2 .wab-recap-edit {
  font-size: var(--wab-label-size);
  font-weight: 700;
  letter-spacing: var(--wab-label-spacing);
  text-transform: uppercase;
  color: var(--wab-text);
  text-decoration: underline;
  text-decoration-color: var(--wab-accent);
  text-underline-offset: 4px;
}

:not(#_wab) .wab-ui-v2 .wab-recap-total {
  margin-left: auto;
  font-size: 18px;
  font-weight: 700;
  color: var(--wab-text);
}

/* The full summary opens from the recap ("See details"). */
:not(#_wab) .wab-ui-v2 .wab-details-recap .wab-summary[data-summary="details"] {
  display: none;
}

:not(#_wab) .wab-ui-v2 .wab-details-recap.wab-details-open .wab-summary[data-summary="details"]:not([hidden]) {
  display: block;
  margin-bottom: 20px;
}

:not(#_wab) .wab-ui-v2 .wab-submit {
  width: 100%;
  min-height: 54px;
}

/* The amount on the pay button; the script keeps data-wab-total current. */
:not(#_wab) .wab-ui-v2 .wab-submit::after {
  content: attr(data-wab-total);
}

:not(#_wab) .wab-ui-v2 .wab-secure-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--wab-muted);
}

/* ---------- Bottom action bar (phones) ----------
   Added by the script at the end of the date, extras and details screens:
   total and short recap on the left, the next action on the right. Sticky
   (not fixed): fixed breaks inside theme sections that use transforms. */
:not(#_wab) .wab-ui-v2 .wab-actionbar {
  display: none;
}

@media (max-width: 820px) {
  :not(#_wab) .wab-ui-v2 .wab-actionbar {
    position: sticky;
    bottom: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 20px calc(-1 * clamp(16px, 3vw, 32px)) calc(-1 * clamp(16px, 3vw, 32px));
    padding: 12px clamp(16px, 3vw, 32px);
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--wab-surface);
    box-shadow: 0 -8px 24px rgba(35, 38, 45, 0.07);
  }

  :not(#_wab) .wab-ui-v2 .wab-actionbar[hidden] {
    display: none;
  }

  :not(#_wab) .wab-ui-v2 .wab-actionbar-info {
    display: grid;
    flex: 1 1 auto;
    gap: 2px;
    min-width: 0;
  }

  :not(#_wab) .wab-ui-v2 .wab-actionbar-total {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    color: var(--wab-text);
  }

  :not(#_wab) .wab-ui-v2 .wab-actionbar-meta {
    font-size: 12px;
    color: var(--wab-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* .wab-btn is full width by default: the bar button is not. */
  :not(#_wab) .wab-ui-v2 .wab-actionbar .wab-actionbar-btn {
    flex: 0 0 auto;
    width: auto;
    max-width: 60%;
    padding: 0 20px;
    white-space: nowrap;
  }

  /* The bar replaces the summary cards and the pay button on phones. */
  :not(#_wab) .wab-ui-v2 .wab-has-actionbar .wab-summary[data-summary="date"],
  :not(#_wab) .wab-ui-v2 .wab-has-actionbar .wab-summary[data-summary="addons"],
  :not(#_wab) .wab-ui-v2 .wab-has-actionbar .wab-summary[data-summary="details"],
  :not(#_wab) .wab-ui-v2 .wab-has-actionbar .wab-submit {
    display: none;
  }
}

/* ---------- Thank-you and cancelled cards ---------- */
:not(#_wab) .wab-ui-v2 .wab-success-card {
  border-radius: var(--wab-radius);
  box-shadow: none;
}

:not(#_wab) .wab-ui-v2 .wab-success-check {
  width: 48px;
  height: 48px;
  background: none;
  border: 1px solid var(--wab-accent);
  color: var(--wab-accent-text);
  font-size: 22px;
  box-shadow: none;
}

:not(#_wab) .wab-ui-v2 .wab-booking.wab-success .wab-success-title,
:not(#_wab) .wab-ui-v2 .wab-booking.wab-cancelled .wab-success-title {
  font-family: var(--wab-font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

:not(#_wab) .wab-ui-v2 .wab-cancelled-retry {
  border-radius: var(--wab-radius-sm);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- No one-sided dividers ----------
   v1 separates rows with top or bottom borders. v2 uses spacing and soft
   fills instead (house rule: borders are the same on every side). */
:not(#_wab) .wab-ui-v2 .wab-success-row,
:not(#_wab) .wab-ui-v2 .wab-success-row:last-child {
  border: 0;
  padding: 6px 0;
}

:not(#_wab) .wab-ui-v2 .wab-success-total {
  border: 0;
  margin-top: 8px;
  padding: 12px 14px;
  background: var(--wab-surface-alt);
  border-radius: var(--wab-radius-sm);
}

:not(#_wab) .wab-ui-v2 .wab-success-policy {
  border: 0;
  margin-top: 14px;
}

:not(#_wab) .wab-ui-v2 .wab-catalog-cat-items {
  border: 0;
  display: grid;
  gap: 6px;
}

:not(#_wab) .wab-ui-v2 .wab-catalog-item {
  border: 0;
  border-radius: var(--wab-radius-sm);
  background: var(--wab-bg);
}

:not(#_wab) .wab-ui-v2 .wab-catalog-basket-line,
:not(#_wab) .wab-ui-v2 .wab-catalog-basket-line:last-child {
  border: 0;
  padding: 6px 0;
}

:not(#_wab) .wab-ui-v2 .wab-catalog-modal-foot {
  border: 0;
  box-shadow: 0 -8px 20px rgba(35, 38, 45, 0.05);
}
