/* Sothware Bookings — front-end. Photo category tiles, then the services in a category, then the
   appointment: a three-step stepper beside a summary card.
   Restyle by overriding the variables below in your theme, e.g. `.swb-booking { --swb-primary: #463c37; }`.
   The defaults use :where() (zero specificity) so a theme's values win even when this file loads later, as it
   does when the form is placed by a page builder and its styles are printed in the footer. */
:where(.swb-booking) {
	--swb-primary: #23343b; /* Buttons, selected days and times, price tags. */
	--swb-primary-hover: #17252b;
	--swb-primary-contrast: #ffffff;
	--swb-accent: #3d6f6a; /* The current step. */
	--swb-accent-ink: #2f5a56; /* Links and small accent text; keep at 4.5:1 on white. */
	--swb-band: #e8e3d8; /* Band under each category photo. */
	--swb-band-text: #1d2326;
	--swb-surface: #f6f4ef; /* Quiet fills: summary list, service card footers, back buttons. */
	--swb-highlight: #f4ecda; /* Amount due and the services note. */
	--swb-bg: #ffffff;
	--swb-text: #1d2326;
	--swb-muted: #5d6366;
	--swb-border: #d6d0c5;
	--swb-line: #e7e2d8;
	--swb-focus: var(--swb-accent);
	--swb-error: #a1342b;
	--swb-success: #2f6b4a;
	--swb-font: inherit;
	--swb-display: inherit; /* Headings, category names, amount due. */
	--swb-display-weight: 400;
	--swb-font-size: 16px;
	--swb-radius: 22px;
	--swb-radius-field: 12px;
	--swb-radius-button: 6px; /* Buttons. */
	--swb-ease: cubic-bezier(0.16, 1, 0.3, 1);
}
.swb-booking {
	container: swb / inline-size;
	width: 100%; /* Inline-size containment has no intrinsic width; without this a centring flex parent collapses the form. */
	/* Page builders (Elementor's flex containers) size the form from a pass where it is zero wide, so on phones every
	   auto-height block wraps word by word and the page gains thousands of pixels of blank space under the form. A
	   stand-in width for that pass stops it; the form still lays out at its real width. */
	contain-intrinsic-inline-size: 1200px;
	scroll-margin-top: var(--swb-scroll-offset, 96px); /* Room for sticky theme headers when a new view scrolls into place. */
	font-family: var(--swb-font);
	font-size: var(--swb-font-size);
	line-height: 1.5;
	color: var(--swb-text);
	box-sizing: border-box;
	max-width: 1200px;
	margin: 0 auto;
	text-align: left;
}
.swb-booking *, .swb-booking *::before, .swb-booking *::after { box-sizing: inherit; }
.swb-booking ::selection { background: color-mix(in srgb, var(--swb-accent) 24%, transparent); color: inherit; }

/* Themes restyle bare elements (uppercase labels, heading fonts, button padding, list bullets). Neutralise them at
   specificity (0,1,0) so the .swb-* rules below always win. */
.swb-booking :where(*) { color: inherit; font-family: inherit; font-size: inherit; font-weight: inherit; font-style: normal; line-height: inherit; letter-spacing: normal; text-transform: none; }
.swb-booking :where(strong, b) { font-weight: 600; }
.swb-booking :where(h2, h3, p, ol, li, dl, dt, dd, fieldset, legend) { margin: 0; padding: 0; border: 0; font-family: inherit; font-style: normal; }
.swb-booking :where(h2, h3) { font-size: inherit; font-weight: 500; line-height: 1.3; color: inherit; }
.swb-booking :where(ol) { list-style: none; }
.swb-booking :where(button) { margin: 0; padding: 0; min-width: 0; min-height: 0; width: auto; height: auto; font: inherit; line-height: 1.2; color: inherit; background: none; border: 0; border-radius: 0; box-shadow: none; white-space: normal; word-break: normal; text-decoration: none; text-align: inherit; cursor: pointer; }
.swb-booking :where(button:disabled) { cursor: default; }
/* Themes often colour button:hover/:focus (white text on a brand fill); keep ours unless a rule below sets one. */
.swb-booking button:hover, .swb-booking button:focus, .swb-booking button:active { color: inherit; }
.swb-booking :where(input, textarea, select) { margin: 0; font: inherit; box-shadow: none; }
.swb-booking :where(button, li)::before, .swb-booking :where(button, li)::after { content: none; display: none; }
.swb-booking :where(a) { color: inherit; text-decoration: none; box-shadow: none; }
.swb-booking :where(dl, dt, dd, span, p, label) { word-break: normal; overflow-wrap: break-word; }
.swb-booking :where(img) { display: block; max-width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; margin: 0; }
.swb-booking :where(svg) { display: block; flex: none; }
.swb-booking .swb-icon { fill: none; stroke: currentColor; }

.swb-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.swb-booking :focus-visible { outline: 2px solid var(--swb-focus); outline-offset: 3px; }
/* Headings only receive focus programmatically (to move screen readers to the new view); no ring needed. */
.swb-booking [data-swb-title]:focus, .swb-booking .swb-slots-date:focus, .swb-step-title:focus { outline: none; }
.swb-booking a.swb-nowrap, .swb-nowrap { white-space: nowrap; }
.swb-booking .swb-help a, .swb-booking .swb-tile.is-help a, .swb-booking .swb-consent a { color: var(--swb-accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* One authored moment: each view settles in from just below. */
.swb-stage { animation: swb-in 0.45s var(--swb-ease) both; }
@keyframes swb-in { from { opacity: 0.001; transform: translateY(8px); } }

/* ---------- Shared type ---------- */
.swb-booking .swb-title { font-family: var(--swb-display); font-weight: var(--swb-display-weight); font-size: clamp(28px, 4cqi, 40px); line-height: 1.12; letter-spacing: -0.01em; color: var(--swb-text); text-wrap: balance; }
.swb-booking .swb-lede { margin-top: 8px; color: var(--swb-muted); font-size: 15px; max-width: 62ch; }
.swb-section-head { margin-bottom: 26px; }
.swb-booking .swb-label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; }
.swb-req { color: var(--swb-error); }

/* Back links and secondary actions: plain text links */
.swb-booking .swb-pill { display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; color: var(--swb-accent-ink); font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color 0.2s; }
.swb-booking .swb-pill:hover { color: var(--swb-accent-ink); text-decoration-color: currentColor; }
.swb-pill .swb-icon { width: 16px; height: 16px; }

/* ---------- Category tiles: photo above, coloured band below ---------- */
.swb-tiles { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@container swb (min-width: 540px) { .swb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container swb (min-width: 900px) { .swb-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.swb-booking .swb-tile { position: relative; display: flex; flex-direction: column; height: 280px; overflow: hidden; border: 1px solid var(--swb-line); border-radius: var(--swb-radius); background: var(--swb-band); text-align: left; transition: transform 0.45s var(--swb-ease), box-shadow 0.45s var(--swb-ease); }
.swb-tile-img { flex: 1; min-height: 0; overflow: hidden; background: var(--swb-line); }
.swb-booking .swb-tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--swb-ease); }
.swb-tile-band { align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px 18px; background: var(--swb-band); color: var(--swb-band-text); }
.swb-tile.is-plain { justify-content: flex-end; }
.swb-tile-text { min-width: 0; }
.swb-booking .swb-tile-name { display: block; font-family: var(--swb-display); font-weight: var(--swb-display-weight); font-size: 24px; line-height: 1.15; color: var(--swb-band-text); }
.swb-tile-meta { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: color-mix(in srgb, var(--swb-band-text) 80%, var(--swb-band)); }
.swb-tile-go { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--swb-primary); color: var(--swb-primary-contrast); transition: transform 0.45s var(--swb-ease); }
.swb-booking button.swb-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -18px color-mix(in srgb, var(--swb-primary) 55%, transparent); }
.swb-booking button.swb-tile:hover .swb-tile-img img { transform: scale(1.05); }
.swb-booking button.swb-tile:hover .swb-tile-go { transform: translateX(3px); }
.swb-booking .swb-tile.is-help { justify-content: center; gap: 10px; height: auto; min-height: 200px; padding: 28px; background: var(--swb-surface); }
.swb-tile.is-help p:not(.swb-tile-name) { color: var(--swb-muted); font-size: 15px; }
/* No photo: the band is the whole tile, as tall as its text. */
.swb-booking .swb-tile.is-plain { height: auto; min-height: 120px; }
/* Phones: one column of short rows, photo on the left, so all the categories fit in a screen or two. */
@container swb (max-width: 539px) {
	.swb-tiles { gap: 12px; }
	.swb-booking .swb-tile { flex-direction: row; height: auto; min-height: 112px; }
	.swb-booking .swb-tile.is-plain { min-height: 0; }
	.swb-tile-img { position: relative; align-self: stretch; flex: none; width: 34%; max-width: 140px; } /* Safari does not stretch the flex children of a button. */
	.swb-booking .swb-tile-img img { position: absolute; inset: 0; }
	.swb-tile-band { flex: 1; min-width: 0; gap: 10px; padding: 14px 14px 14px 16px; }
	.swb-booking .swb-tile-name { font-size: 20px; }
	.swb-booking .swb-tile.is-help { flex-direction: column; min-height: 0; gap: 8px; padding: 20px; }
}
@container swb (max-width: 299px) {
	.swb-tile-img { width: 72px; }
	.swb-tile-band { gap: 8px; padding: 12px 12px 12px 14px; }
	.swb-booking .swb-tile-name { font-size: 18px; }
	.swb-tile-go { width: 32px; height: 32px; }
}

/* ---------- Services ---------- */
.swb-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.swb-section-head.is-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.swb-search { position: relative; flex: 0 1 320px; }
@container swb (max-width: 539px) { .swb-search { flex-basis: 100%; } }
.swb-booking .swb-search .swb-input { padding-right: 44px; }
.swb-search .swb-icon { position: absolute; right: 14px; top: 50%; margin-top: -9px; color: var(--swb-muted); pointer-events: none; }
.swb-services { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@container swb (min-width: 640px) { .swb-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.swb-booking .swb-svc { color: var(--swb-text); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--swb-line); border-radius: 18px; background: var(--swb-bg); text-align: left; transition: border-color 0.2s, box-shadow 0.35s var(--swb-ease); }
.swb-booking .swb-svc[hidden] { display: none; }
.swb-booking .swb-svc:hover { border-color: var(--swb-border); box-shadow: 0 14px 28px -20px color-mix(in srgb, var(--swb-primary) 60%, transparent); }
.swb-svc-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 20px 14px; }
.swb-svc-name { font-weight: 600; font-size: 16px; line-height: 1.35; }
.swb-svc-desc { display: block; margin-top: -6px; padding: 0 20px 14px; color: var(--swb-muted); font-size: 14px; line-height: 1.45; }
.swb-svc-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: auto; padding: 11px 20px 13px; background: var(--swb-surface); color: var(--swb-muted); font-size: 13.5px; }
.swb-price { display: inline-block; color: var(--swb-text); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.swb-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--swb-border); }
.swb-note { margin-top: 24px; padding: 16px 20px; border-radius: 16px; background: var(--swb-highlight); font-size: 14.5px; max-width: 75ch; white-space: pre-line; }
.swb-empty { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 26px 22px; border: 1px dashed var(--swb-border); border-radius: 18px; color: var(--swb-muted); }
.swb-empty[hidden] { display: none; }

/* ---------- Appointment ---------- */
.swb-appt-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.swb-appt { display: grid; gap: 30px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@container swb (min-width: 900px) { .swb-appt { grid-template-columns: minmax(0, 1fr) 340px; } }
.swb-main { container: swb-main / inline-size; min-width: 0; }

/* Stepper */
.swb-stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 4px 0 36px; }
.swb-step { position: relative; display: flex; justify-content: center; }
.swb-step::before { content: ""; position: absolute; top: 15px; right: calc(50% + 20px); left: calc(-50% + 20px); height: 2px; background: var(--swb-border); }
.swb-step:first-child::before { display: none; }
.swb-step.is-done::before, .swb-step.is-current::before { background: var(--swb-primary); }
.swb-booking .swb-step-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.swb-node { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--swb-border); background: var(--swb-bg); color: var(--swb-muted); font-size: 13px; font-weight: 600; transition: background 0.35s var(--swb-ease), border-color 0.35s var(--swb-ease); }
.swb-node .swb-icon { width: 16px; height: 16px; }
.swb-step.is-current .swb-node { border-color: var(--swb-accent); background: var(--swb-accent); color: #fff; }
.swb-step.is-done .swb-node { border-color: var(--swb-primary); background: var(--swb-primary); color: var(--swb-primary-contrast); }
.swb-booking button.swb-step-inner:hover .swb-step-name { text-decoration: underline; text-underline-offset: 3px; }
.swb-step-name { display: block; font-size: 14px; font-weight: 600; }
@container swb (max-width: 459px) { .swb-step-name { font-size: 13px; } }

/* Calendar and times */
.swb-staff { max-width: 340px; }
.swb-when { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@container swb-main (min-width: 620px) { .swb-when { grid-template-columns: minmax(270px, 320px) minmax(0, 1fr); } }
.swb-cal { padding: 18px; border: 1px solid var(--swb-line); border-radius: 20px; background: var(--swb-bg); max-width: 380px; }
.swb-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.swb-booking .swb-cal-title { font-family: var(--swb-display); font-weight: var(--swb-display-weight); font-size: 21px; }
.swb-booking .swb-cal-nav { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--swb-line); border-radius: 50%; background: var(--swb-bg); }
.swb-booking .swb-cal-nav:hover:not(:disabled) { border-color: var(--swb-border); }
.swb-booking .swb-cal-nav:disabled { opacity: 0.35; }
/* Day circles get explicit sizes rather than aspect-ratio: some iOS Safari versions let the rows of
   an aspect-ratio grid collapse, stacking the weeks on top of each other. 24px is the column gaps. */
.swb-cal-grid { container-type: inline-size; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.swb-cal-dow { height: 24px; overflow: hidden; line-height: 24px; text-align: center; white-space: nowrap; font-size: 11.5px; font-weight: 600; color: var(--swb-muted); }
@container swb-main (max-width: 379px) { .swb-cal-dow { font-size: 10.5px; } .swb-cal { padding: 14px 12px; } }
.swb-booking .swb-cal-day { width: 34px; height: 34px; max-width: 100%; width: min(44px, calc((100cqw - 24px) / 7)); height: min(44px, calc((100cqw - 24px) / 7)); justify-self: center; display: grid; place-items: center; border: 1px solid transparent; border-radius: 50%; color: color-mix(in srgb, var(--swb-text) 45%, var(--swb-bg)); font-size: 14px; font-variant-numeric: tabular-nums; }
.swb-booking .swb-cal-day.is-available { background: var(--swb-surface); color: var(--swb-text); font-weight: 600; cursor: pointer; transition: background 0.2s; }
.swb-booking .swb-cal-day.is-available:hover { background: var(--swb-highlight); }
.swb-booking .swb-cal-day[aria-pressed="true"] { background: var(--swb-primary); color: var(--swb-primary-contrast); }
.swb-cal-day.is-today { border-color: var(--swb-border); }
.swb-cal-grid[aria-busy="true"] { opacity: 0.6; }
.swb-cal-empty { margin-top: 10px; color: var(--swb-muted); font-size: 14px; }
.swb-cal-empty[hidden] { display: none; }
.swb-cal-key { display: flex; gap: 16px; margin-top: 12px; font-size: 12px; color: var(--swb-muted); }
.swb-cal-key i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; border-radius: 50%; border: 1px solid var(--swb-border); background: var(--swb-surface); }
.swb-cal-key i.is-sel { border-color: var(--swb-primary); background: var(--swb-primary); }
.swb-booking .swb-slots-date { display: block; margin-bottom: 14px; font-family: var(--swb-display); font-weight: var(--swb-display-weight); font-size: 23px; line-height: 1.2; }
.swb-slots { scroll-margin-top: var(--swb-scroll-offset, 96px); }
.swb-slot-group + .swb-slot-group { margin-top: 16px; }
.swb-slot-part { margin-bottom: 8px; font-size: 12.5px; font-weight: 600; color: var(--swb-muted); }
.swb-slot-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); }
.swb-slot { position: relative; }
.swb-slot input, .swb-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.swb-booking .swb-slot label { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 11px 6px 10px; border: 1px solid var(--swb-border); border-radius: var(--swb-radius-button); background: var(--swb-bg); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.swb-booking .swb-slot label:hover { border-color: var(--swb-primary); }
.swb-slot-time { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.swb-slot-end { font-size: 11.5px; color: var(--swb-muted); white-space: nowrap; }
.swb-booking .swb-slot input:checked + label { border-color: var(--swb-primary); background: var(--swb-primary); color: var(--swb-primary-contrast); }
.swb-booking .swb-slot input:checked + label .swb-slot-end { color: color-mix(in srgb, var(--swb-primary-contrast) 80%, var(--swb-primary)); }
.swb-booking .swb-slot input:focus-visible + label, .swb-booking .swb-choice input:focus-visible + label { outline: 2px solid var(--swb-focus); outline-offset: 3px; }
.swb-slot-ghost { height: 56px; border-radius: 14px; background: linear-gradient(90deg, var(--swb-surface) 0%, var(--swb-line) 50%, var(--swb-surface) 100%); background-size: 200% 100%; animation: swb-shimmer 1.4s linear infinite; }
@keyframes swb-shimmer { to { background-position: -200% 0; } }
.swb-wait { padding: 22px 20px; border-radius: 18px; background: var(--swb-surface); color: var(--swb-muted); font-size: 14.5px; }
.swb-booking .swb-wait-title { margin-bottom: 4px; font-family: var(--swb-display); font-weight: var(--swb-display-weight); font-size: 21px; color: var(--swb-text); }
.swb-help { margin-top: 18px; font-size: 14px; color: var(--swb-muted); }

/* Fields */
.swb-grid2 { display: grid; gap: 0 18px; grid-template-columns: minmax(0, 1fr); }
@container swb-main (min-width: 520px) { .swb-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .swb-field.is-full { grid-column: 1 / -1; } }
.swb-field { margin-bottom: 18px; }
.swb-booking .swb-input { display: block; width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--swb-border); border-radius: var(--swb-radius-field); background: var(--swb-bg); color: var(--swb-text); font-size: 15.5px; caret-color: var(--swb-accent); transition: border-color 0.2s, box-shadow 0.2s; }
.swb-booking textarea.swb-input { min-height: 100px; resize: vertical; }
.swb-booking .swb-input::placeholder { color: var(--swb-muted); opacity: 1; }
.swb-booking .swb-input:hover { border-color: color-mix(in srgb, var(--swb-text) 30%, var(--swb-border)); }
.swb-booking .swb-input:focus { outline: none; border-color: var(--swb-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--swb-accent) 20%, transparent); }
.swb-booking .swb-input[aria-invalid="true"] { border-color: var(--swb-error); }
.swb-select-wrap { position: relative; display: block; }
.swb-booking .swb-select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.swb-select-wrap .swb-icon { position: absolute; right: 14px; top: 50%; margin-top: -9px; pointer-events: none; }
.swb-hint { margin-top: 6px; color: var(--swb-muted); font-size: 13px; }
.swb-field-error { display: flex; gap: 6px; align-items: center; margin-top: 6px; color: var(--swb-error); font-size: 13px; font-weight: 500; }
.swb-field-error .swb-icon { width: 15px; height: 15px; }
.swb-field-error:empty { display: none; }
.swb-hint + .swb-field-error:not(:empty) { margin-top: 4px; }

/* Payment choice, amount due, consent */
.swb-paychoice { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin-bottom: 20px; }
@container swb-main (min-width: 520px) { .swb-paychoice { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.swb-choice { position: relative; }
.swb-booking .swb-choice label { position: relative; display: block; height: 100%; padding: 17px 18px 17px 50px; border: 1px solid var(--swb-border); border-radius: 16px; background: var(--swb-bg); cursor: pointer; }
.swb-booking .swb-choice label::before { content: ""; display: block; position: absolute; left: 18px; top: 19px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--swb-border); background: var(--swb-bg); }
.swb-booking .swb-choice input:checked + label { border-color: var(--swb-primary); box-shadow: inset 0 0 0 1px var(--swb-primary); }
.swb-booking .swb-choice input:checked + label::before { border-color: var(--swb-primary); background: radial-gradient(circle, var(--swb-primary) 0 5px, var(--swb-bg) 5.5px); }
.swb-choice-title { display: block; font-weight: 600; font-size: 16px; }
.swb-choice-sub { display: block; margin-top: 3px; color: var(--swb-muted); font-size: 13.5px; }
.swb-due { margin-bottom: 20px; padding: 18px 20px; border-radius: 16px; background: var(--swb-highlight); }
.swb-due-now { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; }
.swb-booking .swb-due-now strong { font-family: var(--swb-display); font-weight: var(--swb-display-weight); font-size: 34px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.swb-due-later { margin-top: 6px; color: var(--swb-muted); font-size: 13.5px; }
.swb-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--swb-muted); }
.swb-booking .swb-consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--swb-primary); }
.swb-consent + .swb-field-error { margin-top: 8px; }

/* Buttons */
.swb-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-end; margin-top: 26px; }
.swb-booking .swb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border: 0; border-radius: var(--swb-radius-button); background: var(--swb-primary); color: var(--swb-primary-contrast); font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap; text-decoration: none; transition: background 0.2s, transform 0.25s var(--swb-ease); }
.swb-booking .swb-btn:hover:not(:disabled) { background: var(--swb-primary-hover); color: var(--swb-primary-contrast); }
.swb-booking .swb-btn:active:not(:disabled) { transform: scale(0.98); }
.swb-booking .swb-btn:disabled { background: color-mix(in srgb, var(--swb-text) 14%, var(--swb-bg)); color: color-mix(in srgb, var(--swb-text) 60%, var(--swb-bg)); cursor: not-allowed; }
.swb-booking .swb-btn.is-busy { cursor: progress; }
.swb-booking .swb-btn.is-ghost { background: transparent; color: var(--swb-text); box-shadow: inset 0 0 0 1px var(--swb-border); }
.swb-booking .swb-btn.is-ghost:hover { background: var(--swb-surface); color: var(--swb-text); }
@container swb-main (max-width: 479px) {
	.swb-actions { flex-direction: column-reverse; align-items: stretch; }
	.swb-actions .swb-btn { width: 100%; }
}

/* Summary */
.swb-aside { display: grid; gap: 16px; }
@container swb (min-width: 900px) { .swb-aside { position: sticky; top: 24px; } }
.swb-card { padding: 22px; border: 1px solid var(--swb-line); border-radius: var(--swb-radius); background: var(--swb-bg); }
.swb-booking .swb-card-title { font-family: var(--swb-display); font-weight: var(--swb-display-weight); font-size: 26px; line-height: 1.15; }
.swb-card-sub { margin-top: 4px; color: var(--swb-muted); font-size: 14px; white-space: pre-line; }
.swb-sum { margin-top: 16px; padding: 4px 16px; border-radius: 16px; background: var(--swb-surface); }
.swb-sum > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--swb-line); font-size: 14px; }
.swb-sum > div:first-child { border-top: 0; }
.swb-sum dt { flex: none; font-weight: 600; }
.swb-sum dd { text-align: right; color: var(--swb-muted); font-variant-numeric: tabular-nums; }
.swb-sum dd.is-blank { font-style: italic; }
.swb-sum .is-total { font-size: 15px; }
.swb-sum .is-total dd { color: var(--swb-text); font-weight: 600; }
.swb-secure { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; font-size: 13.5px; color: var(--swb-muted); }
.swb-secure .swb-icon { margin-top: 2px; color: var(--swb-accent-ink); }
.swb-secure strong { display: block; margin-bottom: 2px; color: var(--swb-text); font-size: 14.5px; }
.swb-aside .swb-help { margin-top: 0; padding: 0 4px; font-size: 13.5px; }

/* Status + notices */
.swb-status { display: flex; gap: 8px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: var(--swb-surface); font-size: 14px; }
.swb-status:empty { display: none; }
.swb-status.is-top { margin: 0 0 18px; }
.swb-status .swb-icon { margin-top: 1px; }
.swb-status.is-error { background: color-mix(in srgb, var(--swb-error) 9%, var(--swb-bg)); color: var(--swb-error); font-weight: 500; }
.swb-status.is-success { background: color-mix(in srgb, var(--swb-success) 9%, var(--swb-bg)); color: var(--swb-success); }
.swb-notice { padding: 14px 16px; border-radius: 14px; background: var(--swb-surface); }
.swb-muted { color: var(--swb-muted); font-size: 14px; }
.swb-loading { color: var(--swb-muted); padding: 8px 0; }

/* Payment return: confirmed, still confirming, cancelled */
.swb-done { max-width: 620px; margin: 0 auto; text-align: center; }
.swb-done .swb-lede { margin-left: auto; margin-right: auto; }
.swb-badge { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--swb-band); color: var(--swb-primary); }
.swb-badge.is-warn { background: color-mix(in srgb, var(--swb-error) 12%, var(--swb-bg)); color: var(--swb-error); }
.swb-badge .swb-icon { width: 28px; height: 28px; }
.swb-done .swb-sum { margin-top: 24px; text-align: left; }
.swb-done .swb-actions { justify-content: center; }

/* The patient's standalone pages: cancel link (?swb_cancel=) and payment link (?swb_pay=). The brand variables land
   on main.swb-booking, so main paints the surface ground and a 520px column sits inside it. */
body.swb-cancel-page { margin: 0; }
.swb-cancel-page .swb-booking { max-width: none; min-height: 100vh; min-height: 100dvh; margin: 0; padding: 48px 20px 64px; background: var(--swb-surface); }
.swb-cancel-page .swb-page { max-width: 520px; margin: 0 auto; }
.swb-cancel-page .swb-page > * + *, .swb-cancel-page form > * + * { margin-top: 16px; }
.swb-cancel-page .swb-page > .swb-step-title { margin-top: 4px; font-family: var(--swb-display); font-weight: var(--swb-display-weight); font-size: 32px; line-height: 1.15; }
.swb-cancel-page .swb-status { margin: 20px 0 0; border-radius: var(--swb-radius-button); }
.swb-cancel-page .swb-status:not(.is-error, .is-success) { background: var(--swb-bg); border: 1px solid var(--swb-line); }
.swb-cancel-page .swb-booking a:not(.swb-btn) { color: var(--swb-accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.swb-pay-summary { padding: 22px; background: var(--swb-bg); border: 1px solid var(--swb-line); border-radius: var(--swb-radius); font-size: 15px; }
.swb-pay-summary > * + * { margin-top: 2px; }
.swb-pay-service { font-size: 17px; font-weight: 600; }
.swb-pay-meta { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--swb-line); font-size: 14px; }
.swb-pay-meta > div { display: flex; justify-content: space-between; gap: 16px; }
.swb-pay-meta > div + div { margin-top: 4px; }
.swb-pay-meta dt { color: var(--swb-muted); }
.swb-pay-meta dd { font-weight: 600; text-align: right; }
.swb-pay-amount { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; padding: 10px 12px; border-radius: var(--swb-radius-button); background: var(--swb-surface); font-size: 14px; }
.swb-pay-amount.is-due { background: var(--swb-highlight); }
.swb-pay-amount strong { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.swb-cancel-page .swb-actions { justify-content: flex-start; }
@media (max-width: 559px) {
	.swb-cancel-page .swb-booking { padding: 28px 16px 48px; }
	.swb-cancel-page .swb-page > .swb-step-title { font-size: 28px; }
	.swb-pay-summary { padding: 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.swb-booking *, .swb-booking *::before, .swb-booking *::after { transition: none !important; animation: none !important; }
}
