/*
 * Booking modal loading shell (assets/js/booking-registry.js, phase 2 2026-12-04).
 * Shown only while a guest's modal markup is fetched (or when it fails), above the
 * page like the drawer's own overlay. Plain CSS, no build. Tokens only.
 */
.booking-modal-lazy {
	display: none;
}

.zd-booking-shell {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.zd-booking-shell__overlay {
	position: absolute;
	inset: 0;
	background-color: color-mix(in srgb, var(--wp--preset--color--black) 70%, transparent);
	backdrop-filter: blur(5px);
	cursor: pointer;
}

.zd-booking-shell__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	max-width: 420px;
	padding: 32px 24px;
	border-radius: 16px;
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary);
	box-shadow: var(--wp--preset--shadow--overlay);
	text-align: center;
	outline: none;
}

.zd-booking-shell__text {
	margin: 0;
}

.zd-booking-shell__spinner {
	width: 32px;
	height: 32px;
	border: 3px solid var(--wp--preset--color--bg-color-light);
	border-top-color: var(--wp--preset--color--secondary);
	border-radius: 50%;
	animation: zd-booking-shell-spin 0.8s linear infinite;
}

.zd-booking-shell__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.zd-booking-shell__button {
	display: inline-flex;
	align-items: center;
	padding: 12px 20px;
	border: 1px solid var(--wp--preset--color--secondary);
	border-radius: 999px;
	background-color: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--primary);
	font: inherit;
	text-decoration: none;
	cursor: pointer;
}

.zd-booking-shell__button--ghost {
	background-color: transparent;
	border-color: var(--wp--preset--color--footer-border-color);
}

@keyframes zd-booking-shell-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.zd-booking-shell__spinner {
		animation-duration: 2.4s;
	}
}
