/**
 * Booking form validation & AJAX loader styles
 */

/* Loader overlay on the total area during AJAX price calculation */
.mwb-mbfw-total-area {
	position: relative;
}

.mbfw-booking-loader {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.85);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	z-index: 10;
	min-height: 60px;
	border-radius: 6px;
	backdrop-filter: blur(2px);
}

.mbfw-booking-loader__spinner {
	width: 32px;
	height: 32px;
	border: 3px solid #e0e0e0;
	border-top-color: #2271b1;
	border-radius: 50%;
	animation: mbfw-spin 0.7s linear infinite;
}

.mbfw-booking-loader__text {
	font-size: 13px;
	color: #555;
	font-weight: 500;
	letter-spacing: 0.02em;
}

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

/* When total area is empty and loading, give it minimum space for the spinner */
.mwb-mbfw-total-area--loading:empty {
	min-height: 70px;
}

/* Fade the existing content behind the loader */
.mwb-mbfw-total-area--loading > *:not(.mbfw-booking-loader) {
	opacity: 0.4;
	transition: opacity 0.2s ease;
}

/* Ensure disabled button looks visually disabled */
.cart .single_add_to_cart_button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}
