.tbae-booking {
	--tbae-ink: #17233b;
	--tbae-muted: #64748b;
	--tbae-line: #dbe3ef;
	--tbae-soft: #f5f8fc;
	--tbae-blue: #245bdb;
	--tbae-blue-dark: #1746b3;
	--tbae-cyan: #4dd0f5;
	--tbae-orange: #f39200;
	--tbae-selector-blue: var(--e-global-color-primary, #1368de);
	margin: 1.5em 0;
	color: var(--tbae-ink);
	font-size: 16px;
	position: relative;
	z-index: 2;
}

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

.tbae-ticket-picker,
.tbae-participant,
.tbae-booking-footer {
	border: 1px solid var(--tbae-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(23, 35, 59, .07);
}

.tbae-booking-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid var(--tbae-line);
	background: linear-gradient(135deg, var(--tbae-blue), #6944e8);
	color: #fff;
	border-radius: 13px 13px 0 0;
}

.tbae-booking-section-header span {
	display: grid;
	gap: 2px;
}

.tbae-booking-section-header strong {
	font-size: 1.1em;
}

.tbae-booking-section-header small {
	color: rgba(255, 255, 255, .8);
}

.tbae-ticket-options {
	padding: 0 20px;
}

.tbae-ticket-group {
	border-bottom: 1px solid var(--tbae-line);
}

.tbae-ticket-group:last-child {
	border-bottom: 0;
}

.tbae-ticket-option {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 18px;
	min-height: 82px;
	padding: 14px 0;
	scroll-margin-top: 56px;
}

.tbae-ticket-copy {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.tbae-ticket-copy strong {
	font-size: 1em;
}

.tbae-ticket-copy small {
	color: var(--tbae-muted);
	font-size: .86em;
	line-height: 1.35;
}

.tbae-ticket-price {
	grid-column: 3;
	min-width: 78px;
	color: var(--tbae-ink);
	font-weight: 700;
	text-align: right;
}

.tbae-ticket-price .woocommerce-Price-amount {
	color: inherit;
}

.tbae-ticket-stepper {
	grid-column: 2;
	grid-row: 1;
	display: grid;
	grid-template-columns: 44px 46px 44px;
	align-items: center;
	gap: 7px;
}

.tbae-ticket-description {
	margin-top: 2px;
}

.tbae-ticket-availability {
	color: #b42318;
	font-size: .8em;
	font-style: normal;
	font-weight: 700;
}

.tbae-ticket-group.is-sold-out .tbae-ticket-option {
	opacity: .65;
}

.tbae-booking .tbae-ticket-stepper button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: var(--tbae-cyan);
	color: #fff;
	font-family: Arial, sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 0;
	text-align: center;
	vertical-align: middle;
	cursor: pointer;
	transform: scale(1);
	transform-origin: center;
	transition:
		transform .4s cubic-bezier(.25, 1.5, .5, 1.5),
		background-color .25s ease,
		box-shadow .25s ease;
}

.tbae-booking .tbae-ticket-stepper button:hover:not(:disabled) {
	background: var(--tbae-orange);
	box-shadow: 0 7px 16px rgba(23, 35, 59, .14);
	transform: scale(.92);
}

.tbae-booking .tbae-ticket-stepper button:focus-visible {
	outline: 3px solid rgba(19, 104, 222, .24);
	outline-offset: 3px;
}

.tbae-booking .tbae-ticket-stepper button:active:not(:disabled) {
	transform: scale(.86);
}

.tbae-booking .tbae-ticket-stepper button:disabled {
	opacity: .35;
	transform: none;
	cursor: not-allowed;
}

.tbae-ticket-stepper output {
	display: grid;
	place-items: center;
	height: 44px;
	border-radius: 7px;
	background: var(--tbae-soft);
	font-variant-numeric: tabular-nums;
}

.tbae-participants {
	display: grid;
	gap: 16px;
	margin-top: 18px;
}

.tbae-ticket-participants {
	display: grid;
	gap: 12px;
}

.tbae-ticket-participants:not(:empty) {
	padding: 0 0 18px;
}

.tbae-ticket-participants .tbae-participant {
	box-shadow: none;
}

.tbae-participant {
	box-sizing: border-box;
	min-width: 0;
	margin: 0;
	padding: 0 22px 22px;
	overflow: hidden;
	transform-origin: top center;
}

.tbae-participant.is-animating,
.tbae-participant.is-closing {
	overflow: hidden;
	will-change: height, opacity, transform;
}

.tbae-participant-header {
	display: flex;
	align-items: center;
	gap: 10px;
	width: calc(100% + 44px);
	max-width: none;
	margin: 0 -22px 20px;
	padding: 15px 20px;
	border: 0;
	border-bottom: 1px solid var(--tbae-line);
	background: var(--tbae-soft);
	border-radius: 0;
	font-weight: 700;
}

.tbae-child-number {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	order: 2;
}

.tbae-participant-ticket {
	order: 3;
	margin-left: auto;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--event-color, var(--tbae-blue));
	color: #fff;
	font-size: .82em;
	font-weight: 700;
}

.tbae-booking .tbae-remove-participant {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	order: 1;
	width: 34px;
	height: 34px;
	min-width: 34px;
	min-height: 34px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--tbae-line);
	color: var(--tbae-muted);
	font-family: Arial, sans-serif;
	font-size: 21px;
	font-weight: 500;
	line-height: 0;
	text-align: center;
	cursor: pointer;
	transform: scale(1);
	transform-origin: center;
	transition:
		transform .4s cubic-bezier(.25, 1.5, .5, 1.5),
		border-color .25s ease,
		color .25s ease,
		background-color .25s ease,
		opacity .25s ease;
}

.tbae-booking .tbae-remove-participant:hover {
	background: #fff;
	color: var(--tbae-muted);
	box-shadow: none;
	transform: scale(.94);
}

.tbae-booking .tbae-remove-participant:focus-visible {
	outline: 3px solid rgba(19, 104, 222, .24);
	outline-offset: 3px;
}

.tbae-booking .tbae-remove-participant:active {
	transform: scale(.9);
}

.tbae-core-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 16px;
	margin-bottom: 20px;
}

.tbae-form-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 16px;
}

.tbae-form-fields .tbae-field-textarea {
	grid-column: 1 / -1;
}

.tbae-field {
	min-width: 0;
	margin: 0 0 16px;
}

.tbae-core-fields .tbae-field {
	margin: 0;
}

.tbae-field > label,
.tbae-field-label {
	display: block;
	margin-bottom: 6px;
	color: #334155;
	font-size: .88em;
	font-weight: 650;
}

.tbae-field input[type="text"],
.tbae-field input[type="tel"],
.tbae-field input[type="date"],
.tbae-field select,
.tbae-field textarea {
	width: 100%;
	max-width: none;
	min-height: 46px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	color: var(--tbae-ink);
	box-shadow: none;
	font-family: inherit;
	font-size: 18px;
	line-height: 1.35;
}

.tbae-field textarea {
	min-height: 108px;
	resize: vertical;
}

.tbae-field input:focus,
.tbae-field select:focus,
.tbae-field textarea:focus {
	border-color: var(--tbae-blue);
	box-shadow: 0 0 0 3px rgba(36, 91, 219, .13);
	outline: 0;
}

.tbae-field.has-error input,
.tbae-field.has-error select,
.tbae-field.has-error textarea {
	border-color: #b42318;
	box-shadow: 0 0 0 3px rgba(180, 35, 24, .1);
}

.tbae-field-error {
	display: block;
	margin-top: 7px;
	color: #b42318;
	font-size: .84em;
	font-weight: 650;
	line-height: 1.4;
}

.tbae-field .required {
	color: #c4320a;
}

.tbae-day-picker {
	padding-top: 18px;
	border-top: 1px solid var(--tbae-line);
}

.tbae-day-instruction {
	display: block;
	margin: -2px 0 10px;
	color: var(--tbae-muted);
}

.tbae-day-progress {
	color: var(--tbae-selector-blue);
	font-weight: 600;
}

.tbae-days {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
	gap: 9px;
}

.tbae-day {
	position: relative;
	display: grid !important;
	gap: 2px;
	min-height: 74px;
	margin: 0 !important;
	padding: 12px 10px;
	border: 1px solid var(--tbae-line);
	border-radius: 9px;
	background: #fff;
	font-weight: 400 !important;
	text-align: center;
	cursor: pointer;
}

.tbae-day input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.tbae-day-name {
	color: var(--tbae-ink);
	font-size: .86em;
	font-weight: 700;
}

.tbae-day-date {
	color: var(--tbae-muted);
	font-size: .82em;
}

.tbae-day:has(input:checked) {
	border-color: var(--tbae-selector-blue);
	background: #edf3ff;
	box-shadow: inset 0 0 0 1px var(--tbae-selector-blue);
}

.tbae-day:has(input:focus-visible) {
	outline: 3px solid color-mix(in srgb, var(--tbae-selector-blue) 20%, transparent);
	outline-offset: 2px;
}

.tbae-day-soldout {
	background: #f8fafc;
	opacity: .55;
	cursor: not-allowed;
}

.tbae-left {
	color: #b42318;
	font-size: .72em;
	font-style: normal;
	font-weight: 700;
}

.tbae-day-error {
	display: block;
	min-height: 20px;
	margin-top: 8px;
	color: #b42318;
	font-size: .84em;
	font-weight: 600;
}

.tbae-day-error.is-info {
	color: var(--tbae-selector-blue);
}

.tbae-field-heading {
	margin: 24px 0 12px;
	padding-top: 18px;
	border-top: 1px solid var(--tbae-line);
}

.tbae-contact {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	max-width: none;
	margin-bottom: 10px;
}

.tbae-stream-options {
	display: grid;
	gap: 10px;
	max-width: none;
}

.tbae-stream-option {
	display: flex !important;
	align-items: flex-start;
	gap: 10px;
	padding: 14px;
	border: 1px solid var(--tbae-line);
	border-radius: 9px;
	cursor: pointer;
	font-weight: 400 !important;
}

.tbae-stream-option:has(input:checked) {
	border-color: var(--tbae-blue);
	background: #edf3ff;
}

.tbae-stream-option > span {
	display: grid;
	gap: 3px;
}

.tbae-stream-details,
.tbae-stream-guidance {
	display: block;
	font-size: .88em;
}

.tbae-stream-details {
	color: var(--tbae-muted);
}

.tbae-stream-soldout {
	opacity: .55;
	cursor: not-allowed;
}

.tbae-stream-left {
	color: #b42318;
	font-size: .84em;
	font-style: normal;
	font-weight: 700;
}

.tbae-add-child-row {
	margin: 14px 0;
}

.tbae-booking-footer {
	margin-top: 18px;
	padding: 20px;
}

.tbae-consents {
	display: grid;
	gap: 9px;
	padding-bottom: 18px;
}

.tbae-consents label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	color: #475569;
	font-size: .86em;
	font-weight: 400;
}

.tbae-consents input {
	flex: 0 0 auto;
	margin-top: 3px;
}

.tbae-consent-copy {
	flex: 1;
	min-width: 0;
	line-height: 1.3;
}

.tbae-checkout-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--tbae-line);
}

.tbae-total {
	display: grid;
	gap: 2px;
	margin: 0;
	color: var(--tbae-muted);
	font-size: .8em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.tbae-total-amount {
	color: var(--tbae-ink);
	font-size: 1.65em;
	letter-spacing: 0;
}

.tbae-booking button.tbae-submit.single_add_to_cart_button {
	min-height: 48px;
	margin: 0;
	padding: 12px 22px;
	border: 0;
	border-radius: 8px;
	background: var(--tbae-orange) !important;
	color: #fff !important;
	font-weight: 700;
}

.tbae-booking button.tbae-submit.single_add_to_cart_button:hover,
.tbae-booking button.tbae-submit.single_add_to_cart_button:focus-visible {
	background: #d98000 !important;
	color: #fff !important;
}

.tbae-low,
.tbae-soldout,
.tbae-closed {
	padding: 12px 14px;
	border-radius: 8px;
	background: #fff1f0;
	color: #b42318;
	font-weight: 650;
}

@media (max-width: 620px) {
	.tbae-ticket-options {
		padding: 0 14px;
	}

	.tbae-ticket-option {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 8px 12px;
		padding: 14px 0;
	}

	.tbae-ticket-price {
		grid-column: 2;
		grid-row: 1;
	}

	.tbae-ticket-stepper {
		grid-column: 1 / -1;
		grid-row: auto;
		justify-content: end;
	}

	.tbae-participant {
		padding-right: 14px;
		padding-left: 14px;
	}

	.tbae-participant-header {
		width: calc(100% + 28px);
		margin-right: -14px;
		margin-left: -14px;
		padding: 13px 14px;
	}

	.tbae-core-fields,
	.tbae-form-fields,
	.tbae-contact {
		grid-template-columns: 1fr;
	}

	.tbae-form-fields .tbae-field-textarea {
		grid-column: auto;
	}

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

	.tbae-checkout-bar {
		align-items: stretch;
		flex-direction: column;
	}

	.tbae-booking .tbae-submit {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tbae-booking *,
	.tbae-booking *::before,
	.tbae-booking *::after {
		scroll-behavior: auto !important;
	}
}

/* What's on grid */
.tbae-filters { display: flex; gap: .75em; margin: 0 0 1.5em; flex-wrap: wrap; }
.tbae-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5em; }
.tbae-card { display: block; border: 1px solid #e3e3e3; border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; background: #fff; transition: box-shadow .15s ease; }
.tbae-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.1); }
.tbae-card img { width: 100%; height: 170px; object-fit: cover; display: block; }
.tbae-card-body { display: block; padding: 1em 1.1em 1.2em; }
.tbae-badge { display: inline-block; background: #2271b1; color: #fff; font-size: .75em; border-radius: 4px; padding: .15em .6em; margin-bottom: .5em; }
.tbae-card-dates { display: block; font-size: .85em; color: #666; margin-bottom: .25em; }
.tbae-card-title { display: block; font-weight: 700; font-size: 1.05em; margin-bottom: .6em; }
.tbae-card-cta { display: inline-block; font-weight: 600; color: #2271b1; }

/* Elementor Whats On taxonomy filters. */
.filter-group {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 12px;
}

.filter-group .tbae-filter-dropdown {
	position: relative;
	flex: 1 1 260px;
	max-width: 420px;
	min-width: min(260px, 100%);
}

.tbae-filter-trigger,
.tbae-filter-option,
.tbae-filter-pill,
.tbae-clear-filters {
	font: inherit;
}

.filter-group .tbae-filter-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	min-height: 56px;
	padding: 14px 44px 14px 18px;
	border: 2px solid var(--e-global-color-primary, #1368de);
	border-radius: 8px;
	background: #fff;
	color: var(--e-global-color-primary, #1368de);
	box-shadow: none;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.25;
	text-align: left;
	cursor: pointer;
	appearance: none;
}

.filter-group .tbae-filter-dropdown .tbae-filter-trigger:hover {
	border-color: var(--e-global-color-primary, #1368de);
	background: #f7faff;
	color: var(--e-global-color-primary, #1368de);
	box-shadow: none;
	outline: 0;
}

.filter-group .tbae-filter-dropdown .tbae-filter-trigger:focus,
.filter-group .tbae-filter-dropdown .tbae-filter-trigger[aria-expanded="true"] {
	border-color: var(--e-global-color-primary, #1368de);
	background: #fff;
	color: var(--e-global-color-primary, #1368de);
	box-shadow: none;
	outline: 0;
}

.filter-group .tbae-filter-dropdown .tbae-filter-trigger:focus-visible {
	outline: 2px solid rgba(19, 104, 222, .3);
	outline-offset: 2px;
}

.filter-group .tbae-filter-dropdown .tbae-filter-trigger::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 18px;
	width: 8px;
	height: 8px;
	border: 0;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	background: none;
	background-image: none;
	transform: translateY(-65%) rotate(45deg);
	transition: transform .2s ease;
	pointer-events: none;
}

.filter-group .tbae-filter-dropdown .tbae-filter-trigger[aria-expanded="true"]::after {
	transform: translateY(-15%) rotate(225deg);
}

.filter-group .tbae-filter-menu li:hover,
.filter-group .tbae-filter-menu li:focus-within {
	background: transparent !important;
}

.filter-group .tbae-filter-menu .tbae-filter-option:hover,
.filter-group .tbae-filter-menu .tbae-filter-option:focus,
.filter-group .tbae-filter-menu .tbae-filter-option:focus-visible,
.filter-group .tbae-filter-menu li:hover .tbae-filter-option {
	background: #f5f8fc !important;
	color: var(--e-global-color-primary, #1368de) !important;
	outline: 0;
}

.filter-group .tbae-filter-menu {
	position: absolute;
	z-index: 1000;
	top: calc(100% + 8px);
	left: 0;
	width: 100%;
	min-width: 100%;
	margin: 0;
	padding: 8px;
	list-style: none;
	border: 1px solid #dbe3ef;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(23, 35, 59, .14);
	overflow: hidden;
}

.tbae-filter-menu[hidden] {
	display: none;
}

.tbae-filter-menu.open {
	display: block;
}

.filter-group .tbae-filter-menu li {
	display: block;
	margin: 0;
	padding: 0;
	color: inherit;
	font-size: inherit;
	line-height: normal;
}

.filter-group .tbae-filter-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 0 !important;
	border-radius: 5px;
	background: transparent;
	color: #17233b;
	box-shadow: none;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
}

.filter-group .tbae-filter-option:hover,
.filter-group .tbae-filter-option:focus-visible {
	background: #f5f8fc;
	color: var(--e-global-color-primary, #1368de);
	outline: 0;
}

.filter-group .tbae-filter-option.is-active {
	background: #edf4fe !important;
	color: var(--e-global-color-primary, #1368de) !important;
	font-weight: 600;
}

.tbae-filter-option.is-active::after {
	content: "✓";
}

.tbae-active-filters-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
}

.tbae-active-filters-bar[hidden] {
	display: none;
}

.tbae-filter-pill,
.tbae-clear-filters {
	min-height: 36px;
	padding: 7px 12px;
	border-radius: 999px;
	cursor: pointer;
}

.tbae-filter-pill {
	border: 1px solid #dbe3ef;
	background: #fff;
	color: #17233b;
}

.tbae-filter-pill::after {
	content: "×";
	margin-left: 8px;
}

.tbae-clear-filters {
	border: 0;
	background: transparent;
	color: var(--e-global-color-primary, #1368de);
	text-decoration: underline;
}

@media (max-width: 768px) {
	.filter-group .tbae-filter-dropdown {
		flex-basis: 100%;
		max-width: none;
		min-width: 0;
	}
}

@media print {
	#adminmenumain, #wpadminbar, .tbae-filters, form > .button { display: none !important; }
}
