/**
 * Booking Panel styles.
 *
 * Kept dependency-free (no build step, no framework) so this plugin can
 * drop into any theme. Override any of this from a theme/child-theme
 * stylesheet loaded after this one if needed.
 */

html {
	scrollbar-gutter: stable;
}

body.booking-panel-open {
	overflow: hidden;
}

.booking-panel-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 99998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

.booking-panel-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

.booking-panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	width: 100%;
	max-width: var(--booking-panel-width, 650px);
	background: #fff;
	box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
	transform: translateX(100%);
	transition: transform 0.5s ease-in-out;
}

.booking-panel.is-open {
	transform: translateX(0);
}

.booking-panel__close {
	position: absolute;
	top: 0.8rem;
	left: 1.5rem;
	z-index: 1;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.5s ease-in-out;
}

.booking-panel__close:hover,
.booking-panel__close:focus-visible {
	transform: scale(1.25);
}

.booking-panel__close svg {
	width: 12px;
	height: 12px;
}

.booking-panel__close path {
	stroke: #fff;
}

.booking-panel__frame,
.booking-panel__iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.booking-panel__loading {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	background: #fff;
	color: #111;
	font-family: system-ui, sans-serif;
	font-size: 0.875rem;
	letter-spacing: 0.04em;
}

.booking-panel__loading[hidden] {
	display: none;
}

.booking-panel__spinner {
	width: 1.75rem;
	height: 1.75rem;
	border: 2px solid #ddd;
	border-top-color: #111;
	border-radius: 50%;
	animation: booking-panel-spin 0.7s linear infinite;
}

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