/* Loaded after the booking plugin stylesheet. Scope every override to the
   COMPLETE booking layout so other WordPress forms keep their own styling. */
.complete-booking-layout,
.complete-booking-layout #shine-booking-root,
.complete-booking-layout #shine-booking-root .sb-shell,
.complete-booking-layout #shine-booking-root .sb-body {
  min-width: 0;
}

/* The action row is moved to a shell child by booking.js. Give the form its
   own scroll area and keep the actions in the shell's normal flex layout. */
.complete-booking-layout #shine-booking-root .sb-shell {
  display: flex;
  flex-direction: column;
  height: min(760px, max(160px, calc(100svh - 100px - env(safe-area-inset-bottom)))) !important;
  height: min(760px, max(160px, calc(100dvh - 100px - env(safe-area-inset-bottom)))) !important;
  min-height: 0 !important;
  overflow: hidden;
}
.complete-booking-layout #shine-booking-root .sb-shell > .sb-top,
.complete-booking-layout #shine-booking-root .sb-shell > .sb-draft-notice,
.complete-booking-layout #shine-booking-root .sb-shell > .sb-progress {
  flex: 0 0 auto;
}
.complete-booking-layout #shine-booking-root .sb-shell > .sb-body {
  display: block;
  flex: 1 1 auto;
  height: auto !important;
  min-height: 0 !important;
  padding-bottom: 24px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.complete-booking-layout #shine-booking-root .sb-shell > .sb-nav {
  position: static !important;
  inset: auto !important;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
  padding: 12px max(16px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  gap: 10px;
  flex-wrap: wrap;
}
.complete-booking-layout #shine-booking-root .sb-shell > .sb-nav .sb-current {
  min-width: 0;
  overflow-wrap: anywhere;
}
.complete-booking-layout #shine-booking-root .sb-shell > .sb-nav :is(.sb-primary, .sb-secondary) {
  min-height: 44px;
  height: auto;
  padding-block: 10px;
  white-space: normal;
  line-height: 1.3;
}

/* The address map and payment status remain part of the same scroll model. */
.complete-booking-layout #shine-booking-root .sb-step-0 > .sb-body {
  pointer-events: none;
}
.complete-booking-layout #shine-booking-root .sb-step-0 .sb-address-panel {
  pointer-events: auto;
}
.complete-booking-layout #shine-booking-root .sb-shell.sb-payment-status {
  display: block;
  overflow-y: auto;
}
.complete-booking-layout #shine-booking-root .sb-step-5 .sb-calendar {
  height: auto;
  min-height: 0;
  flex: none;
}
.complete-booking-layout #shine-booking-root .sb-step-5 .sb-calendar-grid {
  grid-auto-rows: auto;
  align-content: start;
}

/* Cards reflow at their own available width, including narrow embeds and
   single-screen foldables. Frequency choices can use two columns if needed. */
.complete-booking-layout #shine-booking-root .sb-service-plan-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
.complete-booking-layout #shine-booking-root .sb-service-plan-card {
  min-width: 0;
}
.complete-booking-layout #shine-booking-root .sb-plan-frequency-picker {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 96px), 1fr));
  gap: 8px;
}
.complete-booking-layout #shine-booking-root .sb-plan-frequency {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 48px;
  padding: 8px 5px;
  font-size: 14px;
  white-space: normal;
  word-break: normal;
}
.complete-booking-layout #shine-booking-root .sb-plan-frequency-label,
.complete-booking-layout #shine-booking-root .sb-plan-frequency-price {
  display: block;
  margin-top: 0;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.2;
}
.complete-booking-layout #shine-booking-root .sb-plan-frequency-price {
  font-size: 14px;
}

/* The classic theme uses 10-12px helper text in several places. Raise the
   reading size without changing numeric values or disclosure wording. */
.complete-booking-layout #shine-booking-root :is(
  .sb-draft-notice, .sb-body, .sb-body > p, .sb-body label,
  .sb-body small, .sb-address-note, .sb-calendar-help,
  .sb-plan-includes, .sb-plan-description, .sb-plan-disclosure,
  .sb-service-plan-price span, .sb-service-plan-summary small,
  .sb-review-plan-offer small, .sb-payment-choice small,
  .sb-payment-choice p, .sb-field-error, .sb-secure-note,
  .sb-checkout-privacy, .sb-payment-help, .sb-payment-message,
  .sb-discount-message, .sb-discount-success, .sb-two-charge-notice,
  .sb-test-payment-note, .sb-summary > div, .sb-slot, .sb-period strong
) {
  font-size: max(14px, 1rem) !important;
  line-height: 1.45;
}
.complete-booking-layout #shine-booking-root .sb-shell > .sb-nav :is(.sb-primary, .sb-secondary),
.complete-booking-layout #shine-booking-root .sb-current :is(strong, small) {
  font-size: max(14px, 1rem) !important;
}
.complete-booking-layout #shine-booking-root .sb-body :is(input, textarea, select) {
  font-size: 16px !important;
}
.complete-booking-layout #shine-booking-root :is(
  .sb-address-note button, .sb-discount > summary, .sb-discount button,
  .sb-plan-select, .sb-selected button, .sb-link-button,
  .sb-calendar-head button, .sb-time-slot, .sb-slot, .sb-period,
  .sb-header-back, .sb-resume-note button
) {
  min-height: 44px;
}
.complete-booking-layout #shine-booking-root .sb-top {
  height: auto;
  min-height: 62px;
  padding-block: 8px;
}
.complete-booking-layout #shine-booking-root .sb-header-title {
  max-width: none;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

/* Prevent long labels and totals from forcing the checkout beyond the card. */
.complete-booking-layout #shine-booking-root .sb-summary > div {
  min-width: 0;
  flex-wrap: wrap;
}
.complete-booking-layout #shine-booking-root .sb-summary :is(span, b) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.complete-booking-layout #shine-booking-root .sb-service-plan-summary > span {
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .complete-booking-layout,
  .complete-booking-layout.address-pending-sidebar,
  .complete-booking-layout.sb-theme-complete {
    display: flex !important;
    flex-direction: column;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .complete-booking-layout #shine-booking-root,
  .complete-booking-layout.address-pending-sidebar #shine-booking-root,
  .complete-booking-layout.address-pending-sidebar.is-sidebar-top #shine-booking-root,
  .complete-booking-layout.sb-theme-complete #shine-booking-root {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  .complete-booking-layout #shine-booking-root .sb-shell {
    height: max(160px, calc(100dvh - 100px - env(safe-area-inset-bottom))) !important;
    min-height: 0 !important;
  }
  .complete-booking-layout.address-pending-sidebar #shine-booking-root .sb-shell,
  .complete-booking-layout.sb-theme-complete #shine-booking-root .sb-shell {
    height: max(160px, calc(100dvh - 100px - env(safe-area-inset-bottom))) !important;
    min-height: 0 !important;
  }
  .complete-booking-layout .complete-booking-sidebar {
    position: static;
    height: auto !important;
    min-height: 0 !important;
    margin-top: 18px !important;
    overflow: visible;
  }
  .complete-booking-layout.is-sidebar-top .complete-booking-sidebar {
    order: 0;
  }
  .complete-booking-layout.is-sidebar-top #shine-booking-root {
    order: 1;
  }
  .complete-booking-layout #shine-booking-root .sb-step-5 > .sb-body {
    padding-bottom: 24px !important;
    overflow-y: auto !important;
  }
  .complete-booking-layout #shine-booking-root .sb-calendar-day,
  .complete-booking-layout #shine-booking-root .sb-calendar-blank {
    min-height: 44px !important;
    height: 44px !important;
  }
  .complete-booking-layout #shine-booking-root .sb-calendar-head > button {
    min-width: 44px !important;
    width: 44px !important;
    max-width: 44px !important;
    min-height: 44px !important;
    height: 44px !important;
    max-height: 44px !important;
  }
  .complete-booking-layout #shine-booking-root .sb-calendar-head {
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
  }
}

@media (max-width: 480px) {
  .complete-booking-layout #shine-booking-root .sb-shell > .sb-nav {
    /* The help footer below this row reserves space for fixed site utilities. */
    padding-left: max(16px, env(safe-area-inset-left));
  }
  .complete-booking-layout #shine-booking-root .sb-shell > .sb-nav .sb-primary {
    flex: 1 1 130px;
  }
  .complete-booking-layout #shine-booking-root .sb-shell > .sb-nav .sb-current {
    flex: 1 1 100px;
  }
  .complete-booking-layout #shine-booking-root .sb-header-title {
    font-size: 16px !important;
  }
  .complete-booking-layout #shine-booking-root .sb-body {
    padding-inline: 14px !important;
  }
  .complete-booking-layout #shine-booking-root .sb-step-0 > .sb-body {
    padding-inline: 0 !important;
  }
  .complete-booking-layout #shine-booking-root .sb-address-panel {
    width: calc(100% - 28px);
  }
  .complete-booking-layout #shine-booking-root .sb-summary > div {
    gap: 4px 12px;
  }
}

/* A short landscape viewport or open keyboard still leaves an independently
   scrollable form; the action row stays inside the widget. */
@media (max-height: 500px) {
  .complete-booking-layout #shine-booking-root .sb-shell > .sb-nav {
    padding-block: 6px;
  }
  .complete-booking-layout #shine-booking-root .sb-top {
    min-height: 50px;
  }
}
@media (max-height: 480px) {
  .complete-booking-layout #shine-booking-root .sb-shell > .sb-draft-notice {
    display: none;
  }
}

/* Folded displays expose segment geometry when supported. Keep the whole
   booking flow in one pane so a hinge never cuts through a card or action. */
@media (horizontal-viewport-segments: 2) {
  .complete-booking-layout,
  .sb-booking-help {
    width: env(viewport-segment-width 0 0) !important;
    max-width: env(viewport-segment-width 0 0) !important;
    margin-left: calc(50% - 50vw + env(viewport-segment-left 0 0)) !important;
    margin-right: 0 !important;
  }
  .complete-booking-layout {
    display: flex !important;
    flex-direction: column;
    height: auto !important;
  }
  .complete-booking-layout #shine-booking-root,
  .complete-booking-layout .complete-booking-sidebar {
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }
  .complete-booking-layout .complete-booking-sidebar {
    position: static;
    order: 2;
  }
}
@media (vertical-viewport-segments: 2) {
  .complete-booking-layout #shine-booking-root .sb-shell {
    height: max(160px, calc(env(viewport-segment-height 0 0) - 100px - env(safe-area-inset-bottom))) !important;
  }
  .complete-booking-layout.sb-theme-complete #shine-booking-root .sb-shell {
    height: max(160px, calc(env(viewport-segment-height 0 0) - 100px - env(safe-area-inset-bottom))) !important;
  }
}

/* The page's in-flow help link replaces only the matching Elementor phone
   bubble. Other site utilities, including accessibility controls, remain. */
body:has(.sb-booking-help) .e-contact-buttons:has(a[href="tel:+19732912877"]) {
  display: none !important;
}
.sb-booking-help {
  position: static;
  box-sizing: border-box;
  width: min(100%, 1640px);
  margin: 8px auto 0;
  padding: 0 max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.sb-booking-help a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* The footer keeps the phone link clear of the site's accessibility launcher. */
.sb-booking-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 8px;
  padding-left: max(64px, env(safe-area-inset-left));
  font-family: "Complete DM Sans", Arial, sans-serif;
  color: #374151;
}
.sb-booking-help a { color: #2235a9; font-weight: 600; text-underline-offset: 3px; }
.sb-booking-help a:focus-visible { outline: 3px solid #2235a9; outline-offset: 3px; }
@media (max-width: 480px) {
  .sb-booking-help-label { display: none; }
  /* Back remains available in the header; avoid duplicating it in tight rows. */
  .complete-booking-layout #shine-booking-root .sb-shell:has(.sb-header-back) > .sb-nav [data-back] { display: none; }
  .complete-booking-layout #shine-booking-root .sb-shell > .sb-nav .sb-current { flex: 1 1 80px; }
  .complete-booking-layout #shine-booking-root .sb-shell > .sb-nav .sb-primary { flex: 1 1 106px; }
}
.complete-booking-layout #shine-booking-root .sb-top { grid-template-columns: 44px minmax(0, 1fr) 44px; padding-inline: max(8px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-right)); }
.complete-booking-layout #shine-booking-root .sb-draft-notice { font-size: 14px !important; line-height: 1.45; }
.complete-booking-layout #shine-booking-root .sb-calendar-day { min-height: 44px !important; }

@media (max-width: 480px) {
  .complete-booking-layout #shine-booking-root .sb-current { padding: 10px; gap: 6px; }
  .complete-booking-layout #shine-booking-root .sb-current > span { display: none; }
  .complete-booking-layout #shine-booking-root .sb-current > span + strong { white-space: nowrap; }
}
.complete-booking-layout #shine-booking-root .sb-summary span { color: #59616c; }


/* 1.0.1: plan choices have natural page height. No nested scroll region can
   conceal a selection button; only the longer Details dialog scrolls. */
.complete-booking-layout:has(.sb-shell.cbl-plans-ready) {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  align-items: start;
}
.complete-booking-layout:has(.sb-shell.cbl-plans-ready) #shine-booking-root {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  flex: 0 1 auto;
}
.complete-booking-layout #shine-booking-root .sb-shell.cbl-plans-ready {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}
.complete-booking-layout #shine-booking-root .sb-shell.cbl-plans-ready > .sb-body {
  flex: none;
  overflow: visible !important;
  padding: 20px clamp(16px, 3vw, 32px) !important;
}
.complete-booking-layout #shine-booking-root .cbl-plans-ready .sb-plan-intro {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.5;
}
.complete-booking-layout #shine-booking-root .cbl-plans-ready .sb-service-plan-grid {
  gap: 16px;
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.complete-booking-layout #shine-booking-root .sb-service-plan-card.cbl-plan-card-ready {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto 1fr auto;
  gap: 16px 12px;
  padding: 20px;
  border: 1px solid #d9deea;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}
.complete-booking-layout #shine-booking-root .cbl-plan-card-ready > :is(.sb-plan-card-heading, .sb-plan-frequency-picker, .sb-service-plan-price) {
  grid-column: 1 / -1;
}
.complete-booking-layout #shine-booking-root .cbl-plan-card-ready .sb-plan-title-row h3 {
  color: #191f99;
  font-size: 21px;
  line-height: 1.25;
}
.complete-booking-layout #shine-booking-root .cbl-plan-card-ready .sb-plan-badge {
  color: #176f30;
  background: #eaf7ed;
  border: 0;
  box-shadow: none;
  font-size: 11px;
}
.complete-booking-layout #shine-booking-root .cbl-plan-card-ready .sb-plan-includes {
  min-height: 46px;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3e4657;
  font-size: 15px;
  line-height: 1.5;
}
.complete-booking-layout #shine-booking-root .cbl-plan-card-ready .sb-plan-includes > :is(strong, br) { display: none; }
.complete-booking-layout #shine-booking-root .cbl-plan-card-ready .sb-plan-frequency-picker {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.complete-booking-layout #shine-booking-root .cbl-plan-card-ready .sb-plan-frequency {
  border: 1px solid #d9deea;
  border-radius: 8px;
  min-height: 54px;
  padding: 7px 3px;
  font-size: 14px;
  box-shadow: none;
}
.complete-booking-layout #shine-booking-root .cbl-plan-card-ready .sb-plan-frequency.active {
  border-color: #191f99;
  background: #191f99;
  color: #fff;
  box-shadow: none;
}
.complete-booking-layout #shine-booking-root .cbl-plan-card-ready .sb-plan-frequency-price { margin: 0; font-size: 13px; }
.complete-booking-layout #shine-booking-root .cbl-plan-card-ready .sb-service-plan-price { align-self: start; }
.complete-booking-layout #shine-booking-root .cbl-plan-card-ready .sb-service-plan-price > strong {
  display: block;
  color: #111827;
  font-size: 21px;
  line-height: 1.3;
}
.complete-booking-layout #shine-booking-root .cbl-plan-card-ready .sb-service-plan-price > span {
  display: block;
  margin-top: 6px;
  color: #546074;
  font-size: 14px !important;
  line-height: 1.5;
}
.complete-booking-layout #shine-booking-root .cbl-plan-card-ready .sb-plan-select {
  grid-column: 1;
  grid-row: 4;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  border: 1px solid #191f99;
  border-radius: 8px;
  color: #191f99;
  background: #fff;
  box-shadow: none;
}
.complete-booking-layout #shine-booking-root .cbl-plan-card-ready.is-selected {
  border-color: #191f99;
  box-shadow: 0 0 0 1px #191f99;
}
.complete-booking-layout #shine-booking-root .cbl-plan-card-ready.is-selected .sb-plan-select {
  background: #191f99;
  color: #fff;
}
@media (max-width: 480px) {
  .complete-booking-layout #shine-booking-root .sb-service-plan-card.cbl-plan-card-ready { padding: 16px; gap: 14px 10px; }
}
/* A click/tap Details pop-up keeps the full explanation keyboard accessible. */
.complete-booking-layout #shine-booking-root .cbl-plan-details-toggle {
  grid-column: 2;
  grid-row: 4;
  align-self: center;
  min-width: 60px;
  min-height: 44px;
  margin: 0;
  padding: 10px 4px;
  border: 0;
  border-radius: 6px;
  color: #191f99;
  background: transparent;
  box-shadow: none;
  font: 700 14px/1.4 "Complete DM Sans", Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cbl-plan-details-dialog {
  box-sizing: border-box;
  width: min(480px, calc(100vw - 32px));
  max-height: min(640px, calc(100svh - 48px));
  max-height: min(640px, calc(100dvh - 48px));
  margin: auto;
  padding: 28px;
  overflow-y: auto;
  border: 1px solid #d9deea;
  border-radius: 18px;
  background: #fff;
  color: #283346;
  box-shadow: 0 20px 80px #11182733;
  font: 400 16px/1.6 "Complete DM Sans", Arial, sans-serif;
}
.cbl-plan-details-dialog::backdrop { background: #10153580; }
.cbl-plan-details-dialog .cbl-plan-details-title {
  margin: 0 0 16px;
  color: #191f99;
  font: 700 24px/1.25 "Complete DM Sans", Arial, sans-serif;
}
.cbl-plan-details-dialog .cbl-plan-details-copy { margin: 0 0 24px; white-space: pre-line; }
.cbl-plan-details-dialog .cbl-plan-details-close {
  display: block;
  min-height: 44px;
  min-width: 88px;
  margin: 0 0 0 auto;
  padding: 10px 20px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #191f99;
  font: 700 15px/1.4 "Complete DM Sans", Arial, sans-serif;
  cursor: pointer;
}
.complete-booking-layout #shine-booking-root .cbl-plan-details-toggle:focus-visible,
.cbl-plan-details-dialog .cbl-plan-details-close:focus-visible {
  outline: 3px solid #5575d9;
  outline-offset: 3px;
}
@media (max-width: 480px) {
  .cbl-plan-details-dialog { padding: 24px; }
}
.cbl-plan-details-dialog .cbl-plan-details-dialog-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.cbl-plan-details-dialog .cbl-plan-details-title { margin: 7px 0 0; }
.cbl-plan-details-dialog .cbl-plan-details-close {
  flex: none;
  min-width: 64px;
  padding: 10px;
  color: #191f99;
  background: #f1f3fa;
}
.cbl-plan-details-dialog .cbl-plan-details-copy { margin: 0; }
/* Keep this decision step focused on the two choices. Saved-progress copy is
   repeated on later steps; removing it here makes room for the card actions. */
.complete-booking-layout #shine-booking-root .cbl-plans-ready > .sb-draft-notice { display: none; }
@media (max-width: 600px) {
  .complete-booking-layout #shine-booking-root .sb-shell.cbl-plans-ready > .sb-body { padding: 14px !important; }
  .complete-booking-layout #shine-booking-root .cbl-plans-ready .sb-plan-intro { margin-bottom: 14px; }
  .complete-booking-layout #shine-booking-root .sb-service-plan-card.cbl-plan-card-ready { padding: 14px; gap: 10px; }
  .complete-booking-layout #shine-booking-root .cbl-plan-card-ready .sb-plan-title-row h3 { font-size: 20px; }
  .complete-booking-layout #shine-booking-root .cbl-plan-card-ready .sb-plan-includes { min-height: 0; margin-top: 6px; font-size: 14px; line-height: 1.4; }
  .complete-booking-layout #shine-booking-root .cbl-plan-card-ready .sb-plan-frequency { min-height: 48px; }
  .complete-booking-layout #shine-booking-root .cbl-plan-card-ready .sb-service-plan-price > strong { font-size: 20px; }
  .complete-booking-layout #shine-booking-root .cbl-plan-card-ready .sb-service-plan-price > span { margin-top: 4px; line-height: 1.4; }
}
.complete-booking-layout #shine-booking-root .cbl-plan-card-ready .sb-plan-card-heading { display: block; }
.complete-booking-layout #shine-booking-root .cbl-plan-card-ready .sb-plan-select { height: auto; }
.complete-booking-layout #shine-booking-root .cbl-plan-card-ready .sb-service-plan-price { display: block; }
@media (max-width: 600px) {
  .complete-booking-layout #shine-booking-root .cbl-plan-card-ready .sb-plan-includes { font-size: 14px !important; }
}

.complete-booking-layout #shine-booking-root .cbl-plan-card-ready > .sb-plan-disclosure[hidden] { display: none !important; }
.cbl-plan-details-dialog .cbl-plan-full-terms {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid #e2e6ef;
  color: #546074;
  font-size: 14px;
  line-height: 1.5;
}
.cbl-plan-details-dialog .cbl-plan-full-terms > summary {
  display: list-item;
  min-height: 44px;
  box-sizing: border-box;
  padding-block: 12px;
  color: #191f99;
  font-weight: 700;
  cursor: pointer;
}
.cbl-plan-details-dialog .cbl-plan-full-terms > summary:focus-visible {
  outline: 3px solid #5575d9;
  outline-offset: 3px;
  border-radius: 4px;
}
.cbl-plan-details-dialog .cbl-plan-full-terms > p { margin: 8px 0 0; }

/* Muted choices keep Details readable; only unavailable selection controls fade. */
.complete-booking-layout #shine-booking-root .sb-service-plan-card.cbl-plan-card-ready.is-muted { opacity: 1; filter: none; background: #f8f9fc; }
.complete-booking-layout #shine-booking-root .cbl-plan-card-ready.is-muted :is(.sb-plan-frequency, .sb-plan-select):disabled { opacity: .55; }

/* 0.15.23: frequency first, with a separate opt-in upgrade. Native controls
   retain keyboard/assistive-technology behavior; no paid choice starts selected. */
.complete-booking-layout #shine-booking-root .sb-frequency-membership {
  color: #111; font-family: "Complete DM Sans", "DM Sans", Arial, sans-serif;
  font-size: 18px; line-height: 1.5; min-width: 0; max-width: 1100px; margin-inline: auto;
}
.complete-booking-layout #shine-booking-root .sb-frequency-membership h2 {
  font-family: inherit; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.04em;
  line-height: 1.15; margin: 0 0 14px; text-align: left;
}
.complete-booking-layout #shine-booking-root .sb-membership-eyebrow {
  color: #191f99; font-weight: 700; font-size: 16px !important; margin: 0 0 10px !important;
}
.complete-booking-layout #shine-booking-root .sb-frequency-membership .sb-plan-intro {
  text-align: left; max-width: 65ch; margin: 0 0 20px; color: #50545d; font-size: 18px !important;
}
.complete-booking-layout #shine-booking-root .sb-membership-benefits {
  display: flex; flex-wrap: wrap; gap: 12px 24px; list-style: none; padding: 0; margin: 0 0 28px; font-size: 16px;
}
.complete-booking-layout #shine-booking-root .sb-membership-benefits li { min-width: 0; }
.complete-booking-layout #shine-booking-root .sb-membership-benefits li::before {
  content: "✓"; color: #191f99; margin-right: 8px; font-weight: 700;
}
.complete-booking-layout #shine-booking-root :is(.sb-membership-schedules,.sb-membership-upgrade-section) {
  padding: 0; margin: 0; border: 0; min-width: 0;
}
.complete-booking-layout #shine-booking-root .sb-frequency-membership legend {
  font: 700 18px/1.4 "Complete DM Sans", "DM Sans", Arial, sans-serif; margin: 0 0 16px;
}
.complete-booking-layout #shine-booking-root .sb-frequency-membership legend > span {
  display: inline-grid; place-items: center; margin-right: 8px; width: 30px; height: 30px;
  color: #191f99; border: 1px solid #daddf0; border-radius: 50%; font-size: 14px;
}
.complete-booking-layout #shine-booking-root .sb-membership-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,210px),1fr)); gap: 14px; min-width: 0;
}
.complete-booking-layout #shine-booking-root label.sb-membership-card {
  display: flex !important; flex-direction: column; align-items: flex-start; gap: 8px;
  position: relative; min-width: 0; padding: 20px; margin: 0; cursor: pointer;
  border: 2px solid #dce0e7; border-radius: 16px; background: #fff; color: #111;
  font-size: 16px !important; font-weight: 400; text-align: left; overflow-wrap: anywhere;
}
.complete-booking-layout #shine-booking-root label.sb-membership-card:hover { border-color: #191f99; }
.complete-booking-layout #shine-booking-root label.sb-membership-card.is-selected {
  border-color: #191f99; background: #f5f5ff; box-shadow: 0 0 0 1px #191f99;
}
.complete-booking-layout #shine-booking-root .sb-membership-card.is-unavailable { opacity: .6; cursor: default; }
.complete-booking-layout #shine-booking-root .sb-membership-card input[type="radio"] {
  position: absolute; top: 18px; right: 16px; width: 22px !important; height: 22px !important;
  min-height: 0 !important; margin: 0; accent-color: #191f99; cursor: inherit;
}
.complete-booking-layout #shine-booking-root .sb-membership-card:focus-within {
  outline: 3px solid #191f99; outline-offset: 4px;
}
.complete-booking-layout #shine-booking-root .sb-membership-tag {
  padding-right: 25px; color: #191f99; font-size: 16px; font-weight: 700; min-height: 24px;
}
.complete-booking-layout #shine-booking-root .sb-membership-name { font-size: 22px; font-weight: 700; }
.complete-booking-layout #shine-booking-root .sb-membership-price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; margin-top: 6px; font-size: 16px;
}
.complete-booking-layout #shine-booking-root .sb-membership-price strong {
  font: 700 clamp(26px,3vw,38px)/1.15 "Complete DM Sans", "DM Sans", Arial, sans-serif; letter-spacing: -.04em;
}
.complete-booking-layout #shine-booking-root .sb-membership-unit,
.complete-booking-layout #shine-booking-root .sb-membership-fit { color: #50545d; font-size: 16px; }
.complete-booking-layout #shine-booking-root .sb-membership-visits {
  padding-top: 14px; margin-top: 4px; border-top: 1px solid #dce0e7; width: 100%;
}
.complete-booking-layout #shine-booking-root .sb-membership-selection {
  margin-top: auto; padding-top: 12px; font-weight: 700; color: #191f99;
}
.complete-booking-layout #shine-booking-root .sb-membership-note {
  font-size: 16px !important; color: #50545d; text-align: left; margin: 14px 0 28px !important;
}
.complete-booking-layout #shine-booking-root label.sb-membership-upgrade {
  display: grid !important; grid-template-columns: 24px minmax(0,1fr); align-items: center;
  gap: 14px; padding: 20px; margin: 0; min-height: 72px; border: 2px solid #dce0e7;
  border-radius: 14px; font-size: 16px !important; font-weight: 400; cursor: pointer;
}
.complete-booking-layout #shine-booking-root .sb-membership-upgrade input[type="checkbox"] {
  width: 24px !important; height: 24px !important; min-height: 0 !important; margin: 0; accent-color: #191f99;
}
.complete-booking-layout #shine-booking-root .sb-membership-upgrade:has(input:checked) { border-color: #191f99; background: #f5f5ff; }
.complete-booking-layout #shine-booking-root .sb-membership-upgrade:focus-within { outline: 3px solid #191f99; outline-offset: 3px; }
.complete-booking-layout #shine-booking-root .sb-membership-upgrade-heading {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 5px; font-size: 18px;
}
.complete-booking-layout #shine-booking-root .sb-membership-upgrade-heading strong:last-child { color: #191f99; }
.complete-booking-layout #shine-booking-root .sb-membership-terms { margin-top: 16px; font-size: 16px; }
.complete-booking-layout #shine-booking-root .sb-membership-terms summary {
  padding-block: 12px; min-height: 48px; cursor: pointer; color: #191f99; font-weight: 700;
}
.complete-booking-layout #shine-booking-root .sb-membership-terms p {
  font-size: 16px !important; line-height: 1.5 !important; text-align: left !important;
}
.complete-booking-layout #shine-booking-root .sb-membership-notice {
  padding: 16px; border: 1px solid #191f99; border-radius: 12px; text-align: left;
}
.complete-booking-layout #shine-booking-root .sb-membership-remove { min-height: 48px; margin-top: 12px; }
.complete-booking-layout #shine-booking-root .sb-primary { background: #191f99; color: #fff; min-height: 56px; }
.complete-booking-layout #shine-booking-root :is(.sb-secondary,.sb-header-back,.sb-resume-note button,.sb-link-button) { min-height: 48px; }
@media (max-width: 720px) {
  .complete-booking-layout #shine-booking-root .sb-membership-grid { grid-template-columns: 1fr; gap: 12px; }
  .complete-booking-layout #shine-booking-root label.sb-membership-card {
    display: grid !important; grid-template-columns: minmax(0,1fr) auto; gap: 5px 10px; padding: 18px;
  }
  .complete-booking-layout #shine-booking-root .sb-membership-tag { grid-column: 1 / -1; padding-right: 26px; }
  .complete-booking-layout #shine-booking-root .sb-membership-name { grid-column: 1; font-size: 20px; }
  .complete-booking-layout #shine-booking-root .sb-membership-price { grid-column: 2; grid-row: 2; justify-content: end; margin: 0; }
  .complete-booking-layout #shine-booking-root .sb-membership-price strong { font-size: 28px; }
  .complete-booking-layout #shine-booking-root .sb-membership-price > span { font-size: 16px; }
  .complete-booking-layout #shine-booking-root .sb-membership-unit { grid-column: 2; grid-row: 3; text-align: right; }
  .complete-booking-layout #shine-booking-root .sb-membership-visits { grid-column: 1; grid-row: 3; border: 0; padding: 0; margin: 0; }
  .complete-booking-layout #shine-booking-root .sb-membership-fit { grid-column: 1 / -1; padding-top: 4px; }
  .complete-booking-layout #shine-booking-root .sb-membership-selection { grid-column: 1 / -1; padding-top: 4px; }
}
@media (max-width: 360px) {
  .complete-booking-layout #shine-booking-root label.sb-membership-card { grid-template-columns: minmax(0,1fr); }
  .complete-booking-layout #shine-booking-root .sb-membership-card :is(.sb-membership-price,.sb-membership-unit,.sb-membership-visits) {
    grid-column: 1; grid-row: auto; text-align: left; justify-content: start;
  }
}

/* Plan selection uses the page's natural scroll. Keep every card, upgrade,
   billing disclosure and action reachable without a nested clipped form. */
.complete-booking-layout:has(.sb-membership-step) {
  height: auto !important; max-height: none !important; overflow: visible !important; align-items: start;
}
.complete-booking-layout:has(.sb-membership-step) #shine-booking-root {
  height: auto !important; min-height: 0 !important; max-height: none !important;
  overflow: visible !important; flex: 0 1 auto;
}
.complete-booking-layout #shine-booking-root .sb-shell.sb-membership-step {
  height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important;
}
.complete-booking-layout #shine-booking-root .sb-shell.sb-membership-step > .sb-body {
  height: auto !important; min-height: 0 !important; flex: none;
  overflow: visible !important; padding: 24px clamp(16px,3vw,32px) !important;
}
.complete-booking-layout #shine-booking-root .sb-shell.sb-membership-step > .sb-draft-notice { display: none; }
.complete-booking-layout #shine-booking-root .sb-shell.sb-membership-step > .sb-nav .sb-primary { min-height: 56px; }
.complete-booking-layout #shine-booking-root .sb-current.sb-membership-current {
  display: grid; gap: 4px; text-align: left;
}
.complete-booking-layout #shine-booking-root .sb-membership-current small {
  font-size: 16px !important; font-weight: 400; line-height: 1.4; white-space: normal;
}
.complete-booking-layout #shine-booking-root .sb-other-memberships {
  display: grid; gap: 16px; margin-top: 24px; font-size: 16px;
}
.complete-booking-layout #shine-booking-root .sb-other-memberships :is(h3,h4) {
  font: 700 20px/1.4 "Complete DM Sans", "DM Sans", Arial, sans-serif; margin: 0;
}
.complete-booking-layout #shine-booking-root .sb-other-membership {
  padding: 20px; border: 2px solid #dce0e7; border-radius: 14px; overflow-wrap: anywhere;
}
.complete-booking-layout #shine-booking-root .sb-other-membership.is-selected { border-color: #191f99; background: #f5f5ff; }
.complete-booking-layout #shine-booking-root .sb-other-membership p { text-align: left; font-size: 16px !important; }
.complete-booking-layout #shine-booking-root .sb-other-membership summary { min-height: 48px; padding-block: 12px; cursor: pointer; }
.complete-booking-layout #shine-booking-root .sb-other-membership button { min-height: 48px; padding: 12px; margin-top: 12px; }

/* Reuse the existing checkout arrow control on the natural-height membership
   chooser. The footer stays in normal flow and can stick within its own shell;
   it never creates a clipped content viewport or covers the final content. */
.complete-booking-layout #shine-booking-root .sb-shell.sb-membership-step > .sb-nav {
  position: sticky !important; bottom: 0 !important; z-index: 7; background: #fff;
}
.complete-booking-layout #shine-booking-root .sb-shell.sb-membership-step > .sb-nav .sb-scroll-cue {
  display:block;flex:0 0 100%;min-height:48px;padding:.625rem .75rem;border:0;border-radius:4px;
  background:#F4F4F4;color:#191F99;font-size:1rem!important;font-weight:700;line-height:1.4;cursor:pointer;text-align:center;
}
.complete-booking-layout #shine-booking-root .sb-shell.sb-membership-step .sb-scroll-cue[hidden] { display: none !important; }
.complete-booking-layout #shine-booking-root .sb-shell.sb-membership-step .sb-scroll-cue:focus-visible { outline:3px solid #191F99;outline-offset:3px; }

/* Reset the old 56px phone summary height: both the plan name and exact
   first-month amount can wrap, and the footer must grow with that content. */
.complete-booking-layout #shine-booking-root .sb-shell.sb-membership-step > .sb-nav {
  height: auto !important; min-height: 0 !important; max-height: none !important;
  align-items: stretch; overflow: visible; gap: 12px;
}
.complete-booking-layout #shine-booking-root .sb-shell.sb-membership-step > .sb-nav .sb-membership-current {
  height: auto !important; min-height: 56px !important; max-height: none !important;
  min-width: 0; max-width: 100%; flex: 1 1 14rem; align-content: center;
  padding: 12px 14px; overflow: visible;
}
.complete-booking-layout #shine-booking-root .sb-shell.sb-membership-step > .sb-nav .sb-membership-current :is(small,strong) {
  height: auto; min-width: 0; max-width: 100%; white-space: normal !important;
  overflow-wrap: anywhere; line-height: 1.4; text-transform: none; letter-spacing: normal;
}
.complete-booking-layout #shine-booking-root .sb-shell.sb-membership-step > .sb-nav .sb-primary {
  height: auto !important; min-height: 56px !important; max-height: none !important;
  min-width: 0; flex: 1 1 12rem; padding: 14px 18px; white-space: normal; overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .complete-booking-layout #shine-booking-root .sb-shell.sb-membership-step > .sb-nav :is(.sb-membership-current,.sb-primary) {
    flex-basis: 100% !important; width: 100%;
  }
  .complete-booking-layout #shine-booking-root .sb-shell.sb-membership-step > .sb-nav [data-back] { display: none; }
}
.complete-booking-layout #shine-booking-root .sb-shell.sb-membership-step.sb-membership-footer-flow > .sb-nav {
  position: static !important; bottom: auto !important;
}
/* The same existing arrow remains useful above the content when a tall footer
   needs normal page flow. It is not replaced by another graphic or animation. */
.complete-booking-layout #shine-booking-root .sb-shell.sb-membership-step > .sb-body > .sb-scroll-cue {
  display:block;width:100%;min-height:48px;padding:.625rem .75rem;border:0;border-radius:4px;
  margin: 0 0 20px;
  background:#F4F4F4;color:#191F99;font-size:1rem!important;font-weight:700;line-height:1.4;cursor:pointer;text-align:center;
}

/* Keep the upgrade legend clear of the cards after moving the average-cost
   note into billing details. The note no longer needs its old section gap. */
.complete-booking-layout #shine-booking-root .sb-frequency-membership .sb-membership-upgrade-section {
  margin-top: 24px;
}
.complete-booking-layout #shine-booking-root .sb-membership-terms > .sb-membership-note {
  margin: 14px 0 0 !important;
}

/* Weekday preferences are notes for the office, independent of the booked slot. */
#shine-booking-root .sb-body .sb-preferred-subscription-days {
  min-width: 0; margin: 24px 0; padding: 18px; border: 1px solid #dbe0ee;
  border-radius: 4px; background: #f8f9fc;
}
#shine-booking-root .sb-body .sb-preferred-subscription-days legend {
  max-width: 100%; padding: 0 6px; color: #191f99; font-weight: 700;
}
#shine-booking-root .sb-body .sb-preferred-subscription-days p {
  margin: 0 0 12px; font-size: 14px; line-height: 1.5;
}
#shine-booking-root .sb-body .sb-preferred-subscription-days > div {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px;
}
#shine-booking-root .sb-body .sb-preferred-subscription-days label {
  display: flex; align-items: center; gap: 9px; min-height: 44px;
  margin: 0; padding: 8px 10px; border: 1px solid #dbe0ee;
  border-radius: 4px; background: #fff; cursor: pointer; font-size: 14px;
}
#shine-booking-root .sb-body .sb-preferred-subscription-days label:has(input:checked) {
  border-color: #191f99; background: #eef0ff; color: #191f99;
}
#shine-booking-root .sb-body .sb-preferred-subscription-days input {
  flex: 0 0 18px; width: 18px; height: 18px; min-height: 0;
  margin: 0; padding: 0; accent-color: #191f99;
}
#shine-booking-root .sb-body .sb-preferred-subscription-days:disabled label {
  cursor: default; opacity: .7;
}
