/**
 * Blow Up Bar - booking form styles. Mobile-first, brand-themed.
 * Everything scoped under .bub-booking to avoid theme collisions.
 */

.bub-booking {
	/* Bold Tropical palette — harmonised with the homepage. Existing token NAMES are
	   kept (JS and other rules reference them); values are aligned and accent tokens added. */
	--bub-green-deep: #0a4d2e;
	--bub-green: #083d24;
	--bub-slate: #1E293B;
	--bub-gold: #C9A227;            /* legacy: still used by summary "due today" text */
	--bub-amber: #ff9d2e;           /* homepage amber */
	--bub-coral: #ff5e4d;
	--bub-sand: #fff7ea;
	--bub-sun: linear-gradient(135deg, #ffb24d 0%, #ff7a2f 55%, #ff5e4d 100%);
	--bub-light: #F4F6F4;
	--bub-white: #ffffff;
	--bub-ink: #0a2a1b;
	--bub-muted: #5d6b63;
	--bub-line: #e2e8e2;
	--bub-radius: 18px;
	--bub-radius-lg: 22px;
	--bub-shadow: 0 6px 24px rgba(10, 77, 46, 0.08);
	--bub-shadow-lg: 0 14px 40px rgba(10, 77, 46, 0.16);
	--bub-font-display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--bub-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	max-width: 820px;
	margin: 0 auto;
	padding: 4px;
	color: var(--bub-ink);
	font-family: var(--bub-font-body);
	line-height: 1.5;
	box-sizing: border-box;
}

.bub-booking *,
.bub-booking *::before,
.bub-booking *::after {
	box-sizing: inherit;
}

.bub-booking h2,
.bub-booking h3 {
	font-family: var(--bub-font-display);
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--bub-green-deep);
	line-height: 1.15;
	margin: 0 0 0.5em;
}

/* Honeypot - visually and assistively hidden. */
.bub-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.bub-noscript {
	background: var(--bub-amber);
	padding: 16px;
	border-radius: var(--bub-radius);
	text-align: center;
	font-weight: 600;
}

/* ---------------- Progress ---------------- */
.bub-progress {
	display: flex;
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	counter-reset: step;
}

.bub-progress__step {
	flex: 1 1 0;
	text-align: center;
	position: relative;
	color: var(--bub-muted);
	font-size: 12px;
}

.bub-progress__step span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--bub-line);
	color: var(--bub-muted);
	font-weight: 700;
	margin-bottom: 4px;
	transition: all 0.2s ease;
}

.bub-progress__step::before {
	content: "";
	position: absolute;
	top: 15px;
	left: -50%;
	width: 100%;
	height: 2px;
	background: var(--bub-line);
	z-index: 0;
}

.bub-progress__step:first-child::before { display: none; }
.bub-progress__step span { position: relative; z-index: 1; }
.bub-progress__step em { display: block; font-style: normal; }

.bub-progress__step.is-active span,
.bub-progress__step.is-done span {
	background: var(--bub-green-deep);
	color: var(--bub-white);
}
.bub-progress__step.is-done span { background: var(--bub-gold); }
.bub-progress__step.is-active { color: var(--bub-green-deep); font-weight: 700; }

.bub-progress__btn {
	all: unset;
	display: flex; flex-direction: column; align-items: center;
	width: 100%; cursor: pointer;
	box-sizing: border-box;
}
.bub-progress__btn:focus-visible { outline: 2px solid var(--bub-gold); outline-offset: 2px; border-radius: 6px; }
.bub-progress__btn:disabled { cursor: default; }
.bub-progress__step.is-clickable .bub-progress__btn { cursor: pointer; }
.bub-progress__btn[aria-disabled="true"] { opacity: 0.6; }

/* Defeat theme/Elementor <button> hover/focus bleed on the step nav (same class of
   bug as the calendar A7 guard: all:unset can't beat themed :hover). The theme also
   whitens button text on hover, which hid the step labels — pin colour too. */
.bub-booking .bub-progress__btn,
.bub-booking .bub-progress__btn:hover,
.bub-booking .bub-progress__btn:focus,
.bub-booking .bub-progress__btn:active {
	background: transparent !important;
	box-shadow: none !important;
	border: none !important;
	text-decoration: none !important;
	color: inherit !important;
}
.bub-booking .bub-progress__btn:focus-visible {
	outline: 2px solid var(--bub-gold) !important;
	outline-offset: 2px;
	border-radius: 6px;
}
/* Keep the number-circle text its intended colour regardless of theme hover rules. */
.bub-booking .bub-progress__step:not(.is-active):not(.is-done) .bub-progress__btn span { color: var(--bub-muted) !important; }
.bub-booking .bub-progress__step.is-active .bub-progress__btn span,
.bub-booking .bub-progress__step.is-done .bub-progress__btn span { color: var(--bub-white) !important; }

/* ---------------- Trust cues ---------------- */
.bub-trust { display:flex; gap:18px; justify-content:center; align-items:center; flex-wrap:wrap; list-style:none; margin:0 0 12px; padding:0; }
.bub-trust__item { display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:var(--bub-green-deep); }
.bub-trust__item svg { color:var(--bub-gold); flex:0 0 auto; }
.bub-trust--footer { margin:18px 0 4px; opacity:0.75; }
.bub-trust--footer .bub-trust__item { font-size:12px; color:var(--bub-muted); font-weight:500; }

/* ---------------- Steps ---------------- */
.bub-step { display: none; }
.bub-step.is-active { display: block; animation: bub-fade 0.25s ease; }
@keyframes bub-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.bub-step__title { font-size: 24px; margin-bottom: 16px; }

/* ---------------- Packages ---------------- */
.bub-pool { margin-bottom: 22px; }
.bub-pool__name {
	font-size: 19px;
	border-left: 4px solid var(--bub-coral);
	padding-left: 10px;
}
.bub-pool__blurb { color: var(--bub-muted); margin: -4px 0 12px; font-size: 14px; }

.bub-packages { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: stretch; }

/* Flex chain so cards in a row are equal height (grid stretches the item, the card fills it). */
.bub-package { display: flex; flex-direction: column; cursor: pointer; position: relative; }
.bub-package input { position: absolute; opacity: 0; pointer-events: none; }

.bub-package__card {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	height: 100%;
	position: relative;
	background: var(--bub-white);
	border: 2px solid var(--bub-line);
	border-radius: var(--bub-radius-lg);
	padding: 14px;
	box-shadow: var(--bub-shadow);
	transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.bub-package:hover .bub-package__card { transform: translateY(-2px); box-shadow: var(--bub-shadow-lg); }
.bub-package input:checked + .bub-package__card {
	border-color: var(--bub-coral);
	box-shadow: 0 0 0 3px rgba(255, 94, 77, 0.30), var(--bub-shadow-lg);
}
.bub-package input:focus-visible + .bub-package__card { outline: 3px solid var(--bub-amber); outline-offset: 2px; }

.bub-package__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.bub-package__name { font-family: var(--bub-font-display); font-size: 19px; font-weight: 800; letter-spacing: -0.01em; color: var(--bub-green-deep); overflow-wrap: anywhere; }
.bub-package__price { font-size: 22px; font-weight: 800; color: var(--bub-coral); white-space: nowrap; }
/* Sunset gradient price text where supported; solid coral fallback keeps it visible (AA). */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.bub-package__price {
		background: var(--bub-sun);
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
	}
}
.bub-package__desc { display: block; color: var(--bub-muted); font-size: 14px; margin: 6px 0; }
.bub-package__includes-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--bub-muted); margin-top: 10px; font-weight: 700; }
.bub-package__includes {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2px 10px;
	font-size: 12.5px;
	color: var(--bub-ink);
}
.bub-package__includes li { position: relative; padding-left: 22px; line-height: 1.5; }
/* Homepage-style tick: small filled green circle with a white check. */
.bub-package__includes li::before {
	content: "";
	position: absolute; left: 0; top: 0.2em;
	width: 15px; height: 15px; border-radius: 50%;
	background-color: var(--bub-green-deep);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: center; background-size: 9px 9px;
}
/* Comparison matrix: excluded rows are muted with a red cross instead of the green tick. */
.bub-booking .bub-package__includes--matrix li.is-excluded { color: var(--bub-muted); }
.bub-booking .bub-package__includes--matrix li.is-excluded::before {
	background-color: #e0584d;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E");
}
/* Collapse the inclusions on EVERY breakpoint: show the first 6, toggle reveals the rest. */
.bub-booking .bub-package__includes.is-collapsed li:nth-child(n+7) { display: none; }
.bub-booking .bub-package__more { all: unset; display:inline-flex; align-items:center; gap:3px; margin-top:10px; color:var(--bub-green-deep); font-weight:700; font-size:12.5px; cursor:pointer; }
.bub-booking .bub-package__more::after { content: "\25BE"; font-size: 10px; }
.bub-booking .bub-package__more[aria-expanded="true"]::after { content: "\25B4"; }
.bub-booking .bub-package__more:focus-visible { outline:2px solid var(--bub-gold); outline-offset:2px; border-radius:4px; }
.bub-package__select {
	display: none;
	margin-top: auto;
	text-align: center;
	background: var(--bub-sun);
	color: #3a1400;
	padding: 9px 10px;
	border-radius: 10px;
	font-weight: 800;
	font-size: 14px;
}
.bub-package input:checked + .bub-package__card .bub-package__select { display: block; }

/* "Most popular" badge — sunset pill straddling the card's top edge. */
.bub-package__badge {
	position: absolute;
	top: -10px; right: 14px;
	z-index: 2;
	background: var(--bub-sun);
	color: #3a1400;
	font-family: var(--bub-font-display);
	font-weight: 800;
	font-size: 10.5px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 5px 11px;
	border-radius: 999px;
	box-shadow: 0 4px 12px rgba(255, 94, 77, 0.35);
}

/* ---------------- Add-ons ---------------- */
.bub-addons { margin-top: 8px; padding-top: 16px; border-top: 1px dashed var(--bub-line); }
.bub-addons__title { font-size: 17px; }
.bub-addon { display: block; cursor: pointer; margin-bottom: 10px; }
.bub-addon input { position: absolute; opacity: 0; }
.bub-addon__body {
	display: block;
	border: 2px solid var(--bub-line);
	border-radius: var(--bub-radius);
	padding: 12px 14px;
	background: var(--bub-white);
	transition: border-color 0.15s ease;
}
.bub-addon input:checked + .bub-addon__body { border-color: var(--bub-coral); background: var(--bub-sand); }
.bub-addon input:focus-visible + .bub-addon__body { outline: 3px solid var(--bub-amber); outline-offset: 2px; }
.bub-addon__head { display: flex; justify-content: space-between; font-weight: 700; }
.bub-addon__name::before { content: "＋ "; color: var(--bub-coral); }
.bub-addon input:checked + .bub-addon__body .bub-addon__name::before { content: "✓ "; }
.bub-addon__price { color: var(--bub-gold); white-space: nowrap; }
.bub-addon__desc { display: block; font-size: 13px; color: var(--bub-muted); margin-top: 4px; }

/* ---------------- Calendar (compact, modern) ---------------- */
.bub-calendar {
	background: var(--bub-white);
	border: 1px solid var(--bub-line);
	border-radius: var(--bub-radius);
	padding: 16px;
	box-shadow: var(--bub-shadow);
	max-width: 580px;
	margin: 0 auto;
	overflow: hidden;
}
.bub-calendar__header { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 14px; }
.bub-calendar__month { font-family: var(--bub-font-display); font-weight: 700; font-size: 18px; color: var(--bub-green-deep); min-width: 150px; text-align: center; }
.bub-cal-nav {
	display: inline-flex; align-items: center; justify-content: center;
	border: 2px solid var(--bub-green-deep);
	background: var(--bub-white);
	width: 40px; height: 40px;
	border-radius: 10px;
	line-height: 1;
	cursor: pointer;
	color: var(--bub-green-deep);
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.bub-cal-nav svg { display: block; }
.bub-cal-nav:hover:not(:disabled) { background: var(--bub-light); border-color: var(--bub-green-deep); }
.bub-cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.bub-cal-nav:focus-visible,
.bub-cal-cell:focus-visible { outline: 2px solid var(--bub-gold); outline-offset: 2px; }
.bub-calendar__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.bub-cal-dow { text-align: center; font-size: 10px; letter-spacing: 0.04em; color: var(--bub-muted); font-weight: 700; padding: 2px 0 6px; text-transform: uppercase; }
.bub-cal-cell {
	height: 46px;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	border: 1px solid transparent;
	border-radius: 9px;
	background: var(--bub-white);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	color: var(--bub-ink);
	transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.bub-cal-cell::after {
	content: "";
	position: absolute;
	bottom: 6px; left: 50%;
	transform: translateX(-50%);
	width: 5px; height: 5px;
	border-radius: 50%;
	background: transparent;
}
.bub-cal-cell.is-empty { background: transparent; cursor: default; }
.bub-cal-cell.is-available { border-color: var(--bub-line); }
.bub-cal-cell.is-available::after { background: var(--bub-green-deep); }
.bub-cal-cell.is-available:hover { border-color: var(--bub-green-deep); background: #f3f8f4; }
.bub-cal-cell.is-limited { border-color: var(--bub-line); }
.bub-cal-cell.is-limited::after { background: var(--bub-amber); }
.bub-cal-cell.is-limited:hover { border-color: var(--bub-amber); background: #fffbf0; }
.bub-cal-cell.is-last_minute { background: #eef3ff; color: #2f4f8f; }
.bub-cal-cell.is-last_minute::after { background: #2f6fed; }
.bub-cal-cell.is-last_minute:hover { background: #e3ecff; }
.bub-cal-cell.is-full,
.bub-cal-cell.is-past { background: #f4f5f4; color: #b8c0ba; cursor: not-allowed; }
.bub-cal-cell.is-past { text-decoration: line-through; }
.bub-cal-cell.is-selected,
.bub-cal-cell.is-selected:hover { background: var(--bub-green-deep); color: var(--bub-white); border-color: var(--bub-gold); }
.bub-cal-cell.is-selected::after { background: var(--bub-gold); }
.bub-calendar__legend { display: flex; gap: 14px; justify-content: center; margin-top: 14px; font-size: 12px; color: var(--bub-muted); flex-wrap: wrap; }
.bub-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.bub-dot--available { background: var(--bub-green-deep); }
.bub-dot--limited { background: var(--bub-amber); }
.bub-dot--lastminute { background: #2f6fed; }
.bub-dot--full { background: #c9cdc9; }

/* No-available-dates hint under the grid. */
.bub-calendar__hint { margin: 10px 2px 0; text-align: center; font-size: 12.5px; line-height: 1.4; color: var(--bub-muted); }

/* Guard: defeat theme/Elementor <button> styles that inflate calendar cells and overflow the card. */
.bub-booking .bub-calendar__grid { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; }
.bub-booking .bub-cal-cell { min-width: 0 !important; max-width: none !important; padding: 0 !important; }

/* A7: defeat theme/Elementor <button> hover bleed on calendar cells */
.bub-booking .bub-cal-cell {
	-webkit-appearance: none; appearance: none;
	background: var(--bub-white); color: var(--bub-ink);
	border: 1px solid transparent; box-shadow: none !important;
	text-decoration: none !important; transform: none !important;
	text-shadow: none; outline-offset: 2px;
	line-height: 1 !important; padding: 0 !important;
}
.bub-booking .bub-cal-cell.is-available:hover,
.bub-booking .bub-cal-cell.is-limited:hover {
	background: #f3f8f4; border-color: var(--bub-green-deep);
	color: var(--bub-ink) !important;
}
.bub-booking .bub-cal-cell.is-selected,
.bub-booking .bub-cal-cell.is-selected:hover {
	background: var(--bub-green-deep) !important; color: #fff !important; border-color: var(--bub-gold);
}
.bub-booking .bub-cal-cell.is-last_minute.is-selected,
.bub-booking .bub-cal-cell.is-last_minute.is-selected:hover {
	background: var(--bub-green-deep) !important; color: #fff !important;
}
.bub-booking .bub-cal-cell:disabled:hover { background: #f4f5f4; cursor: not-allowed; }

/* A7 follow-up: the cell guard above re-sets background/color for ALL cells at equal
   specificity (and kills text-decoration), which clobbered past/full/last-minute dates.
   Re-assert them with higher specificity so each state reads distinctly again. */
.bub-booking .bub-cal-cell.is-past,
.bub-booking .bub-cal-cell.is-full {
	background: #f4f5f4 !important;
	color: #b8c0ba !important;
	cursor: not-allowed;
}
.bub-booking .bub-cal-cell.is-past { text-decoration: line-through !important; }
.bub-booking .bub-cal-cell.is-last_minute {
	background: #eef3ff !important;
	color: #2f4f8f !important;
}

/* Calendar nav: defeat theme button inflation + restore the inline SVG chevron.
   Inline fill/stroke attrs are the weakest cascade layer, so any theme svg/button rule
   hides the arrow even though the (class-based) border survives. Force them back. */
.bub-booking .bub-cal-nav {
	width: 40px !important;
	min-width: 40px !important;
	height: 40px !important;
	padding: 0 !important;
	color: var(--bub-green-deep) !important;
	background: var(--bub-white) !important;
}
.bub-booking .bub-cal-nav:hover:not(:disabled) { background: var(--bub-light) !important; }
.bub-booking .bub-cal-nav:disabled { opacity: 0.3 !important; }
.bub-booking .bub-cal-nav svg { display: block !important; width: 20px !important; height: 20px !important; visibility: visible !important; opacity: 1 !important; }
.bub-booking .bub-cal-nav svg path {
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 2.5px !important;
}

/* ---------------- Time slots ---------------- */
.bub-timeslots { margin-top: 18px; }
.bub-timeslots__options { display: flex; gap: 10px; flex-wrap: wrap; }
.bub-timeslot input { position: absolute; opacity: 0; }
.bub-timeslot span {
	display: inline-block;
	border: 2px solid var(--bub-line);
	border-radius: 999px;
	padding: 9px 18px;
	cursor: pointer;
	font-weight: 600;
	background: var(--bub-white);
}
.bub-timeslot input:checked + span { background: var(--bub-green-deep); color: var(--bub-white); border-color: var(--bub-green-deep); }
.bub-timeslot input:focus-visible + span { outline: 3px solid var(--bub-amber); outline-offset: 2px; }

/* ---------------- Fields ---------------- */
.bub-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
.bub-field { margin-bottom: 12px; }
.bub-field label,
.bub-field-label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 14px; color: var(--bub-slate); }
.bub-field input,
.bub-field select,
.bub-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 2px solid var(--bub-line);
	border-radius: 10px;
	font-size: 16px; /* >=16px avoids iOS zoom-on-focus */
	background: var(--bub-white);
	color: var(--bub-ink);
	font-family: inherit;
}
.bub-field select {
	min-height: 50px;
	line-height: 1.4;
	height: auto;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%230a4d2e' stroke-width='2' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}
.bub-field input:focus,
.bub-field select:focus,
.bub-field textarea:focus { outline: none; border-color: var(--bub-green-deep); box-shadow: 0 0 0 3px rgba(11, 61, 31, 0.12); }
.bub-field input.bub-invalid,
.bub-field select.bub-invalid { border-color: #c0392b; }
.bub-error { display: block; color: #c0392b; font-size: 13px; margin-top: 4px; min-height: 1px; }

.bub-distance {
	background: var(--bub-light);
	border-radius: 10px;
	padding: 12px 14px;
	margin: 6px 0 14px;
	font-size: 14px;
}
.bub-distance.is-ok { border-left: 4px solid var(--bub-green-deep); }
.bub-distance.is-warn { border-left: 4px solid var(--bub-amber); }

/* ---------------- Callouts & leads ---------------- */
.bub-callout {
	background: linear-gradient(135deg, var(--bub-green-deep), var(--bub-green));
	color: var(--bub-white);
	border-radius: var(--bub-radius);
	padding: 20px;
	margin: 16px 0;
	box-shadow: var(--bub-shadow-lg);
}
.bub-callout h3 { color: var(--bub-amber); }
.bub-callout p { color: #e9f0ea; }
.bub-callout__or { margin-top: 14px; font-weight: 600; }
.bub-btn--call {
	display: inline-block;
	background: var(--bub-amber);
	color: var(--bub-green-deep);
	font-size: 19px;
	font-weight: 800;
	padding: 12px 22px;
	border-radius: 10px;
	text-decoration: none;
	margin: 6px 0;
}
.bub-lead__row { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 8px; }
.bub-lead input { width: 100%; padding: 11px 13px; border-radius: 9px; border: none; font-size: 16px; }
.bub-lead__msg { font-size: 14px; margin-top: 8px; min-height: 1px; }
.bub-lead__msg.is-ok { color: var(--bub-amber); font-weight: 700; }
.bub-lead__msg.is-err { color: #ffd2cc; }

/* ---------------- Summary & payment ---------------- */
.bub-summary {
	background: var(--bub-white);
	border: 1px solid var(--bub-line);
	border-radius: var(--bub-radius);
	padding: 16px;
	box-shadow: var(--bub-shadow);
	margin-bottom: 16px;
}
.bub-summary__row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 15px; border-bottom: 1px dashed var(--bub-line); }
.bub-summary__row:last-child { border-bottom: none; }
.bub-summary__row--discount { color: #1b8a4b; }
.bub-summary__row--total { font-size: 19px; font-weight: 800; color: var(--bub-green-deep); border-top: 2px solid var(--bub-green-deep); margin-top: 4px; padding-top: 12px; }
.bub-summary__row--charge { color: var(--bub-gold); font-weight: 800; }
.bub-summary__muted { color: var(--bub-muted); font-size: 13px; }
.bub-summary__loading { text-align: center; color: var(--bub-muted); padding: 10px; }

.bub-payment-type { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 18px; }
.bub-payopt { cursor: pointer; }
.bub-payopt input { position: absolute; opacity: 0; }
.bub-payopt__body {
	display: block;
	border: 2px solid var(--bub-line);
	border-radius: var(--bub-radius);
	padding: 14px;
	background: var(--bub-white);
}
.bub-payopt input:checked + .bub-payopt__body { border-color: var(--bub-green-deep); box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.3); }
.bub-payopt input:focus-visible + .bub-payopt__body { outline: 3px solid var(--bub-amber); }
.bub-payopt__body strong { display: block; color: var(--bub-green-deep); font-size: 16px; }
.bub-payopt__body em { font-style: normal; font-weight: 800; color: var(--bub-gold); }
.bub-payopt__body small { display: block; color: var(--bub-muted); margin-top: 3px; }

.bub-payment-element { margin: 8px 0 14px; min-height: 40px; }
.bub-pay__error { color: #c0392b; font-weight: 600; min-height: 1px; margin: 4px 0; }
.bub-pay__secure { font-size: 12px; color: var(--bub-muted); text-align: center; margin-top: 10px; }

/* ---------------- Buttons & actions ---------------- */
.bub-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }
.bub-btn {
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	border: none;
	border-radius: 10px;
	padding: 14px 26px;
	cursor: pointer;
	transition: transform 0.12s ease, background 0.15s ease, opacity 0.15s ease;
}
.bub-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.bub-btn--primary { background: var(--bub-green-deep); color: var(--bub-white); }
.bub-btn--primary:not(:disabled):hover { transform: translateY(-1px); background: var(--bub-green); }
.bub-btn--pay { width: 100%; background: var(--bub-sun); color: #3a1400; font-size: 18px; }
.bub-btn--pay:not(:disabled):hover { filter: brightness(1.04); }
.bub-btn--ghost { background: transparent; color: var(--bub-green-deep); border: 2px solid var(--bub-line); }
.bub-btn--secondary { background: var(--bub-amber); color: var(--bub-green-deep); }
.bub-btn.is-loading { position: relative; color: transparent !important; }
.bub-btn.is-loading::after {
	content: "";
	position: absolute; top: 50%; left: 50%;
	width: 18px; height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid rgba(255,255,255,0.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: bub-spin 0.7s linear infinite;
}

/* ---------------- Overlay & spinner ---------------- */
.bub-overlay { position: absolute; inset: 0; background: rgba(255,255,255,0.7); display: flex; align-items: center; justify-content: center; border-radius: var(--bub-radius); z-index: 5; }
.bub-overlay[hidden] { display: none; }
.bub-booking [hidden] { display: none; }
.bub-booking { position: relative; }
.bub-spinner { width: 42px; height: 42px; border: 4px solid var(--bub-line); border-top-color: var(--bub-green-deep); border-radius: 50%; animation: bub-spin 0.7s linear infinite; }
@keyframes bub-spin { to { transform: rotate(360deg); } }

/* ---------------- Confirmation ---------------- */
.bub-confirmation { text-align: center; padding: 20px 0; }
.bub-confirmation__icon {
	width: 64px; height: 64px; margin: 0 auto 14px;
	background: var(--bub-green-deep); color: var(--bub-white);
	border-radius: 50%; font-size: 34px; line-height: 64px;
}
.bub-confirmation__ref { font-size: 17px; }
.bub-confirmation__ref strong { color: var(--bub-gold); font-size: 20px; letter-spacing: 0.04em; }
.bub-confirmation__summary { max-width: 420px; margin: 16px auto; text-align: left; }

/* ============================================================
   v1.5.2 — booking UI fixes. Restores the responsive layout and
   confirmation styling that were dropped, and corrects the package
   badge overlap, the orange pool-heading divider, the wider shell,
   and the back/pay button theme bleed.
   ============================================================ */

/* Roomier shell so two package cards sit comfortably side by side on
   tablet and desktop. (Mobile is unaffected — it just fills the screen.) */
.bub-booking { max-width: 1040px; }

/* Pool heading: drop the coral divider bar — a clean, centred section title. */
.bub-booking .bub-pool__name {
	border-left: 0;
	padding-left: 0;
	text-align: center;
	font-family: var(--bub-font-display);
	font-weight: 800;
	color: var(--bub-green-deep);
}
/* Breathing room between the pool name/blurb and the package cards below. */
.bub-booking .bub-pool__name { margin-bottom: 6px; }
.bub-booking .bub-pool__blurb { text-align: center; margin: 2px 0 22px; }

/* "Most popular" badge: centre it on the card's top edge so it can never
   collide with the right-aligned price. Card must let the pill straddle the border. */
.bub-booking .bub-package__card { overflow: visible; padding-top: 18px; }
.bub-booking .bub-package__badge {
	left: 50%;
	right: auto;
	transform: translateX(-50%);
}

/* Left-align each inclusion right next to its check mark (the surrounding page
   centres text via the theme; pin these left so the list reads cleanly). */
.bub-booking .bub-package__includes,
.bub-booking .bub-package__includes li { text-align: left; }

/* Left-align the package blurb + "What's included" label so the whole card body
   reads down the left edge, in line with the inclusion list (the theme centres
   card text by default). Name/price stay on their flex row. */
.bub-booking .bub-package__desc,
.bub-booking .bub-package__includes-label { text-align: left; }

/* Additive inclusion lists (e.g. Palm Pub) hold long, wrapping items; a 2-up
   grid stretches each row to the tallest cell and leaves ragged gaps. Give the
   non-matrix lists a single column for even spacing. The Pint comparison matrix
   keeps its compact two-column layout. */
.bub-booking .bub-package__includes:not(.bub-package__includes--matrix) {
	grid-template-columns: 1fr;
	row-gap: 7px;
}

/* Add-ons: tighter, modern rows. */
.bub-booking .bub-addons { padding-top: 12px; }
.bub-booking .bub-addons__title { font-size: 15px; }
.bub-booking .bub-addon { margin-bottom: 8px; }
.bub-booking .bub-addon__body { padding: 9px 12px; border-radius: 10px; }
.bub-booking .bub-addon__name { overflow-wrap: anywhere; }
.bub-booking .bub-addon__desc { font-size: 12px; color: var(--bub-muted); margin-top: 2px; line-height: 1.4; }

/* Summary row: price never wraps; long names wrap instead. */
.bub-booking .bub-summary__row span:last-child { white-space: nowrap; }
.bub-booking .bub-summary__row span:first-child { overflow-wrap: anywhere; }

/* Back / ghost button: defeat theme <button> bleed. The theme whitened the label
   on hover (making "Back" disappear) and painted a stray coloured focus glow.
   Pin the colours and kill shadows — same fix pattern as the step-nav guard. */
.bub-booking .bub-btn--ghost,
.bub-booking .bub-btn--ghost:hover,
.bub-booking .bub-btn--ghost:focus,
.bub-booking .bub-btn--ghost:active {
	background: transparent !important;
	color: var(--bub-green-deep) !important;
	border: 2px solid var(--bub-line) !important;
	box-shadow: none !important;
	text-decoration: none !important;
	text-shadow: none !important;
}
.bub-booking .bub-btn--ghost:not(:disabled):hover {
	background: var(--bub-sand) !important;
	border-color: var(--bub-green-deep) !important;
}
.bub-booking .bub-btn--ghost:focus-visible {
	outline: 3px solid var(--bub-amber) !important;
	outline-offset: 2px;
}

/* Pay button: a content-width sunset CTA (NOT full-width — full-width read as
   oversized), centred under the trust row, with a CENTRED label (the theme
   left-aligned it and inflated its height) and a soft shadow — not a harsh glow.
   The :not(.is-loading) guard lets the loading spinner still hide the label. */
.bub-booking .bub-pay { text-align: center; }
.bub-booking .bub-btn--pay {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	max-width: 100%;
	margin: 4px auto 0;
	padding: 15px 44px;
	background: var(--bub-sun) !important;
	border: none !important;
	font-weight: 800;
	font-size: 18px;
	text-align: center;
	text-decoration: none !important;
	text-shadow: none !important;
	box-shadow: 0 10px 24px -14px rgba(255, 94, 77, 0.55) !important;
}
.bub-booking .bub-btn--pay:not(.is-loading) { color: #3a1400 !important; }
.bub-booking .bub-btn--pay:not(:disabled):hover { filter: brightness(1.03); transform: translateY(-1px); }
.bub-booking .bub-btn--pay:disabled { opacity: 0.5; }

/* Call button (in the callouts) is an <a>, so the theme's link :hover turns the
   label blue. Pin the amber background + green label on every state. */
.bub-booking .bub-btn--call,
.bub-booking .bub-btn--call:link,
.bub-booking .bub-btn--call:visited,
.bub-booking .bub-btn--call:hover,
.bub-booking .bub-btn--call:focus,
.bub-booking .bub-btn--call:active {
	background: var(--bub-amber) !important;
	color: var(--bub-green-deep) !important;
	text-decoration: none !important;
	text-shadow: none !important;
}
.bub-booking .bub-btn--call:not(:disabled):hover { filter: brightness(1.04); }

/* Generic focus ring + press feedback for the action buttons. */
.bub-booking .bub-btn:focus-visible { outline: 3px solid var(--bub-amber); outline-offset: 2px; }
.bub-booking .bub-btn:not(:disabled):active { transform: translateY(1px); }

/* ---------------- Responsive ---------------- */
/* Mobile: sticky action bar so Back/Continue stay reachable; keep the inclusions
   "Show all (N)" toggle so cards stay short and the page doesn't scroll forever. */
@media (max-width: 599px) {
	.bub-actions {
		position: sticky; bottom: 0; z-index: 4;
		background: linear-gradient(to top, var(--bub-white) 70%, rgba(255,255,255,0));
		padding: 10px 4px calc(10px + env(safe-area-inset-bottom)); margin-top: 16px;
	}
}

/* Tablet & desktop: two package cards per row, multi-column field grids, and
   every inclusion shown in full (no toggle) so the features are all highlighted. */
@media (min-width: 600px) {
	.bub-booking { padding: 8px; }
	.bub-booking .bub-packages { grid-template-columns: 1fr 1fr; }
	.bub-booking .bub-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
	.bub-booking .bub-lead__row { grid-template-columns: 1fr 1fr 1fr; }
	.bub-booking .bub-payment-type { grid-template-columns: 1fr 1fr; }
	.bub-booking .bub-package__includes.is-collapsed li:nth-child(n+7) { display: block; }
	.bub-booking .bub-package__more { display: none; }
}

/* Small-phone calendar comfort. */
@media (max-width: 360px) {
	.bub-booking .bub-cal-cell { height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
	.bub-step.is-active { animation: none; }
	.bub-btn, .bub-package__card { transition: none; }
	.bub-booking .bub-btn:not(:disabled):active { transform: none; }
	.bub-actions { transition: none; }
}
