/**
 * Treatwell modal styles.
 *
 * Brand-aligned: lavender / dark green tokens. Sits on top of everything.
 * Body locked when modal is open.
 */

.tt-tw-modal-open {
	overflow: hidden;
}

.tt-tw-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.tt-tw-modal[hidden] {
	display: none;
}

.tt-tw-modal__backdrop {
	position: absolute;
	inset: 0;
	background: color-mix(in srgb, var(--nv-text-color) 70%, transparent);
	backdrop-filter: blur(4px);
}

.tt-tw-modal__panel {
	position: relative;
	background: var(--nv-site-bg);
	color: var(--nv-text-color);
	border-radius: 18px;
	max-width: 540px;
	width: 100%;
	padding: 2rem 1.75rem 1.5rem;
	box-shadow: 0 30px 60px color-mix(in srgb, var(--nv-text-color) 30%, transparent);
	max-height: calc(100vh - 3rem);
	overflow-y: auto;
}

.tt-tw-modal__close {
	position: absolute;
	top: 0.5rem;
	right: 0.75rem;
	background: transparent;
	border: 0;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	color: var(--nv-text-color);
	padding: 0.25rem 0.5rem;
}

.tt-tw-modal__close:hover {
	opacity: 0.7;
}

.tt-tw-modal__title {
	margin: 0 0 1rem;
	font-family: var(--tt-heading-font, "Norwester", sans-serif);
	font-size: 1.5rem;
	color: var(--nv-text-color);
}

.tt-tw-modal__body {
	margin: 0 0 1rem;
	font-size: 1rem;
	line-height: 1.6;
}

.tt-tw-modal__body p {
	margin: 0 0 0.75rem;
}

.tt-tw-modal__body ul {
	margin: 0 0 0.75rem;
	padding-left: 1.25rem;
}

.tt-tw-modal__body li {
	margin: 0 0 0.4rem;
}

.tt-tw-modal__locations {
	background: color-mix(in srgb, var(--nv-text-color) 5%, transparent);
	padding: 1rem 1.25rem;
	border-radius: 12px;
	margin: 0 0 1rem;
}

.tt-tw-modal__pick-label {
	margin: 0 0 0.75rem;
	font-weight: 700;
}

.tt-tw-modal__pick-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.tt-tw-modal__pick-list label {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	cursor: pointer;
	padding: 0.4rem 0;
}

.tt-tw-modal__pick-list input[type="radio"] {
	margin: 0;
}

.tt-tw-modal__actions {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
}

.tt-tw-modal__actions .is-disabled,
.tt-tw-modal__actions [aria-disabled="true"] {
	pointer-events: none;
	opacity: 0.45;
}

/* Booking buttons row used by templates.
 *
 * Markup is Otter button-group (see TT_Render::booking_buttons()):
 *   .tt-booking-buttons.wp-block-themeisle-blocks-button-group.collapse-mobile.align-full-mobile.align-center-desktop
 *
 * Otter's own stylesheet handles flex direction, stacking on mobile, full-width
 * on mobile, and base alignment. We only add:
 *   1. Vertical breathing room around the group
 *   2. Left-align in non-centred hero variants (single-team-member,
 *      single-service, single-experience, single-training) so the buttons line
 *      up with left-aligned hero copy. Centred heroes (location, hubs) keep
 *      Otter's align-center-desktop.
 */
.tt-booking-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--tt-space-md);
	margin: 1.25rem 0 0.5rem;
}

.tt-booking-buttons.align-center-desktop {
	justify-content: center;
}

.tt-hero:not(.tt-hero--centered) .tt-booking-buttons {
	justify-content: flex-start;
}

@media (max-width: 600px) {
	.tt-booking-buttons {
		flex-direction: column;
		gap: var(--tt-space-sm);
	}
	.tt-booking-buttons .wp-block-button,
	.tt-booking-buttons .wp-block-themeisle-blocks-button {
		width: 100%;
	}
}
