/* Bookings — front-end wizard (self-contained, mobile-first) */

.bk-booking-wallet { margin-bottom: 1rem; }
.bk-booking-apple-pay {
	-webkit-appearance: -apple-pay-button;
	-apple-pay-button-type: pay;
	-apple-pay-button-style: black;
	width: 100%;
	min-height: 48px;
	border: 0;
	cursor: pointer;
}

/* Voucher codes are deliberately rendered as numbered entries, not their full values. */
.bk-booking-vouchers {
	margin-top: 1.25rem;
	padding: 1.1rem;
	border: 1px solid var(--bk-color-border);
	background: var(--bk-color-surface-raised, #fffdf9);
}

.bk-booking-vouchers h3 { margin: 0 0 0.35rem; }
.bk-booking-vouchers__hint { margin: 0 0 0.7rem; font-size: 0.9rem; }
.bk-booking-vouchers__input { width: min(100%, 25rem); min-height: 42px; margin: 0 0.5rem 0.5rem 0; padding: 0.55rem 0.65rem; border: 1px solid var(--bk-color-border); font: inherit; }
.bk-booking-vouchers__applied { display: grid; gap: 0.45rem; margin: 0.8rem 0 0; padding: 0; list-style: none; }
.bk-booking-vouchers__applied li { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.bk-booking-vouchers__remove { border: 0; padding: 0; background: transparent; color: var(--bk-color-accent); text-decoration: underline; font: inherit; cursor: pointer; }

.bk-booking-app,
.bk-booking-confirmation {
	--bk-ui-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	--bk-color-text: #302e28;
	--bk-color-muted: #5c5c5c;
	--bk-color-muted: color-mix(in srgb, var(--bk-color-text) 68%, transparent);
	--bk-color-border: #d8cdb8;
	--bk-color-surface: #fffcf6;
	--bk-color-subtle: #f4efe5;
	--bk-color-subtle: color-mix(in srgb, var(--bk-color-surface) 94%, var(--bk-color-accent));
	--bk-color-accent: #88632b;
	--bk-color-accent-hover: #684b20;
	--bk-color-accent-hover: color-mix(in srgb, var(--bk-color-accent) 76%, #000);
	--bk-color-accent-soft: rgba(136, 99, 43, 0.12);
	--bk-color-accent-soft: color-mix(in srgb, var(--bk-color-accent) 12%, transparent);
	--bk-color-on-accent: #ffffff;
	--bk-heading-font: Georgia, 'Times New Roman', serif;
	--bk-color-error-bg: #fdecea;
	--bk-color-error-text: #9b1c1c;
	--bk-color-warn-bg: #fff8e1;
	--bk-color-warn-text: #8a6100;
	--bk-color-success-bg: #edf7ed;
	--bk-color-success-text: #1b5e20;
	--bk-radius: 6px;
	--bk-shadow: 0 1px 3px rgba(44, 35, 19, 0.07);
	--bk-tap: 48px;
	font-family: var(--bk-ui-font, inherit);
	font-size: inherit;
	line-height: 1.5;
	color: var(--bk-color-text);
	box-sizing: border-box;
}

/* Keep site-wide heading colours from overriding the booking colour control. */
.bk-booking-app :is(h1, h2, h3, h4, h5, h6),
.bk-booking-confirmation :is(h1, h2, h3, h4, h5, h6) {
	color: var(--bk-color-text) !important;
	font-family: var(--bk-heading-font);
}

.bk-booking-app.bk-heading--serif,
.bk-booking-confirmation.bk-heading--serif {
	--bk-heading-font: Georgia, 'Times New Roman', serif;
}

.bk-booking-app.bk-heading--sans,
.bk-booking-confirmation.bk-heading--sans {
	--bk-heading-font: Arial, Helvetica, sans-serif;
}

.bk-booking-app.bk-corners--soft,
.bk-booking-confirmation.bk-corners--soft { --bk-radius: 10px; }
.bk-booking-app.bk-corners--square,
.bk-booking-confirmation.bk-corners--square { --bk-radius: 2px; }
.bk-booking-app.bk-corners--rounded,
.bk-booking-confirmation.bk-corners--rounded { --bk-radius: 18px; }

.bk-booking-app *,
.bk-booking-app *::before,
.bk-booking-app *::after {
	box-sizing: inherit;
}

.bk-test-mode-banner {
	--bk-test-banner-bg: #8f2428;
	--bk-test-banner-border: #e4a4a2;
	--bk-test-banner-text: #ffffff;
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 0.75rem;
	align-items: baseline;
	width: 100%;
	margin: 0 0 1.5rem;
	padding: 0.875rem 1.125rem;
	border: 1px solid #792025;
	border-left: 5px solid var(--bk-test-banner-border);
	border-radius: 4px;
	background: var(--bk-test-banner-bg);
	color: var(--bk-test-banner-text);
	box-shadow: none;
	font-size: 0.875rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	line-height: 1.45;
}

.bk-test-mode-banner strong {
	font-weight: 700;
	letter-spacing: 0.01em;
}

.bk-test-mode-banner span {
	font-weight: 400;
}

.bk-booking-wizard {
	width: 100%;
	max-width: 58rem;
	margin: 0 auto;
	/* No outer padding: let the host container (e.g. a MaxiBlocks column) own
	   spacing. Override with --bk-wizard-pad if you want built-in padding. */
	padding: var(--bk-wizard-pad, 0);
}

.bk-booking-wizard--loading {
	opacity: 0.9;
	pointer-events: none;
}

/* Editor placeholder */
.bk-booking-app--editor {
	text-align: left;
}

.bk-booking-editor-placeholder {
	margin: 0;
	font-family: var(--bk-heading-font);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--bk-color-text);
}

.bk-booking-editor-meta {
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
	color: var(--bk-color-muted);
}

.bk-booking-editor-preview {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin-top: 1.25rem;
	padding: 1.25rem;
	border: 1px solid var(--bk-color-border);
	border-radius: var(--bk-radius);
	background: var(--bk-color-surface);
	box-shadow: var(--bk-shadow);
}

.bk-booking-editor-preview strong {
	font-family: var(--bk-heading-font);
	font-size: 1.125rem;
}

.bk-booking-editor-preview span:not(.bk-booking-editor-preview__button) {
	color: var(--bk-color-muted);
}

.bk-booking-editor-preview__button {
	margin-left: auto;
	padding: 0.65rem 1rem;
	border-radius: var(--bk-radius);
	background: var(--bk-color-accent);
	color: var(--bk-color-on-accent);
	font-weight: 700;
}

/* Progress steps */
.bk-booking-progress {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 0.375rem;
	justify-content: stretch;
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
}

.bk-booking-progress__step {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.25rem 0.5rem;
	border-radius: 999px;
	font-size: 0.8125rem;
	color: var(--bk-color-muted);
}

.bk-booking-progress__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.625rem;
	height: 1.625rem;
	border-radius: 50%;
	border: 2px solid var(--bk-color-border);
	font-size: 0.8125rem;
	font-weight: 600;
	background: var(--bk-color-surface);
	transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.bk-booking-progress__label {
	display: none;
}

.bk-booking-progress__step.is-active {
	color: var(--bk-color-accent);
	font-weight: 600;
}

.bk-booking-progress__step.is-active .bk-booking-progress__num {
	border-color: var(--bk-color-accent);
	color: var(--bk-color-accent);
}

.bk-booking-progress__step.is-complete .bk-booking-progress__num {
	border-color: var(--bk-color-accent);
	background: var(--bk-color-accent);
	color: var(--bk-color-on-accent);
}

.bk-booking-step-title {
	margin: 0 0 1.25rem;
	text-align: left;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	line-height: 1.15;
	font-family: var(--bk-heading-font);
	font-weight: 700;
	letter-spacing: -0.025em;
}

.bk-booking-step-intro {
	margin: 0 0 0.75rem;
	color: var(--bk-color-muted);
	text-align: center;
	font-size: 0.9375rem;
}

/* Messages */
.bk-booking-error {
	margin-bottom: 1rem;
	padding: 0.75rem 1rem;
	border-radius: var(--bk-radius);
	background: var(--bk-color-error-bg);
	color: var(--bk-color-error-text);
	font-size: 0.9375rem;
}

.bk-booking-loading,
.bk-booking-empty {
	margin: 0;
	padding: 1.5rem 0;
	text-align: center;
	color: var(--bk-color-muted);
}

/* Event type cards */
.bk-booking-cards {
	display: grid;
	gap: 0.75rem;
}

.bk-booking-card {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	width: 100%;
	min-height: var(--bk-tap);
	padding: 1rem;
	border: 1px solid var(--bk-color-border);
	border-radius: var(--bk-radius);
	background: var(--bk-color-surface);
	box-shadow: var(--bk-shadow);
	cursor: pointer;
	text-align: left;
	font: inherit;
	color: inherit;
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.bk-booking-card:hover {
	border-color: var(--bk-color-accent);
	transform: translateY(-1px);
}

.bk-booking-card.is-selected {
	border-color: var(--bk-color-accent);
	box-shadow: 0 0 0 2px var(--bk-color-accent-soft);
}

.bk-booking-card__title {
	font-family: var(--bk-heading-font);
	font-weight: 600;
	font-size: 1.0625rem;
}

.bk-booking-card__desc {
	font-size: 0.875rem;
	color: var(--bk-color-muted);
}

/* Calendar */
.bk-booking-cal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.bk-booking-cal__month {
	font-family: var(--bk-heading-font);
	font-weight: 600;
	font-size: 1.0625rem;
}

.bk-booking-cal__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--bk-tap);
	height: var(--bk-tap);
	border: 1px solid var(--bk-color-border);
	border-radius: var(--bk-radius);
	background: var(--bk-color-surface);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	color: var(--bk-color-text);
}

.bk-booking-cal__nav:hover:not(:disabled) {
	border-color: var(--bk-color-accent);
	color: var(--bk-color-accent);
}

.bk-booking-cal__nav:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.bk-booking-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: clamp(2px, 1vw, 6px);
}

.bk-booking-cal__weekday {
	padding: 0.25rem 0;
	text-align: center;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--bk-color-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.bk-booking-cal__cell {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	aspect-ratio: 1 / 1;
	min-height: var(--bk-tap);
	padding: 0;
	border: 1px solid transparent;
	border-radius: var(--bk-radius);
	background: transparent;
	font: inherit;
	color: inherit;
}

.bk-booking-cal__cell--blank {
	border: none;
	background: none;
}

.bk-booking-cal__date {
	font-size: 0.9375rem;
	font-variant-numeric: tabular-nums;
}

.bk-booking-cal__day.is-unavailable,
.bk-booking-cal__day.is-past {
	color: #b3b8bd;
	background: var(--bk-color-subtle);
	cursor: not-allowed;
}

.bk-booking-cal__day.is-available {
	border-color: var(--bk-color-accent);
	background: var(--bk-color-accent-soft);
	color: var(--bk-color-accent-hover);
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, box-shadow 0.15s;
}

.bk-booking-cal__day.is-available:hover {
	background: var(--bk-color-accent);
	color: var(--bk-color-on-accent);
}

.bk-booking-cal__day.is-available:hover .bk-booking-cal__count {
	color: var(--bk-color-on-accent);
}

.bk-booking-cal__day.is-selected {
	background: var(--bk-color-accent);
	color: var(--bk-color-on-accent);
	box-shadow: 0 0 0 2px var(--bk-color-accent-soft);
}

.bk-booking-cal__day.is-selected .bk-booking-cal__count,
.bk-booking-cal__day.is-selected .bk-booking-cal__dot {
	color: var(--bk-color-on-accent);
}

.bk-booking-cal__dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: currentColor;
}

.bk-booking-cal__count {
	font-size: 0.625rem;
	line-height: 1;
	color: var(--bk-color-accent-hover);
}

.bk-booking-cal__day.is-selected:focus-visible,
.bk-booking-cal__day.is-available:focus-visible,
.bk-booking-cal__nav:focus-visible {
	outline: 2px solid var(--bk-color-accent);
	outline-offset: 2px;
}

.bk-booking-cal__legend {
	margin: 0.75rem 0 0;
	font-size: 0.8125rem;
	color: var(--bk-color-muted);
	text-align: center;
}

/* Selectable lists (times) */
.bk-booking-list {
	display: grid;
	gap: 0.625rem;
}

.bk-booking-list__item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
	width: 100%;
	min-height: var(--bk-tap);
	padding: 0.875rem 1rem;
	border: 1px solid var(--bk-color-border);
	border-radius: var(--bk-radius);
	background: var(--bk-color-surface);
	box-shadow: var(--bk-shadow);
	cursor: pointer;
	text-align: left;
	font: inherit;
	color: inherit;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.bk-booking-list__item:hover:not(:disabled) {
	border-color: var(--bk-color-accent);
}

.bk-booking-list__item.is-selected {
	border-color: var(--bk-color-accent);
	box-shadow: 0 0 0 2px var(--bk-color-accent-soft);
}

.bk-booking-list__item.is-soldout,
.bk-booking-list__item:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.bk-booking-list__title {
	font-family: var(--bk-heading-font);
	font-weight: 600;
}

.bk-booking-list__meta {
	font-size: 0.875rem;
	color: var(--bk-color-muted);
}

/* Ticket steppers */
.bk-booking-tickets {
	display: grid;
	gap: 0.75rem;
}

.bk-booking-ticket-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.875rem 1rem;
	border: 1px solid var(--bk-color-border);
	border-radius: var(--bk-radius);
	background: var(--bk-color-surface);
}

.bk-booking-ticket-row__info {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	min-width: 0;
}

.bk-booking-ticket-row__label {
	font-weight: 600;
}

.bk-booking-ticket-row__price {
	font-size: 0.875rem;
	color: var(--bk-color-muted);
}

.bk-booking-stepper {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}

.bk-booking-stepper__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--bk-tap);
	height: var(--bk-tap);
	border: 1px solid var(--bk-color-border);
	border-radius: var(--bk-radius);
	background: var(--bk-color-subtle);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	color: var(--bk-color-text);
}

.bk-booking-stepper__btn:hover:not(:disabled) {
	border-color: var(--bk-color-accent);
	color: var(--bk-color-accent);
}

.bk-booking-stepper__btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.bk-booking-stepper__value {
	min-width: 1.75rem;
	text-align: center;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.bk-booking-capacity-note {
	margin: 0.75rem 0 0;
	padding: 0.625rem 0.875rem;
	border-radius: var(--bk-radius);
	background: var(--bk-color-warn-bg);
	color: var(--bk-color-warn-text);
	font-size: 0.875rem;
}

.bk-booking-hold-note {
	margin: 0 0 1.25rem;
	padding: 0.75rem 1rem;
	border-left: 3px solid var(--bk-color-accent);
	background: var(--bk-color-subtle);
	color: var(--bk-color-text);
	font-size: 0.875rem;
	line-height: 1.5;
}

.bk-booking-hold-note strong {
	font-variant-numeric: tabular-nums;
	color: var(--bk-color-accent-hover);
}

.bk-booking-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 1rem;
	padding: 0.875rem 1rem;
	border-radius: var(--bk-radius);
	background: var(--bk-color-subtle);
	font-weight: 600;
}

.bk-booking-total__amount {
	font-size: 1.125rem;
	font-variant-numeric: tabular-nums;
}

/* Form fields */
.bk-booking-form {
	display: grid;
	gap: 1.25rem 1.5rem;
}

.bk-booking-wizard--details .bk-booking-content,
.bk-booking-wizard--details .bk-booking-actions {
	width: 100%;
	max-width: 52rem;
}

.bk-booking-name-fields {
	display: grid;
	gap: 1rem;
}

.bk-booking-name-fields__row {
	display: grid;
	gap: 1rem;
}

@media (min-width: 720px) {
	.bk-booking-form {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	}

	.bk-booking-form > .bk-booking-name-fields {
		grid-column: 1 / -1;
	}

	.bk-booking-name-fields {
		grid-template-columns: 10rem minmax(0, 1fr);
		align-items: end;
	}

	.bk-booking-name-fields__row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 719px) {
	.bk-booking-field--title {
		max-width: 14rem;
	}
}

.bk-booking-field__label {
	display: block;
	margin-bottom: 0.375rem;
	font-weight: 600;
	font-size: 0.9375rem;
}

.bk-booking-req {
	color: var(--bk-color-error-text);
}

.bk-booking-field__input {
	display: block;
	width: 100%;
	min-height: var(--bk-tap);
	padding: 0.625rem 0.75rem;
	border: 1px solid var(--bk-color-border);
	border-radius: var(--bk-radius);
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	background: var(--bk-color-surface);
}

.bk-booking-field__input:focus {
	outline: none;
	border-color: var(--bk-color-accent);
	box-shadow: 0 0 0 2px var(--bk-color-accent-soft);
}

/* Gift Aid */
.bk-booking-giftaid {
	margin-top: 1.25rem;
	padding: 1rem;
	border: 1px solid var(--bk-color-border);
	border-radius: var(--bk-radius);
	background: var(--bk-color-subtle);
}

.bk-booking-giftaid__toggle {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	cursor: pointer;
}

.bk-booking-giftaid__toggle input {
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0.125rem;
	flex-shrink: 0;
}

.bk-booking-giftaid__hint {
	display: block;
	margin-top: 0.125rem;
	font-size: 0.8125rem;
	font-weight: 400;
	color: var(--bk-color-muted);
}

.bk-booking-giftaid__fields {
	display: grid;
	gap: 0.875rem;
	margin-top: 1rem;
}

/* Summary */
.bk-booking-wizard--pay .bk-booking-content,
.bk-booking-wizard--pay .bk-booking-actions {
	width: 100%;
	max-width: 52rem;
}

.bk-booking-summary {
	padding: clamp(1.25rem, 3vw, 1.75rem);
	border: 1px solid var(--bk-color-border);
	border-radius: var(--bk-radius);
	background: var(--bk-color-surface);
	box-shadow: var(--bk-shadow);
}

.bk-booking-summary__heading {
	margin: 0 0 1.25rem;
	font-family: var(--bk-heading-font);
	font-size: 1.25rem;
	line-height: 1.3;
}

.bk-booking-summary__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem 1.5rem;
	margin: 0;
}

.bk-booking-summary__row {
	min-width: 0;
}

.bk-booking-summary__list > .bk-booking-summary__row:first-child,
.bk-booking-summary__list > .bk-booking-summary__row:nth-child(4) {
	grid-column: 1 / -1;
}

.bk-booking-summary__row dt {
	margin: 0 0 0.25rem;
	font-size: 0.8125rem;
	color: var(--bk-color-muted);
}

.bk-booking-summary__row dd {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.bk-booking-summary__sub {
	color: var(--bk-color-muted);
	font-size: 0.875rem;
	font-weight: 400;
}

.bk-booking-summary__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.5rem;
	padding: 1rem 1.25rem;
	border-radius: var(--bk-radius);
	background: var(--bk-color-subtle);
	font-weight: 600;
}

.bk-booking-summary__total strong {
	font-size: 1.5rem;
	font-variant-numeric: tabular-nums;
}

.bk-booking-summary__contact {
	margin-top: 1.75rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--bk-color-border);
}

.bk-booking-summary__list--contact {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bk-booking-summary__list--contact > .bk-booking-summary__row:first-child {
	grid-column: auto;
}

.bk-booking-paynotice {
	margin: 1.25rem 0 0;
	padding: 0.875rem 1rem;
	border-radius: var(--bk-radius);
	background: var(--bk-color-warn-bg);
	color: var(--bk-color-warn-text);
	font-size: 0.9375rem;
	text-align: center;
}

.bk-booking-card {
	margin-top: 1.25rem;
	padding: clamp(1.25rem, 3vw, 1.75rem);
	border: 1px solid var(--bk-color-border);
	border-radius: var(--bk-radius);
	background: var(--bk-color-surface);
	box-shadow: var(--bk-shadow);
}

.bk-booking-card h3 {
	margin: 0 0 1rem;
	font-family: var(--bk-heading-font);
	font-size: 1.25rem;
}

.bk-booking-card__fields {
	min-height: 120px;
}

/* Theme blocks sometimes override button [hidden]; keep chrome controls hidden. */
.bk-booking-wizard [hidden] {
	display: none !important;
}

/* Actions */
.bk-booking-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: space-between;
	margin-top: 1.5rem;
}

.bk-booking-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--bk-tap);
	padding: 0.625rem 1.25rem;
	border: none;
	border-radius: var(--bk-radius);
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s, opacity 0.15s;
}

.bk-booking-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.bk-booking-btn--primary {
	background: var(--bk-color-accent);
	color: var(--bk-color-on-accent);
}

.bk-booking-btn--primary:hover:not(:disabled) {
	background: var(--bk-color-accent-hover);
}

.bk-booking-btn--secondary {
	background: transparent;
	color: var(--bk-color-text);
	border: 1px solid var(--bk-color-border);
}

.bk-booking-btn--secondary:hover:not(:disabled) {
	border-color: var(--bk-color-accent);
	color: var(--bk-color-accent);
}

.bk-booking-actions .bk-booking-btn--primary {
	margin-left: auto;
}

/* Tablet+ */
@media (min-width: 600px) {
	.bk-booking-wizard {
		padding: var(--bk-wizard-pad, 0);
	}

	.bk-booking-progress__label {
		display: inline;
	}

	.bk-booking-cards {
		grid-template-columns: repeat(2, 1fr);
	}

	.bk-booking-list--times {
		grid-template-columns: repeat(2, 1fr);
	}

	.bk-booking-giftaid__fields {
		grid-template-columns: repeat(2, 1fr);
	}

	.bk-booking-cal__date {
		font-size: 1rem;
	}

	.bk-booking-actions .bk-booking-btn--pay {
		width: auto;
		min-width: 12rem;
	}
}

/* Combined date, time and ticket selection stage. */
.bk-booking-content {
	display: grid;
	gap: 1rem;
}

.bk-booking-visit-picker,
.bk-booking-continue-panel {
	padding: clamp(1rem, 3vw, 1.75rem);
	border: 1px solid var(--bk-color-border);
	border-radius: var(--bk-radius);
	background: var(--bk-color-surface);
	box-shadow: var(--bk-shadow);
}

.bk-booking-panel-title {
	margin: 0 0 1rem;
	font: inherit;
	font-size: 1.125rem;
	font-family: var(--bk-heading-font);
	font-weight: 700;
	line-height: 1.3;
}

.bk-booking-visit-picker__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.38fr);
	gap: clamp(1rem, 3vw, 2rem);
}

.bk-booking-visit-picker__calendar {
	min-width: 0;
}

.bk-booking-visit-picker__times {
	min-width: 0;
	padding-left: clamp(1rem, 3vw, 2rem);
	border-left: 1px solid var(--bk-color-border);
}

.bk-booking-visit-picker__times-intro,
.bk-booking-visit-picker__prompt,
.bk-booking-continue-panel__prompt {
	margin: 0 0 0.875rem;
	color: var(--bk-color-muted);
	font-size: 0.875rem;
}

.bk-booking-visit-picker .bk-booking-cal__cell {
	width: 44px;
	height: 44px;
	min-height: 44px;
	aspect-ratio: auto;
	justify-self: center;
	border-radius: 999px;
	gap: 0;
}

.bk-booking-visit-picker .bk-booking-cal__date {
	line-height: 1.25;
}

.bk-booking-visit-picker .bk-booking-cal__day.is-unavailable,
.bk-booking-visit-picker .bk-booking-cal__day.is-past {
	background: transparent;
}

.bk-booking-visit-picker .bk-booking-cal__day.is-available {
	border-color: transparent;
	background: transparent;
	color: var(--bk-color-text);
	font-weight: 600;
}

.bk-booking-visit-picker .bk-booking-cal__day.is-available::after {
	content: '';
	position: absolute;
	bottom: 5px;
	left: 50%;
	transform: translateX(-50%);
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--bk-color-accent);
}

.bk-booking-visit-picker .bk-booking-cal__day.is-available:hover {
	background: var(--bk-color-accent-soft);
	color: var(--bk-color-accent-hover);
}

.bk-booking-visit-picker .bk-booking-cal__day.is-selected,
.bk-booking-visit-picker .bk-booking-cal__day.is-selected:hover {
	background: var(--bk-color-accent);
	color: var(--bk-color-on-accent);
}

.bk-booking-visit-picker .bk-booking-cal__day.is-selected::after {
	background: var(--bk-color-on-accent);
}

.bk-booking-cal__selected {
	margin: 1rem 0 0;
	color: var(--bk-color-muted);
	font-size: 0.875rem;
}

.bk-booking-cal__selected strong {
	color: var(--bk-color-accent-hover);
}

.bk-booking-time-options {
	display: grid;
	gap: 0.625rem;
}

.bk-booking-time-option {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	width: 100%;
	min-height: var(--bk-tap);
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--bk-color-border);
	border-radius: calc(var(--bk-radius) * 0.65);
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
}

.bk-booking-time-option > span {
	font-size: 0.9375rem;
}

.bk-booking-time-option small {
	color: var(--bk-color-muted);
	font-size: 0.75rem;
	font-weight: 400;
	line-height: 1.3;
}

.bk-booking-app .bk-booking-time-option:hover:not(:disabled):not(.is-selected),
.bk-booking-app .bk-booking-time-option:focus-visible:not(.is-selected) {
	border-color: var(--bk-color-accent);
	background: var(--bk-color-accent-soft);
	color: var(--bk-color-text);
}

.bk-booking-app .bk-booking-time-option:hover:not(:disabled):not(.is-selected) > span,
.bk-booking-app .bk-booking-time-option:focus-visible:not(.is-selected) > span {
	color: var(--bk-color-text);
}

.bk-booking-app .bk-booking-time-option:hover:not(:disabled):not(.is-selected) small,
.bk-booking-app .bk-booking-time-option:focus-visible:not(.is-selected) small {
	color: var(--bk-color-muted);
}

.bk-booking-time-option.is-selected {
	border-color: var(--bk-color-accent);
	background: var(--bk-color-accent);
	color: var(--bk-color-on-accent);
}

.bk-booking-app .bk-booking-time-option.is-selected:hover,
.bk-booking-app .bk-booking-time-option.is-selected:focus-visible {
	background: var(--bk-color-accent);
	color: var(--bk-color-on-accent);
}

.bk-booking-app .bk-booking-time-option.is-selected > span,
.bk-booking-app .bk-booking-time-option.is-selected small {
	color: inherit;
}

.bk-booking-time-option:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.bk-booking-continue-panel.is-inactive {
	background: var(--bk-color-subtle);
}

.bk-booking-continue-panel__label {
	margin: 0 0 0.75rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--bk-color-muted);
}

.bk-booking-progress__step:not(:last-child)::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	margin-left: 0.5rem;
	background: var(--bk-color-border);
}

.bk-booking-tickets--compact {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bk-booking-tickets--compact .bk-booking-ticket-row {
	box-shadow: none;
}

.bk-booking-visit-summary {
	display: grid;
	grid-template-columns: minmax(9rem, 1.35fr) minmax(8rem, 1fr) minmax(5rem, 0.65fr) minmax(5rem, 0.65fr) minmax(6rem, auto);
	gap: 0;
	margin-top: 1.25rem;
	padding: 1rem 0;
	border-top: 1px solid var(--bk-color-border);
}

.bk-booking-visit-summary > div {
	min-width: 0;
	padding: 0 1rem;
	border-right: 1px solid var(--bk-color-border);
}

.bk-booking-visit-summary > div:first-child {
	padding-left: 0;
}

.bk-booking-visit-summary > div:last-child {
	padding-right: 0;
	border-right: 0;
}

.bk-booking-visit-summary small,
.bk-booking-visit-summary strong {
	display: block;
}

.bk-booking-visit-summary small {
	margin-bottom: 0.25rem;
	color: var(--bk-color-muted);
	font-size: 0.75rem;
}

.bk-booking-visit-summary strong {
	overflow-wrap: anywhere;
	font-size: 0.9375rem;
}

.bk-booking-visit-summary__total strong {
	font-size: 1.25rem;
	font-variant-numeric: tabular-nums;
}

.bk-booking-continue-button {
	justify-content: space-between;
	width: 100%;
	min-height: 3.25rem;
	font-size: 1.0625rem;
}

@media (max-width: 599px) {
	.bk-booking-progress {
		justify-content: space-between;
		gap: 0.125rem;
	}

	.bk-booking-progress__step {
		padding: 0.2rem;
	}

	.bk-booking-progress__num {
		width: 1.875rem;
		height: 1.875rem;
	}

	.bk-booking-ticket-row {
		align-items: flex-start;
		flex-direction: column;
	}

	.bk-booking-stepper {
		width: 100%;
		justify-content: space-between;
	}

	.bk-booking-stepper__value {
		flex: 1;
	}

	.bk-booking-confirmation__details {
		grid-template-columns: 1fr;
		gap: 0.2rem;
	}

	.bk-booking-summary__list,
	.bk-booking-summary__list--contact {
		grid-template-columns: 1fr;
	}

	.bk-booking-summary__list > .bk-booking-summary__row:first-child,
	.bk-booking-summary__list > .bk-booking-summary__row:nth-child(4) {
		grid-column: auto;
	}

	.bk-booking-actions {
		flex-direction: column-reverse;
	}

	.bk-booking-actions .bk-booking-btn,
	.bk-booking-actions .bk-booking-btn--primary {
		width: 100%;
		margin-left: 0;
	}

	.bk-booking-confirmation {
		padding: 1rem;
	}
}

@media (max-width: 760px) {
	.bk-booking-visit-picker__grid {
		grid-template-columns: 1fr;
	}

	.bk-booking-visit-picker__times {
		padding-top: 1rem;
		padding-left: 0;
		border-top: 1px solid var(--bk-color-border);
		border-left: 0;
	}

	.bk-booking-time-options {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bk-booking-tickets--compact {
		grid-template-columns: 1fr;
	}

	.bk-booking-visit-summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem 0;
	}

	.bk-booking-visit-summary > div {
		padding: 0 0.75rem;
	}

	.bk-booking-visit-summary > div:nth-child(2n) {
		border-right: 0;
	}

	.bk-booking-visit-summary > div:first-child,
	.bk-booking-visit-summary__total {
		grid-column: 1 / -1;
		padding-right: 0;
		padding-left: 0;
		border-right: 0;
	}
}

@media (min-width: 900px) {
	.bk-booking-cards {
		grid-template-columns: repeat(3, 1fr);
	}

	.bk-booking-list--times {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.bk-booking-app * {
		transition: none !important;
	}
}

/* Confirmation block and shortcode share the same booking design tokens. */
.bk-booking-confirmation {
	width: 100%;
	max-width: 46rem;
	margin: 2rem auto;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border: 1px solid var(--bk-color-border);
	border-radius: var(--bk-radius);
	background: var(--bk-color-surface);
	box-shadow: var(--bk-shadow);
	box-sizing: border-box;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.bk-booking-confirmation *,
.bk-booking-confirmation *::before,
.bk-booking-confirmation *::after {
	box-sizing: inherit;
}

.bk-booking-confirmation .bk-test-mode-banner {
	margin-bottom: 1.75rem;
}

.bk-booking-confirmation__intro {
	padding-bottom: 1.75rem;
	border-bottom: 1px solid var(--bk-color-border);
}

.bk-booking-confirmation__eyebrow {
	margin: 0 0 0.5rem;
	color: var(--bk-color-accent);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.bk-booking-confirmation__title {
	margin: 0;
	font-family: var(--bk-heading-font);
	font-size: clamp(1.8rem, 4vw, 2.4rem);
	font-weight: 700;
	line-height: 1.15;
}

.bk-booking-confirmation__lead {
	margin: 0.75rem 0 0;
	color: var(--bk-color-muted);
	font-size: 1rem;
	line-height: 1.55;
}

.bk-booking-confirmation__details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem 2rem;
	margin: 1.75rem 0 0;
}

.bk-booking-confirmation__details > div {
	min-width: 0;
}

.bk-booking-confirmation__details dt {
	margin: 0 0 0.25rem;
	color: var(--bk-color-muted);
	font-size: 0.8125rem;
}

.bk-booking-confirmation__details dd {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
}

.bk-booking-confirmation__ticket-section {
	margin-top: 1.75rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--bk-color-border);
}

.bk-booking-confirmation__ticket-section h3 {
	margin: 0 0 0.75rem;
	font-family: var(--bk-heading-font);
	font-size: 1.125rem;
	line-height: 1.3;
}

.bk-booking-confirmation__tickets {
	margin: 0;
	padding-left: 1.2rem;
	line-height: 1.65;
}

/* Narrow-phone pass ---------------------------------------------------
 * The booking form lives inside arbitrary theme/block containers, so keep
 * its own content within the viewport and make every interactive control
 * comfortable to tap at roughly 390px wide.
 */
.bk-booking-app,
.bk-booking-wizard,
.bk-booking-content,
.bk-booking-visit-picker,
.bk-booking-continue-panel {
	max-width: 100%;
}

.bk-booking-app,
.bk-booking-app * {
	min-width: 0;
}

.bk-booking-app {
	overflow-wrap: anywhere;
}

.bk-booking-app button,
.bk-booking-app input,
.bk-booking-app select,
.bk-booking-app textarea {
	max-width: 100%;
}

@media (max-width: 599px) {
	.bk-booking-wizard {
		padding-inline: clamp(10px, 3vw, 16px);
	}

	.bk-booking-step-title {
		font-size: clamp(1.65rem, 8vw, 2.15rem);
	}

	.bk-booking-progress {
		margin-bottom: 1rem;
	}

	.bk-booking-progress__step {
		justify-content: center;
		min-height: 40px;
	}

	.bk-booking-progress__step:not(:last-child)::after {
		margin-left: 0.25rem;
	}

	.bk-booking-visit-picker,
	.bk-booking-continue-panel {
		padding: 1rem;
	}

	.bk-booking-panel-title {
		font-size: 1.0625rem;
	}

	.bk-booking-visit-picker__grid {
		gap: 1.25rem;
	}

	.bk-booking-visit-picker .bk-booking-cal__cell {
		width: 42px;
		height: 42px;
		min-height: 42px;
	}

	.bk-booking-cal__weekday {
		font-size: 0.6875rem;
	}

	.bk-booking-cal__date {
		font-size: 0.875rem;
	}

	.bk-booking-time-option {
		min-height: 48px;
		padding-inline: 0.5rem;
	}

	.bk-booking-ticket-row {
		gap: 0.75rem;
		padding: 0.75rem;
	}

	.bk-booking-stepper__btn {
		min-width: var(--bk-tap);
	}

	.bk-booking-field__input {
		min-height: 48px;
	}

	.bk-booking-form {
		gap: 0.875rem;
	}

	.bk-booking-giftaid,
	.bk-booking-paynotice {
		padding: 0.875rem;
	}

	.bk-booking-confirmation {
		margin: 1rem auto;
		padding: 1.25rem;
	}

	.bk-booking-confirmation__details {
		grid-template-columns: 1fr;
		gap: 1.125rem;
	}
}

@media (max-width: 430px) {
	.bk-test-mode-banner {
		align-items: flex-start;
		flex-direction: column;
		margin-bottom: 1rem;
		padding: 0.875rem 1rem;
		font-size: 0.9375rem;
	}

	.bk-booking-visit-picker,
	.bk-booking-continue-panel {
		padding: 0.875rem;
	}

	.bk-booking-cal__header {
		gap: 0.375rem;
	}

	.bk-booking-cal__nav {
		width: 44px;
		height: 44px;
	}

	.bk-booking-visit-picker .bk-booking-cal__cell {
		width: 40px;
		height: 40px;
		min-height: 40px;
	}

	.bk-booking-visit-summary {
		grid-template-columns: 1fr;
		gap: 0.75rem;
		padding-top: 0.875rem;
	}

	.bk-booking-visit-summary > div,
	.bk-booking-visit-summary > div:first-child,
	.bk-booking-visit-summary__total {
		grid-column: auto;
		padding: 0;
		border-right: 0;
	}

	.bk-booking-visit-summary > div:not(:last-child) {
		padding-bottom: 0.75rem;
		border-bottom: 1px solid var(--bk-color-border);
	}

	.bk-booking-visit-summary__total {
		padding-top: 0.125rem;
	}

	.bk-booking-actions {
		gap: 0.625rem;
		margin-top: 1.25rem;
	}

	.bk-booking-btn {
		width: 100%;
		min-height: 48px;
	}
}
