/*
 * BioLab Appointments - the booking side panel (owner 2026-10-19), in the website's own look: Poppins headings, Inter
 * text, navy ink, mint buttons with navy text, soft mint behind chosen things. Everything is scoped to .bl-booking so
 * the theme's and Elementor's own form styles cannot reach it.
 * The panel is a card: a dark teal top with the title and the steps, and a white sheet over it holding the form. What
 * moves - the panel, the steps, chips, ticks, highlights - is played by booking-form.js with Motion; this file keeps
 * only the hover and focus fades.
 */
.bl-booking {
  /* The website's colours and no others (2026-10-28): its Elementor kit - navy (secondary), sky blue (primary), soft
     mint (accent) - its buttons' mint, and its own form's field edge and greys. Mint marks what is chosen, sky blue
     what is hovered or focused and the small icons (as the site's icon lists); red and amber only for problems and
     fasting warnings. */
  --bl-ink: #020026;
  /* Work item 17623 (owner 2026-11-05): the dark surfaces - the top, the steps, the chosen group, the pick bar - in the
     patient portal's dark teal (its sign-in panel), not the navy; its teal for the glow. Text stays navy. */
  --bl-dark: #0a3d39;
  --bl-text: #020026; /* the site's form writes its labels and fields in navy */
  --bl-muted: #656565;
  --bl-mint: #00ddb3;
  --bl-brand-soft: #d1f4ee;
  /* Owner 2026-11-07: the lab's colours from Settings > Branding replace these (brand-colours.js): the main colour
     darkened for --bl-dark, the main colour itself for --bl-brand, the highlight colour for --bl-mint. These are the
     colours when none are saved. */
  --bl-brand: #0f6e56;
  --bl-mint-rgb: 0, 221, 179;
  --bl-shade-rgb: 6, 30, 28;
  --bl-sky: #28b3d6;
  --bl-line: #dbdbdb;
  --bl-field: #7a7a7a; /* the edge of an empty tick box or round mark */
  --bl-panel: #f6f6f6; /* the field grey, faint */
  --bl-error: #c0392b;
  --bl-focus: rgba(40, 179, 214, 0.35);
  /* The dark top's lines and quiet text. */
  --bl-on-ink: rgba(255, 255, 255, 0.62);
  --bl-on-ink-line: rgba(255, 255, 255, 0.16);
  /* The panel's side padding (wider in the page, narrower on a phone). */
  --bl-pad-x: 24px;

  position: fixed;
  inset: 0;
  z-index: 100000;
  color: var(--bl-text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.bl-booking[hidden],
.bl-booking [hidden] {
  display: none !important; /* the theme styles some [hidden] elements; hidden must mean gone */
}

.bl-booking *,
.bl-booking *::before,
.bl-booking *::after {
  box-sizing: border-box;
}

.bl-booking h2 {
  margin: 0;
  color: var(--bl-ink);
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.bl-booking p {
  margin: 0;
}

.bl-booking label {
  margin: 0;
  font-weight: 500;
}

.bl-booking a {
  color: var(--bl-ink);
  text-decoration: underline;
}

/* Icons (owner 2026-10-19): line drawings in the colour of the text around them. */
.bl-booking .bl-icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

/* The page behind the open panel stays still - and does not shift sideways: the scrollbar's room is kept
   (owner 2026-10-19: "when I open the sidebar the page moves"). */
html.bl-no-scroll {
  overflow: hidden;
  scrollbar-gutter: stable;
  padding-right: var(--bl-scrollbar-gap, 0px); /* set by the script only where the gutter is not kept */
}

/* ── The panel: a card that springs in from the right; full screen on a phone ── */
.bl-overlay {
  position: absolute;
  inset: 0;
  background: rgba(var(--bl-shade-rgb), 0.5); /* the main colour, darkest */
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.bl-drawer {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  width: min(580px, calc(100% - 24px));
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(2, 0, 38, 0.3);
}

.bl-drawer:focus {
  outline: none;
}

/* The dark teal top: a teal glow in its corner, the title, and (below, in the form) the steps. */
.bl-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px var(--bl-pad-x) 6px;
  background: radial-gradient(90% 150% at 100% 0%, rgba(var(--bl-mint-rgb), 0.22) 0%, rgba(var(--bl-mint-rgb), 0) 62%), var(--bl-dark);
  color: #fff;
}

/* With the code or the thank-you on screen (no steps), the dark top holds the sheet's rounded edge itself. */
.bl-drawer:has(> .bl-form[hidden]) .bl-drawer-head {
  padding-bottom: 34px;
}

.bl-eyebrow {
  color: var(--bl-mint);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bl-booking .bl-drawer-head h2 {
  margin-top: 4px;
  color: #fff;
  font-size: 1.5rem;
}

.bl-booking .bl-drawer-close {
  display: grid;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  padding: 0;
  place-items: center;
  border: 1px solid var(--bl-on-ink-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.bl-booking .bl-drawer-close .bl-icon {
  transition: transform 0.2s;
}

.bl-booking .bl-drawer-close:hover .bl-icon {
  transform: rotate(90deg);
}

.bl-form {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

/* The white sheet: its rounded top rests over the dark top. */
.bl-drawer-body,
section.bl-code,
section.bl-closed,
section.bl-done {
  position: relative;
  z-index: 1;
  margin-top: -16px;
  border-radius: 20px 20px 0 0;
  background: #fff;
}

.bl-drawer-body {
  flex: 1;
  min-height: 0;
  padding: 22px var(--bl-pad-x) 24px;
  overflow-x: hidden; /* never sideways (owner 2026-10-19) */
  overflow-y: auto;
  scrollbar-gutter: stable; /* its room is always kept, so nothing jumps when it appears */
  overscroll-behavior: contain;
}

/* Back and Next always in reach at the bottom of the panel. */
.bl-drawer-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px var(--bl-pad-x) 16px;
  background: #fff;
  box-shadow: 0 -10px 24px rgba(2, 0, 38, 0.06);
}

/* ── Progress, on the dark top: four steps joined by a line that fills in mint as they are done; done steps show a
   tick and can be clicked ── */
.bl-progress-wrap {
  padding: 14px var(--bl-pad-x) 30px;
  background: var(--bl-dark);
}

.bl-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.bl-progress li {
  position: relative;
  margin: 0;
  padding: 0;
}

/* The line from the step before; its mint fill grows from the left (Motion), or is simply full once that step is done. */
.bl-progress-line {
  position: absolute;
  top: 16px;
  right: calc(50% + 22px);
  left: calc(-50% + 22px);
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bl-on-ink-line);
}

.bl-progress-line > span {
  display: block;
  height: 100%;
  background: var(--bl-mint);
  box-shadow: 0 0 10px rgba(var(--bl-mint-rgb), 0.7);
  transform: scaleX(0);
  transform-origin: left;
}

.bl-progress .bl-done + li .bl-progress-line > span {
  transform: scaleX(1);
}

.bl-booking .bl-progress-step {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--bl-on-ink);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.bl-booking .bl-progress-step:disabled {
  cursor: default;
}

.bl-progress-num {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: var(--bl-dark);
  color: var(--bl-on-ink);
  font-size: 0.875rem;
  transition: background-color 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
}

.bl-progress .bl-current .bl-progress-step {
  color: #fff;
}

.bl-progress .bl-current .bl-progress-num {
  border-color: var(--bl-mint);
  background: var(--bl-mint);
  color: var(--bl-ink);
  box-shadow: 0 0 0 5px rgba(var(--bl-mint-rgb), 0.18), 0 0 22px rgba(var(--bl-mint-rgb), 0.45);
}

.bl-progress .bl-done .bl-progress-step {
  color: rgba(255, 255, 255, 0.9);
}

.bl-progress .bl-done .bl-progress-num {
  border-color: var(--bl-mint);
  background: var(--bl-dark); /* solid, so the line stays behind it */
  color: var(--bl-mint);
}

.bl-progress-num .bl-icon {
  font-size: 1rem;
}

.bl-progress-num .bl-done-icon-small,
.bl-progress .bl-done .bl-step-icon {
  display: none;
}

.bl-progress .bl-done .bl-done-icon-small {
  display: block;
  stroke-width: 3;
}

.bl-progress-step:focus-visible .bl-progress-num {
  outline: 3px solid rgba(255, 255, 255, 0.75);
  outline-offset: 2px;
}

/* ── A step ── */
.bl-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.bl-step-title {
  float: left;
  width: 100%;
  margin: 0 0 6px;
  padding: 0;
  color: var(--bl-ink);
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
}

.bl-step-title + * {
  clear: both;
}

.bl-booking .bl-step-title:focus {
  outline: none; /* takes the focus when its step opens (for screen readers); it is not a control */
}

.bl-hint {
  display: block;
  color: var(--bl-muted);
  font-size: 0.8125rem;
}

.bl-booking .bl-step > .bl-hint {
  margin-bottom: 14px;
}

.bl-booking .bl-field-label {
  margin: 20px 0 8px;
  color: var(--bl-ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.bl-req {
  color: var(--bl-error);
  font-weight: 700;
}

.bl-error {
  display: block;
  min-height: 1.25em;
  color: var(--bl-error);
  font-size: 0.8125rem;
}

.bl-error:empty {
  min-height: 0;
}

.bl-muted {
  color: var(--bl-muted);
  font-size: 0.9375rem;
}

.bl-booking .bl-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--bl-ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* ── Step 1: tests ── */
.bl-picker-tools {
  position: sticky;
  top: -22px;
  z-index: 1;
  margin: 0;
  padding: 10px 0 12px;
  background: #fff;
}

.bl-booking .bl-search-box {
  position: relative;
  display: block;
}

.bl-booking .bl-search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 1;
  color: var(--bl-muted);
  font-size: 1.125rem;
  pointer-events: none;
  transform: translateY(-50%);
  transition: color 0.15s;
}

.bl-booking .bl-search-box:focus-within .bl-search-icon {
  color: var(--bl-sky);
}

/* Fields sit on a soft grey and turn white with a mint edge while typed in. */
.bl-booking .bl-drawer .bl-search-box input[type='search'] {
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 14px 0 44px;
  border: 1.5px solid var(--bl-line);
  border-radius: 14px;
  background: #fff;
  color: var(--bl-ink);
  font: inherit;
  font-size: 1rem;
  box-shadow: none;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.bl-booking .bl-drawer .bl-search-box input[type='search']:hover {
  border-color: var(--bl-sky);
}

.bl-booking .bl-drawer .bl-search-box input[type='search']:focus {
  border-color: var(--bl-sky);
  outline: none;
  background: #fff;
  color: var(--bl-ink);
  box-shadow: 0 0 0 4px var(--bl-focus);
}

/* Elementor's site kit styles every input: these selectors outrank it. */
.bl-booking .bl-field input:not([type='checkbox']):not([type='radio']) {
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 14px;
  border: 1.5px solid var(--bl-line);
  border-radius: 14px;
  background: #fff;
  color: var(--bl-ink);
  font: inherit;
  font-size: 1rem;
  box-shadow: none;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.bl-booking .bl-field input:not([type='checkbox']):not([type='radio']):hover {
  border-color: var(--bl-sky);
}

/* Owner 2026-10-19: what is typed stays dark while typing - the Elementor kit turns a focused field's text grey. */
.bl-booking .bl-field input:not([type='checkbox']):not([type='radio']):focus {
  border-color: var(--bl-sky);
  outline: none;
  background: #fff;
  color: var(--bl-ink);
  box-shadow: 0 0 0 4px var(--bl-focus);
}

.bl-booking .bl-field input:not([type='checkbox']):not([type='radio'])[aria-invalid='true'],
.bl-booking .bl-drawer .bl-search-box input[type='search'][aria-invalid='true'] {
  border-color: var(--bl-error);
}

/* The categories: all in one row that scrolls left to right inside its own box (owner 2026-10-19), so the test
   list below keeps its room. Only this row scrolls sideways - never the panel. */
.bl-cats {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  max-width: 100%;
  margin: 10px 0 0;
  padding: 0 0 6px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  /* Owner 2026-11-06: no scroll bar under the row (Windows drew a grey one with arrows). It still scrolls by swipe,
     trackpad, mouse wheel and Tab; the side with more to show fades out (side-scroll.js). */
  scrollbar-width: none;
}

.bl-cats::-webkit-scrollbar {
  display: none;
}

/* Owner 2026-11-06: round arrows over the row's ends, shown only while there is more that way (side-scroll.js). */
.bl-row-frame {
  position: relative;
  min-width: 0;
  margin-top: 10px; /* the row's own space above, so the arrows line up with the chips */
}

.bl-row-frame > .bl-cats {
  margin-top: 0;
}

.bl-booking .bl-row-arrow {
  position: absolute;
  top: 2px; /* centred on the 35px chips */
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bl-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(2, 0, 38, 0.22);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.bl-booking .bl-row-arrow[hidden] {
  display: none;
}

.bl-booking .bl-row-arrow:hover {
  background: var(--bl-ink);
  transform: scale(1.06);
}

.bl-booking .bl-row-arrow:focus-visible {
  outline: 2px solid var(--bl-mint);
  outline-offset: 2px;
}

.bl-booking .bl-row-arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bl-row-arrow-left {
  left: 0;
}

.bl-row-arrow-right {
  right: 0;
}

.bl-cats.bl-more-right {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
}

.bl-cats.bl-more-left {
  -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(to left, #000 calc(100% - 48px), transparent);
}

.bl-cats.bl-more-left.bl-more-right {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}

.bl-booking .bl-cats button {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin: 0;
  padding: 7px 14px;
  border: 1px solid var(--bl-line);
  border-radius: 999px;
  background: #fff;
  color: var(--bl-ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.bl-booking .bl-cats button:hover {
  border-color: var(--bl-sky);
}

.bl-booking .bl-cats button[aria-pressed='true'] {
  border-color: var(--bl-ink);
  background: var(--bl-dark);
  color: #fff;
}

/* The dark teal pill behind the chosen category, sliding to the next one (booking-form.js). */
.bl-booking .bl-cats.bl-has-slider button[aria-pressed='true'] {
  border-color: transparent;
  background: transparent;
}

.bl-cats-pill {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 999px;
  background: var(--bl-dark);
  box-shadow: 0 4px 12px rgba(2, 0, 38, 0.18);
  pointer-events: none;
}

/* The chosen tests, as chips with ×. */
.bl-chosen-bar {
  margin: 4px 0 10px;
  padding: 14px 16px;
  border: 1px solid rgba(var(--bl-mint-rgb), 0.45);
  border-radius: 16px;
  background: var(--bl-brand-soft);
}

.bl-chips li.bl-leaving {
  pointer-events: none;
}

.bl-booking .bl-chosen-title {
  margin-bottom: 8px;
  color: var(--bl-ink);
  font-size: 0.875rem;
  font-weight: 700;
}

.bl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bl-chips li {
  margin: 0;
}

.bl-booking .bl-chip {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 12px;
  border: 1px solid rgba(var(--bl-mint-rgb), 0.6);
  border-radius: 999px;
  background: #fff;
  color: var(--bl-ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(2, 0, 38, 0.06);
  cursor: pointer;
}

.bl-chip-name {
  overflow: hidden;
  max-width: 260px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bl-chip-x {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--bl-brand-soft);
  font-size: 0.75rem;
  line-height: 1;
  transition: background-color 0.15s, color 0.15s;
}

.bl-chip-x .bl-icon {
  stroke-width: 3;
}

.bl-booking .bl-chip:hover .bl-chip-x {
  background: var(--bl-error);
  color: #fff;
}

/* Owner 2026-10-22: a day with nothing to choose (the fasting cut-off, or full) - a calm amber notice. */
.bl-booking .bl-day-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #f5d9a8;
  border-radius: 12px;
  background: #fff8ec;
  color: #6b4100;
  font-size: 0.875rem;
  line-height: 1.5;
}

.bl-booking .bl-day-notice .bl-icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

/* Next waiting for a time: clearly off, and the theme's hover colours never light it up. */
.bl-booking .bl-drawer .bl-next:disabled,
.bl-booking .bl-drawer .bl-next:disabled:hover,
.bl-booking .bl-next:disabled,
.bl-booking .bl-next:disabled:hover {
  border: 0;
  background-color: var(--bl-line);
  color: var(--bl-muted);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.bl-booking .bl-fasting {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff4e5;
  color: #6b4100;
  font-size: 0.8125rem;
}

/* Each test is a card of its own; a ticked one turns soft mint with a mint edge. */
.bl-test-list {
  display: grid;
  gap: 6px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.bl-test-list > li {
  margin: 0;
}

.bl-test-list > .bl-muted {
  padding: 24px 10px;
  text-align: center;
}

.bl-booking .bl-test-row label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1.5px solid var(--bl-line);
  border-radius: 14px;
  background: #fff;
  font-weight: 400;
  cursor: pointer;
}

.bl-booking .bl-test-row label:hover {
  border-color: var(--bl-sky);
  background: #fff;
}

.bl-booking .bl-test-row.bl-picked label {
  border-color: var(--bl-mint);
  background: var(--bl-brand-soft);
}

/* The tick box, drawn here so neither the browser nor the Elementor kit restyles it (it outranks the kit's inputs). */
.bl-booking .bl-drawer .bl-test-row input[type='checkbox'] {
  display: grid;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin: 1px 0 0;
  padding: 0;
  place-items: center;
  border: 2px solid var(--bl-field);
  border-radius: 7px;
  background: #fff center / 14px no-repeat;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.bl-booking .bl-drawer .bl-test-row input[type='checkbox']:focus {
  border-color: var(--bl-field);
  outline: none;
  background-color: #fff;
}

.bl-booking .bl-drawer .bl-test-row input[type='checkbox']:focus-visible {
  box-shadow: 0 0 0 4px var(--bl-focus);
}

.bl-booking .bl-drawer .bl-test-row input[type='checkbox']:checked {
  border-color: var(--bl-mint);
  background-color: var(--bl-mint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23020026' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.bl-test-row input:disabled,
.bl-test-row input:disabled + .bl-test-row-text {
  opacity: 0.45;
}

.bl-test-row-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.bl-test-name {
  color: var(--bl-ink);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.bl-test-row.bl-picked .bl-test-name {
  font-weight: 600;
}

.bl-test-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--bl-muted);
  font-size: 0.75rem;
}

.bl-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff4e5;
  color: #9a5b00;
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
}

/* A ticked test opens what to expect: the sample, fasting, when results are ready, what it includes. */
.bl-test-details {
  display: none;
  margin-top: 6px;
  padding: 8px 10px;
  overflow: hidden; /* while it opens and folds (booking-form.js) */
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--bl-text);
  font-size: 0.8125rem;
}

.bl-test-row.bl-picked .bl-test-details,
.bl-test-row.bl-folding .bl-test-details {
  display: grid;
  gap: 4px;
}

.bl-fact {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.bl-fact .bl-icon {
  margin-top: 1px;
  color: var(--bl-sky);
  font-size: 0.9375rem;
}

/* ── Step 2: a week of day cards, then the free times ── */
.bl-week-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 10px;
}

.bl-booking .bl-week-head .bl-field-label {
  margin: 0;
}

.bl-week-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bl-week-range {
  display: inline-block;
  min-width: 112px;
  color: var(--bl-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
}

.bl-booking .bl-week-nav button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--bl-line);
  border-radius: 50%;
  background: #fff;
  color: var(--bl-ink);
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
}

.bl-booking .bl-week-nav button:hover:not(:disabled) {
  border-color: var(--bl-sky);
  background: var(--bl-brand-soft);
}

.bl-booking .bl-week-nav button:disabled {
  opacity: 0.4;
  cursor: default;
}

.bl-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.bl-booking .bl-day,
.bl-booking .bl-time,
.bl-booking .bl-pay-option {
  position: relative;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

.bl-day input,
.bl-time input,
.bl-pay-option input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.bl-day span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 10px 2px 8px;
  border: 1.5px solid var(--bl-line);
  border-radius: 14px;
  background: #fff;
  color: var(--bl-ink);
  text-align: center;
}

.bl-day small {
  font-size: 0.6875rem;
  white-space: nowrap;
}

.bl-day strong {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 1.25rem;
  line-height: 1.2;
}

.bl-time span {
  display: inline-block;
  min-width: 92px;
  padding: 10px 12px;
  border: 1.5px solid var(--bl-line);
  border-radius: 12px;
  background: #fff;
  color: var(--bl-ink);
  font-weight: 500;
  text-align: center;
}

.bl-day:hover span,
.bl-time:hover span,
.bl-pay-option:hover span {
  border-color: var(--bl-sky);
}

.bl-day input:checked + span,
.bl-time input:checked + span {
  border-color: var(--bl-mint);
  background: var(--bl-mint);
  color: var(--bl-ink);
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(var(--bl-mint-rgb), 0.35);
}

.bl-day input:focus-visible + span,
.bl-time input:focus-visible + span,
.bl-pay-option input:focus-visible + span {
  box-shadow: 0 0 0 4px var(--bl-focus);
}

/* A choice still to be made: the cards of its group take a red edge. */
.bl-booking .bl-days[aria-invalid='true'] .bl-day span,
.bl-booking .bl-times[aria-invalid='true'] .bl-time span,
.bl-booking .bl-payment[aria-invalid='true'] .bl-pay-option span {
  border-color: var(--bl-error);
}

.bl-booking .bl-period {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 8px;
  color: var(--bl-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bl-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Step 3: details ── */
.bl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
  margin-top: 4px;
}

.bl-wide {
  grid-column: 1 / -1;
}

.bl-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.bl-booking .bl-field label {
  color: var(--bl-ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.bl-booking .bl-field .bl-field-label {
  margin: 6px 0 0;
}

.bl-payment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* Two cards: the icon in its tile on the left, the round mark on the right. */
.bl-pay-option span {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 2px;
  padding: 14px 46px 14px 64px;
  border: 1.5px solid var(--bl-line);
  border-radius: 16px;
  background: #fff;
}

/* The round mark of a radio button, drawn so the theme cannot restyle it. */
.bl-pay-option span::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 16px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--bl-field);
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

/* The icon's tile (placed without a transform: booking-form.js pops it when its card is chosen). */
.bl-booking .bl-pay-icon {
  position: absolute;
  top: calc(50% - 19px);
  left: 14px;
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 12px;
  background: var(--bl-brand-soft);
  color: var(--bl-ink);
  transition: background-color 0.2s, color 0.2s;
}

.bl-pay-option input:checked + span .bl-pay-icon {
  background: var(--bl-mint);
  color: var(--bl-ink);
}

.bl-pay-option strong {
  color: var(--bl-ink);
  font-weight: 600;
}

.bl-pay-option small {
  color: var(--bl-muted);
  font-size: 0.8125rem;
}

.bl-pay-option input:checked + span {
  border-color: var(--bl-mint);
  background: linear-gradient(180deg, #fff 0%, var(--bl-brand-soft) 140%);
  box-shadow: 0 8px 20px rgba(var(--bl-mint-rgb), 0.2);
}

.bl-pay-option input:checked + span::before {
  border-color: var(--bl-mint);
  background: var(--bl-mint);
  box-shadow: inset 0 0 0 4px #fff;
}

/* ── Step 4: what will be sent - a ticket, its parts torn along dashed lines - the agreement, the robot check ── */
/* Owner 2026-11-07 (approved design): the Confirm step as cards - the appointment in the lab's dark colour, the details,
   payment and priority side by side, the tests as chips; every Change filled. */
.bl-booking .bl-review {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 0;
}

.bl-booking .bl-review-when {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--bl-dark);
}

.bl-booking .bl-review-cal {
  display: flex;
  flex: none;
  flex-direction: column;
  width: 64px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  color: var(--bl-dark);
  text-align: center;
}

.bl-booking .bl-review-cal-day {
  padding: 3px 0;
  background: var(--bl-mint);
  font-size: 11px;
  font-weight: 600;
}

.bl-booking .bl-review-cal-num {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}

.bl-booking .bl-review-cal-month {
  padding-bottom: 4px;
  font-size: 11px;
}

.bl-booking .bl-review-when-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.bl-booking .bl-review-kicker {
  color: var(--bl-mint);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bl-booking .bl-review-time {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.bl-booking .bl-review-place {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #c8d6e5;
  font-size: 13px;
}

.bl-booking .bl-review-place .bl-icon {
  width: 14px;
  height: 14px;
}

.bl-booking .bl-review-card {
  padding: 12px;
  border: 1px solid #e3e7ed;
  border-radius: 14px;
  background: #fff;
}

.bl-booking .bl-review-who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bl-booking .bl-review-avatar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bl-brand-soft);
  color: var(--bl-dark);
  font-weight: 600;
}

.bl-booking .bl-review-who-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  color: #5f5e5a;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.bl-booking .bl-review-name {
  color: var(--bl-ink);
  font-size: 15px;
  font-weight: 600;
}

.bl-booking .bl-review-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bl-booking .bl-review-pay,
.bl-booking .bl-review-prio {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.bl-booking .bl-review-pay { background: #e6f1fb; color: #0c447c; }
.bl-booking .bl-review-prio { background: #faeeda; color: #633806; }

.bl-booking .bl-review-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bl-booking .bl-review-head .bl-icon {
  width: 16px;
  height: 16px;
}

.bl-booking .bl-review-value {
  margin: 4px 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.bl-booking .bl-review-small {
  color: #854f0b;
  font-size: 12px;
}

.bl-booking .bl-review-tests {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bl-booking .bl-review-tests-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.bl-booking .bl-review-tests-head .bl-review-head {
  flex: 1;
  color: #534ab7;
}

.bl-booking .bl-review-tests-head .bl-icon {
  width: 18px;
  height: 18px;
}

.bl-booking .bl-review-chip {
  padding: 9px 12px;
  border-radius: 10px;
  background: #eeedfe;
  color: #3c3489;
  font-size: 14px;
  font-weight: 600;
}

.bl-booking .bl-review-none {
  color: var(--bl-muted);
  font-size: 14px;
}

.bl-booking .bl-review-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed #d3d1c7;
  color: #5f5e5a;
  font-size: 13px;
}

.bl-booking .bl-review-total strong {
  color: var(--bl-ink);
  font-size: 16px;
  font-weight: 600;
}

.bl-booking .bl-review-change {
  flex: none;
  min-height: 0;
  margin: 0;
  padding: 6px 12px;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: filter 0.15s;
}

.bl-booking .bl-review-change:hover { filter: brightness(0.92); }
.bl-booking .bl-review-change:focus-visible { outline: 3px solid var(--bl-focus); outline-offset: 2px; }
.bl-booking .bl-review-change-mint { background: var(--bl-mint); color: var(--bl-dark); }
.bl-booking .bl-review-change-brand { background: var(--bl-brand); color: #fff; }
.bl-booking .bl-review-change-blue { background: #185fa5; color: #fff; }
.bl-booking .bl-review-change-purple { background: #534ab7; color: #fff; }
.bl-booking .bl-review-change-blue,
.bl-booking .bl-review-change-purple { padding: 5px 11px; }

.bl-booking .bl-review-note {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff4e5;
  color: #6b4100;
  font-size: 0.8125rem;
}

/* Sending the request is agreeing (owner 2026-10-19: no tick box) - in one box with the lock (owner 2026-11-07). */
.bl-booking .bl-agree-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bl-panel);
}

.bl-booking .bl-agree-box .bl-icon {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
  color: var(--bl-brand);
}

.bl-booking .bl-agree {
  margin: 0;
  color: #5f5e5a;
  font-size: 12px;
  line-height: 1.45;
}

.bl-booking .bl-agree a {
  color: var(--bl-ink);
}

.bl-booking .bl-alert {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fdecec;
  color: var(--bl-error);
  font-size: 0.875rem;
}

/* A field no person sees: a trap for robots that fill in every box. */
.bl-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Buttons ── */
.bl-booking .bl-next,
.bl-booking .bl-submit,
.bl-booking .bl-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.bl-booking .bl-next .bl-icon,
.bl-booking .bl-submit .bl-icon,
.bl-booking .bl-back .bl-icon {
  transition: transform 0.2s ease;
}

.bl-booking .bl-next:hover .bl-icon,
.bl-booking .bl-submit:hover .bl-icon {
  transform: translateX(3px);
}

.bl-booking .bl-back:hover .bl-icon {
  transform: translateX(-3px);
}

.bl-booking .bl-submit.bl-busy .bl-icon {
  animation: bl-send 0.9s ease-in-out infinite;
}

.bl-booking .bl-next,
.bl-booking .bl-submit,
.bl-booking .bl-done-close,
.bl-booking .bl-book-button {
  flex: 1;
  margin: 0;
  padding: 15px 22px;
  border: 0;
  border-radius: 16px;
  background: var(--bl-mint);
  color: var(--bl-ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(var(--bl-mint-rgb), 0.28);
  cursor: pointer;
  transition: background 0.15s;
}

/* Its words lift in when they change (booking-form.js). */
.bl-next-label {
  display: inline-block;
}

.bl-booking .bl-next:hover,
.bl-booking .bl-submit:hover,
.bl-booking .bl-done-close:hover {
  background: var(--bl-brand-soft);
}

.bl-booking .bl-submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

.bl-booking .bl-back,
.bl-booking .bl-done-again {
  margin: 0;
  padding: 14px 18px;
  border: 1.5px solid var(--bl-line);
  border-radius: 16px;
  background: #fff;
  color: var(--bl-ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.bl-booking .bl-back:hover,
.bl-booking .bl-done-again:hover {
  border-color: var(--bl-ink);
}

.bl-booking button:focus-visible {
  outline: 3px solid var(--bl-focus);
  outline-offset: 2px;
}

/* The shortcode's button, on a page (outside the panel). */
.bl-book-button {
  padding: 14px 26px;
  border: 0;
  border-radius: 20px;
  background: var(--bl-mint);
  color: #020026;
  font-weight: 700;
  cursor: pointer;
}

/* ── Sent: thank you, with the reference; the panel closes by itself ── */
section.bl-done {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 28px;
  text-align: center;
}

.bl-done-icon {
  position: relative;
  display: grid;
  width: 88px;
  height: 88px;
  margin-bottom: 8px;
  place-items: center;
  border-radius: 50%;
  background: var(--bl-mint);
  color: var(--bl-ink);
  font-size: 2.5rem;
  box-shadow: 0 0 0 12px var(--bl-brand-soft), 0 18px 40px rgba(var(--bl-mint-rgb), 0.35);
}

.bl-done-icon .bl-icon {
  stroke-width: 3;
}

/* The ring that ripples out of the tick (booking-form.js). */
.bl-done-ring {
  position: absolute;
  inset: -12px;
  border: 2px solid var(--bl-mint);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.bl-booking .bl-reference {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 8px;
  background: var(--bl-brand-soft);
  color: var(--bl-ink);
  font-family: 'Poppins', 'Inter', sans-serif;
  letter-spacing: 0.02em;
}

.bl-booking section.bl-done h2 {
  font-size: 1.375rem;
}

.bl-booking section.bl-done h2:focus {
  outline: none;
}

section.bl-done p {
  max-width: 380px;
  color: var(--bl-text);
}

.bl-booking .bl-done-close {
  flex: none;
  min-width: 200px;
}

.bl-done-timer {
  width: 200px;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bl-line);
}

.bl-done-timer span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--bl-mint);
  transform-origin: left;
  transform: scaleX(0);
}

.bl-done-timer.bl-running span {
  animation: bl-shrink var(--bl-close-after, 8s) linear forwards;
}

.bl-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Loading: placeholders the size of what is coming ── */
.bl-skeleton {
  display: block;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(219, 219, 219, 0.5) 25%, rgba(219, 219, 219, 0.2) 50%, rgba(219, 219, 219, 0.5) 75%);
  background-size: 200% 100%;
  animation: bl-shimmer 1.2s linear infinite;
}

.bl-skeleton-tests {
  height: 64px;
  border-radius: 14px;
  list-style: none;
}

.bl-skeleton-times {
  display: inline-block;
  width: 88px;
  height: 40px;
  margin: 0 8px 8px 0;
}

/* ── Motion (owner 2026-10-19): steps slide in from the side they come from, choices respond as they are made. The
   movement itself is booking-form.js's (Motion); here only the hover and focus fades. ── */
.bl-day span,
.bl-time span,
.bl-pay-option span,
.bl-booking .bl-test-row label {
  transition: border-color 0.15s, background-color 0.2s, color 0.15s, box-shadow 0.15s;
}

/* While the panel slides out, a click goes to the page. */
.bl-booking.bl-closing {
  pointer-events: none;
}

.bl-booking .bl-next,
.bl-booking .bl-submit,
.bl-booking .bl-back,
.bl-booking .bl-done-close,
.bl-booking .bl-done-again {
  transition: background-color 0.15s, border-color 0.15s, transform 0.12s, box-shadow 0.15s;
}

.bl-booking .bl-next:hover,
.bl-booking .bl-submit:hover {
  box-shadow: 0 10px 24px rgba(var(--bl-mint-rgb), 0.4);
}

.bl-booking .bl-next:active,
.bl-booking .bl-submit:active,
.bl-booking .bl-back:active {
  transform: scale(0.98);
}

@keyframes bl-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@keyframes bl-send {
  50% { transform: translate(3px, -3px); }
}

@keyframes bl-shrink {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* People who ask their device for less motion get none. */
@media (prefers-reduced-motion: reduce) {
  .bl-booking *,
  .bl-booking *::before,
  .bl-booking *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ── Hover and focus (owner 2026-10-19): the theme turns every button pink with white text on hover and focus
   (Hello Elementor: button:hover { background: #c36 }), the Elementor kit takes their border away
   (button:hover { border: 0 }) and links turn dark blue - each control here keeps its own colours and border. ── */
.bl-booking a:hover,
.bl-booking a:focus {
  color: var(--bl-ink);
  text-decoration-thickness: 2px;
}

.bl-booking .bl-drawer-close:hover {
  border: 1px solid #fff;
  background-color: #fff;
  color: var(--bl-ink);
}

.bl-booking .bl-drawer-close:focus:not(:hover) {
  border: 1px solid var(--bl-on-ink-line);
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.bl-booking .bl-progress-step:hover,
.bl-booking .bl-progress-step:focus {
  background: none;
  color: #fff;
}

.bl-booking .bl-progress-step:disabled:hover {
  color: var(--bl-on-ink);
}

.bl-booking .bl-link:hover,
.bl-booking .bl-link:focus {
  background: none;
  color: var(--bl-ink);
  text-decoration-thickness: 2px;
}

.bl-booking .bl-cats button:hover,
.bl-booking .bl-cats button:focus {
  border: 1px solid var(--bl-sky);
  background-color: var(--bl-brand-soft);
  color: var(--bl-ink);
}

.bl-booking .bl-cats button[aria-pressed='true']:hover,
.bl-booking .bl-cats button[aria-pressed='true']:focus {
  border: 1px solid var(--bl-ink);
  background-color: var(--bl-dark);
  color: #fff;
}

.bl-booking .bl-cats.bl-has-slider button[aria-pressed='true']:hover,
.bl-booking .bl-cats.bl-has-slider button[aria-pressed='true']:focus {
  border: 1px solid transparent;
  background-color: transparent;
  color: #fff;
}

.bl-booking .bl-chip:hover,
.bl-booking .bl-chip:focus {
  border: 1px solid var(--bl-error);
  background-color: #fff;
  color: var(--bl-ink);
}

.bl-booking .bl-week-nav button:hover:not(:disabled),
.bl-booking .bl-week-nav button:focus:not(:disabled) {
  border: 1px solid var(--bl-sky);
  background-color: var(--bl-brand-soft);
  color: var(--bl-ink);
}

.bl-booking .bl-week-nav button:disabled:hover {
  border: 1px solid var(--bl-line);
  background-color: #fff;
  color: var(--bl-ink);
}

.bl-booking .bl-next:hover,
.bl-booking .bl-submit:hover,
.bl-booking .bl-done-close:hover {
  background-color: var(--bl-brand-soft);
  color: var(--bl-ink);
}

.bl-booking .bl-next:focus:not(:hover),
.bl-booking .bl-submit:focus:not(:hover),
.bl-booking .bl-done-close:focus:not(:hover) {
  background-color: var(--bl-mint);
  color: var(--bl-ink);
}

.bl-booking .bl-back:hover,
.bl-booking .bl-back:focus,
.bl-booking .bl-done-again:hover,
.bl-booking .bl-done-again:focus {
  border: 1.5px solid var(--bl-ink);
  background-color: #fff;
  color: var(--bl-ink);
}

.bl-booking .bl-back:focus:not(:hover),
.bl-booking .bl-done-again:focus:not(:hover) {
  border-color: var(--bl-line);
}

/* The shortcode's button sits on a page, outside the panel. */
button.bl-book-button:hover,
button.bl-book-button:focus {
  background-color: var(--bl-brand-soft);
  color: #020026;
}

/* ── The booking page (owner 2026-10-19): the same form, in the page - no backdrop, no close button ── */
.bl-booking.bl-page {
  --bl-pad-x: 28px;

  position: static;
  inset: auto;
  z-index: auto;
  display: block;
  max-width: 760px;
  margin: 40px auto 56px;
  padding: 0 16px;
}

/* The theme caps the page width and pads it: the booking page centres its own card. */
body.bl-booking-page main.site-main,
body.bl-booking-page main.site-main .page-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.bl-page .bl-drawer {
  position: static;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--bl-line);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(2, 0, 38, 0.1);
}

.bl-booking .bl-page h1,
.bl-booking.bl-page .bl-drawer-head h1 {
  margin: 4px 0 0;
  color: #fff;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.bl-page .bl-drawer-head {
  padding-top: 26px;
}

/* In the page the form grows with its content; the test list scrolls in its own box instead. */
.bl-page .bl-drawer-body {
  overflow: visible;
}

.bl-page .bl-test-list {
  max-height: 420px;
  overflow-y: auto;
}

.bl-page .bl-picker-tools {
  position: static;
}

/* Back and Next stay in reach while the page scrolls. */
.bl-page .bl-drawer-foot {
  position: sticky;
  bottom: 0;
  z-index: 2;
  box-shadow: 0 -6px 16px rgba(2, 0, 38, 0.05);
}

/* ── The emailed code (owner 2026-10-19): the request reaches reception once it is confirmed ── */
section.bl-code {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 28px;
  text-align: center;
}

.bl-code-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 6px;
  place-items: center;
  border-radius: 50%;
  background: var(--bl-brand-soft);
  color: var(--bl-ink);
  font-size: 1.875rem;
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--bl-brand-soft) 45%, transparent);
}

.bl-booking section.bl-code h2 {
  font-size: 1.375rem;
}

.bl-booking section.bl-code h2:focus {
  outline: none;
}

.bl-booking .bl-code-text {
  max-width: 400px;
  color: var(--bl-text);
}

.bl-code-form {
  display: flex;
  width: min(340px, 100%);
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  text-align: left;
}

.bl-booking .bl-code-label {
  color: var(--bl-ink);
  font-size: 0.875rem;
  font-weight: 600;
}

/* One wide box for the six digits - easy to type, paste or fill from the phone's suggestion. (.bl-drawer: the
   Elementor kit styles every input - this outranks it.) */
.bl-booking .bl-drawer .bl-code-form input.bl-code-input {
  width: 100%;
  height: 60px;
  margin: 0;
  padding: 0 14px;
  border: 1.5px solid var(--bl-line);
  border-radius: 16px;
  background: #fff;
  color: var(--bl-ink);
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  text-align: center;
  box-shadow: none;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.bl-booking .bl-drawer .bl-code-form input.bl-code-input:focus {
  border-color: var(--bl-sky);
  outline: none;
  background: #fff;
  color: var(--bl-ink);
  box-shadow: 0 0 0 4px var(--bl-focus);
}

.bl-booking .bl-drawer .bl-code-form input.bl-code-input[aria-invalid='true'] {
  border-color: var(--bl-error);
}

.bl-booking .bl-code-confirm {
  flex: none;
  margin-top: 8px;
}

.bl-booking .bl-code-again {
  color: var(--bl-muted);
  font-size: 0.875rem;
}

.bl-booking .bl-code-resend:disabled {
  color: var(--bl-muted);
  text-decoration: none;
  cursor: default;
}

.bl-booking .bl-code-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

/* ── Phones: the panel fills the screen ── */
@media (max-width: 600px) {
  .bl-booking,
  .bl-booking.bl-page {
    --bl-pad-x: 16px;
  }

  .bl-drawer {
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .bl-booking.bl-page {
    margin: 16px auto 32px;
    padding: 0 10px;
  }

  .bl-drawer-head {
    padding-top: 14px;
  }

  .bl-booking .bl-drawer-head h2 {
    font-size: 1.3125rem;
  }

  .bl-progress-name {
    font-size: 0.6875rem;
  }

  .bl-days {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .bl-grid,
  .bl-payment {
    grid-template-columns: minmax(0, 1fr);
  }

  .bl-time span {
    min-width: 80px;
  }
}

/* ── Owner 2026-10-25 (approved design): prices, Regular / STAT, the place, day states, "Last place", the fasting limit ── */
.bl-booking .bl-prio {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--bl-panel);
}

.bl-booking .bl-prio-label {
  font-size: 13px;
  color: var(--bl-muted);
}

.bl-booking .bl-seg {
  position: relative;
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--bl-line);
  border-radius: 11px;
  background: #fff;
}

.bl-booking .bl-seg label {
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.bl-booking .bl-seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bl-booking .bl-seg label span {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--bl-text);
  white-space: nowrap;
  transition: color 0.2s;
}

/* Navy on mint, as the site's buttons. */
.bl-booking .bl-seg input:checked + span {
  background: var(--bl-mint);
  color: var(--bl-ink);
  font-weight: 600;
}

/* The mint thumb behind the chosen priority, sliding between them (booking-form.js). */
.bl-booking .bl-seg.bl-has-slider input:checked + span {
  background: transparent;
}

.bl-seg-thumb {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 8px;
  background: var(--bl-mint);
  box-shadow: 0 2px 8px rgba(var(--bl-mint-rgb), 0.4);
  pointer-events: none;
}

.bl-booking .bl-seg input:focus-visible + span {
  box-shadow: 0 0 0 3px var(--bl-focus);
}

.bl-booking .bl-prio-note {
  font-size: 12px;
  color: var(--bl-muted);
}

.bl-booking .bl-test-code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  padding: 1px 6px;
  border: 1px solid var(--bl-line);
  border-radius: 5px;
  background: var(--bl-panel);
  color: var(--bl-text);
}

.bl-booking .bl-test-price {
  margin-left: auto;
  padding-left: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bl-ink);
  white-space: nowrap;
  text-align: right;
}

.bl-booking .bl-test-price[data-note]:not([data-note=''])::after {
  content: attr(data-note);
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--bl-muted);
}

.bl-booking .bl-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--bl-line);
}

.bl-booking .bl-total-label {
  font-size: 12px;
  color: var(--bl-muted);
}

.bl-booking .bl-total-amount {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 20px;
  font-variant-numeric: tabular-nums; /* the digits keep their places while it counts */
  color: var(--bl-ink);
}

.bl-booking .bl-location-box {
  margin-bottom: 14px;
}

.bl-booking .bl-location {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1.5px solid var(--bl-line);
  border-radius: 14px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: var(--bl-text);
}

.bl-booking .bl-store-hours {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--bl-muted);
}

.bl-booking .bl-day-state {
  display: block;
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
}

.bl-booking .bl-day-last .bl-day-state {
  color: #b35c00;
}

.bl-booking .bl-day-off {
  opacity: 0.55;
}

.bl-booking .bl-day-off .bl-day-state {
  color: var(--bl-muted);
}

.bl-booking .bl-time small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
}

.bl-booking .bl-time-off {
  cursor: not-allowed;
}

.bl-booking .bl-time-off span {
  background: var(--bl-panel);
  border-style: dashed;
  color: var(--bl-muted);
}

.bl-booking .bl-fasting-limit {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff4e5;
  color: #6b4100;
  font-size: 13px;
}

/* What is chosen so far, as a navy ticket with a mint dot. */
.bl-booking .bl-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--bl-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 24px rgba(2, 0, 38, 0.18);
}

.bl-booking .bl-pick::before {
  content: '';
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--bl-mint);
  box-shadow: 0 0 0 4px rgba(var(--bl-mint-rgb), 0.22);
}

/* Owner 2026-11-07 (approved design): the date of birth is tapped - decade, year, month, day - each step its own
   colour, big tiles for older hands, the chosen parts as chips on top (tap one to change it). */
.bl-booking .bl-dob {
  padding: 14px;
  border: 1.5px solid var(--bl-line);
  border-radius: 14px;
  background: #fff;
}

.bl-booking .bl-dob:focus {
  outline: none;
}

.bl-booking .bl-dob[aria-invalid='true'] {
  border-color: var(--bl-error);
}

.bl-booking .bl-dob-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bl-booking .bl-dob-chip {
  min-height: 36px;
  margin: 0;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.bl-booking .bl-dob-chip.bl-dob-todo {
  background: var(--bl-panel);
  color: var(--bl-muted);
  font-weight: 500;
  cursor: default;
}

.bl-booking .bl-dob-chip.bl-dob-decade { background: var(--bl-brand-soft); color: var(--bl-dark); }
.bl-booking .bl-dob-chip.bl-dob-year { background: #dbeffa; color: #0c4a6e; }
.bl-booking .bl-dob-chip.bl-dob-month { background: #eeedfe; color: #3c3489; }
.bl-booking .bl-dob-chip.bl-dob-day { background: #fdecd3; color: #7c3a06; }
.bl-booking .bl-dob-chip.bl-dob-todo { background: var(--bl-panel); color: var(--bl-muted); }

.bl-booking .bl-dob-ask {
  margin: 12px 0 8px;
  color: var(--bl-ink);
  font-size: 16px;
  font-weight: 600;
}

.bl-booking .bl-dob-ask:empty {
  display: none;
}

.bl-booking .bl-dob-tiles {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.bl-booking .bl-dob-grid-decade { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bl-booking .bl-dob-grid-year { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bl-booking .bl-dob-grid-month { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bl-booking .bl-dob-grid-day { grid-template-columns: repeat(7, minmax(0, 1fr)); }

.bl-booking .bl-dob-tile {
  min-height: 52px;
  margin: 0;
  padding: 0 4px;
  border: none;
  border-radius: 12px;
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
}

.bl-booking .bl-dob-tile:hover { transform: translateY(-1px); filter: brightness(0.92); }
.bl-booking .bl-dob-tile:focus-visible,
.bl-booking .bl-dob-chip:focus-visible { outline: 3px solid var(--bl-focus); outline-offset: 2px; }
.bl-booking .bl-dob-tile.bl-dob-decade { background: var(--bl-brand); }
.bl-booking .bl-dob-tile.bl-dob-year { background: #1673a3; }
.bl-booking .bl-dob-tile.bl-dob-month { background: #534ab7; }
.bl-booking .bl-dob-tile.bl-dob-day { min-height: 46px; background: #b45309; font-size: 17px; }

.bl-booking .bl-dob-done {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bl-brand-soft);
  color: var(--bl-dark);
  font-size: 17px;
  font-weight: 600;
}

/* Owner 2026-11-07 (approved design): closed like the other fields until it is tapped - a calendar, "Choose your date
   of birth" and a chevron; once the day is picked it closes with the date, the age and Change. */
.bl-booking .bl-dob.bl-dob-closed {
  padding: 0;
  border: none;
  background: none;
}

.bl-booking .bl-dob.bl-dob-closed > :not(.bl-dob-field),
.bl-booking .bl-dob:not(.bl-dob-closed) > .bl-dob-field {
  display: none;
}

.bl-booking .bl-dob:not(.bl-dob-closed) {
  border-color: var(--bl-brand);
}

.bl-booking .bl-dob-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 14px;
  border: 1.5px solid var(--bl-line);
  border-radius: 14px;
  background: #fff;
  color: var(--bl-muted);
  font: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bl-booking .bl-dob-field:hover {
  border-color: var(--bl-sky);
  background: #fff;
  color: var(--bl-muted);
}

.bl-booking .bl-dob-field:focus-visible {
  border-color: var(--bl-sky);
  outline: none;
  box-shadow: 0 0 0 4px var(--bl-focus);
}

.bl-booking .bl-dob[aria-invalid='true'] .bl-dob-field {
  border-color: var(--bl-error);
}

.bl-booking .bl-dob-icon {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--bl-brand);
}

.bl-booking .bl-dob-value {
  flex: 1;
  min-width: 0;
}

.bl-booking .bl-dob-picked .bl-dob-value {
  color: var(--bl-ink);
  font-weight: 600;
}

.bl-booking .bl-dob-end {
  display: inline-flex;
  flex: none;
  align-items: center;
}

.bl-booking .bl-dob-chevron {
  width: 18px;
  height: 18px;
}

.bl-booking .bl-dob-change {
  color: var(--bl-brand);
  font-size: 0.875rem;
  font-weight: 600;
}

.bl-booking .bl-dob-field .bl-dob-change,
.bl-booking .bl-dob-picked .bl-dob-chevron {
  display: none;
}

.bl-booking .bl-dob-picked .bl-dob-change {
  display: inline;
}

@media (max-width: 420px) {
  .bl-booking .bl-dob-grid-year { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bl-booking .bl-dob-grid-month { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Owner 2026-11-15: online booking switched off in the lab's Settings - shown instead of the form.
   Owner 2026-11-20 (approved design option A): never a dead end - tap to call, email, WhatsApp, the opening hours with
   "Open now" and the tests guide, filling the panel. */
section.bl-closed {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  padding: 30px var(--bl-pad-x) 24px;
}

.bl-booking .bl-closed-hero {
  padding: 6px 4px 2px;
  text-align: center;
}

.bl-booking .bl-closed-badge {
  position: relative;
  display: grid;
  width: 84px;
  height: 84px;
  margin: 8px auto 18px;
  place-items: center;
  border-radius: 26px;
  background: linear-gradient(145deg, var(--bl-brand-soft), #eefbf8);
  color: var(--bl-brand);
}

.bl-booking .bl-closed-badge::after {
  position: absolute;
  inset: -8px;
  border: 2px dashed rgba(var(--bl-mint-rgb), 0.45);
  border-radius: 32px;
  content: "";
}

.bl-booking .bl-closed-badge .bl-icon {
  width: 38px;
  height: 38px;
  stroke-width: 1.8;
}

.bl-booking section.bl-closed h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.15;
}

.bl-booking .bl-closed-text {
  max-width: 340px;
  margin: 0 auto;
  color: var(--bl-muted);
}

.bl-booking .bl-closed-call {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--bl-mint);
  color: var(--bl-ink);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(var(--bl-mint-rgb), 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bl-booking .bl-closed-call:hover,
.bl-booking .bl-closed-call:focus-visible {
  color: var(--bl-ink);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(var(--bl-mint-rgb), 0.42);
}

.bl-booking .bl-closed-call-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
}

.bl-booking .bl-closed-call-text span {
  display: block;
  font-size: 13px;
  opacity: 0.8;
}

.bl-booking .bl-closed-call-text strong {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.bl-booking .bl-closed-go {
  margin-left: auto;
  flex: none;
}

.bl-booking .bl-closed-more {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bl-booking .bl-closed-more a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 10px;
  border: 1.5px solid var(--bl-line);
  border-radius: 14px;
  background: #fff;
  color: var(--bl-ink);
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.bl-booking .bl-closed-more a:hover,
.bl-booking .bl-closed-more a:focus-visible {
  border-color: var(--bl-sky);
  background: #f4fbfd;
  color: var(--bl-ink);
}

.bl-booking .bl-closed-more .bl-icon {
  color: var(--bl-brand);
}

.bl-booking .bl-closed-hours {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--bl-panel);
}

.bl-booking .bl-closed-hours-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.bl-booking .bl-closed-hours h3 {
  margin: 0;
  color: var(--bl-ink);
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.bl-booking .bl-closed-now {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  background: #dff7ef;
  color: var(--bl-brand);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.bl-booking .bl-closed-now::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #18b37e;
  box-shadow: 0 0 0 4px rgba(24, 179, 126, 0.18);
  content: "";
}

.bl-booking .bl-closed-now.bl-shut {
  background: #f3eef0;
  color: #7b4b55;
}

.bl-booking .bl-closed-now.bl-shut::before {
  background: #c9707f;
  box-shadow: none;
}

.bl-booking .bl-closed-hours dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.bl-booking .bl-closed-hours dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
}

.bl-booking .bl-closed-hours dt {
  color: var(--bl-muted);
}

.bl-booking .bl-closed-hours dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}

.bl-booking .bl-closed-hours .bl-today dt,
.bl-booking .bl-closed-hours .bl-today dd {
  color: var(--bl-ink);
  font-weight: 700;
}

.bl-booking .bl-closed-guide {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px dashed #bfd9d3;
  border-radius: 16px;
  color: var(--bl-ink);
  text-decoration: none;
  transition: background 0.15s ease;
}

.bl-booking .bl-closed-guide:hover,
.bl-booking .bl-closed-guide:focus-visible {
  background: #f3fbf9;
  color: var(--bl-ink);
}

.bl-booking .bl-closed-guide-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border-radius: 12px;
  background: var(--bl-brand-soft);
  color: var(--bl-brand);
}

.bl-booking .bl-closed-guide strong {
  display: block;
  font-size: 15px;
}

.bl-booking .bl-closed-guide strong + span {
  color: var(--bl-muted);
  font-size: 13px;
}

.bl-booking .bl-closed-guide .bl-closed-go {
  color: var(--bl-brand);
}
