/* ==========================================================================
   Homepage lead popup — reuses .booking-card (booking.css) inside a
   centered, fading/scaling modal overlay.
   ========================================================================== */

.booking-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(20, 16, 15, 0.72);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.booking-popup-overlay.open {
	opacity: 1;
	visibility: visible;
}

.booking-popup-modal {
	position: relative;
	width: 100%;
	max-width: 1000px;
	transform: translateY(28px) scale(0.97);
	transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.booking-popup-overlay.open .booking-popup-modal {
	transform: translateY(0) scale(1);
}

/* .booking-card carries its own responsive max-width rules meant for the
   standalone, flex-centered /booking/ page (460px card below 860px, a
   fullscreen 100vh takeover below 480px). Inside the popup the modal
   supplies its own width/centering, so override both back out here —
   otherwise the card shrinks to those page-specific caps and leaves an
   empty gap inside the wider modal box. */
.booking-popup-modal .booking-card {
	max-width: none;
	width: 100%;
	max-height: 92vh;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(225, 29, 29, 0.35) transparent;
}

.booking-popup-modal .booking-card::-webkit-scrollbar {
	width: 6px;
}

.booking-popup-modal .booking-card::-webkit-scrollbar-track {
	background: transparent;
}

.booking-popup-modal .booking-card::-webkit-scrollbar-thumb {
	background: rgba(225, 29, 29, 0.35);
	border-radius: 999px;
}

.booking-popup-modal .booking-card::-webkit-scrollbar-thumb:hover {
	background: rgba(225, 29, 29, 0.6);
}

/* !important: the theme injects a global inline "button { padding: 20px 40px;
   border-radius: 50px; ... }" customizer rule that otherwise wins this tie
   (same issue as the occasion-dropdown hover/padding fixes in booking.css). */
.booking-popup-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 10;
	width: 38px !important;
	height: 38px !important;
	min-width: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.92) !important;
	color: #14100f !important;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
	transition: background 0.2s ease, color 0.2s ease;
}

.booking-popup-close:hover,
.booking-popup-close:focus {
	background: #e11d1d !important;
	color: #fff !important;
}

html.booking-popup-open,
body.booking-popup-open {
	overflow: hidden;
	height: 100%;
}

@media (max-width: 480px) {
	.booking-popup-overlay {
		padding: 14px;
	}

	.booking-popup-modal .booking-card {
		max-width: 100%;
		min-height: 0;
		max-height: 90vh;
		border-radius: 20px;
	}
}
