/**
 * La Diva page-layout adapter for supported IZI booking pages.
 *
 * This file intentionally contains only theme-layout isolation. Booking
 * components remain in ../izi-booking.css, and every override is restricted
 * to the body class added by BookingPage.
 */

/* Remove only the real CMSMasters sidebar from booking-page layout. */
body.bn-izi-page.cmsmasters-content-layout-r-sidebar .cmsmasters-sidebar {
	display: none !important;
}

/* The CMSMasters layout otherwise keeps a flex allocation for the sidebar. */
body.bn-izi-page.cmsmasters-content-layout-r-sidebar .cmsmasters-content-wrap {
	display: block !important;
}

body.bn-izi-page.cmsmasters-content-layout-r-sidebar .cmsmasters-content {
	width: 100% !important;
	max-width: none !important;
	flex: 0 0 100% !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
}

/* Chatwoot is outside shortcode output; suppress only the rendered booking flow. */
body.bn-izi-page.bn-izi-has-booking-flow #cw-bubble-holder {
	display: none !important;
}

/* Restore the vendor Bootstrap grid only for the booking form's primary row. */
@media (min-width: 992px) {
	body.bn-izi-page .bn-izi .row:has(> .col-md-6.col-md-offset-3) {
		display: block;
	}

	body.bn-izi-page .bn-izi .row > .col-md-6.col-md-offset-3 {
		float: left;
		width: 66.66667%;
		max-width: 100%;
		flex: none;
		margin-right: 0;
		margin-left: 16.66667%;
	}
}

/* Tablet and mobile return the primary booking column to its full width. */
@media (max-width: 991.98px) {
	body.bn-izi-page .bn-izi .row:has(> .col-md-6.col-md-offset-3) {
		display: block;
	}

	body.bn-izi-page .bn-izi .row > .col-md-6.col-md-offset-3 {
		float: none;
		width: 100%;
		max-width: 100%;
		flex: none;
		margin-right: 0;
		margin-left: 0;
		padding-right: max(15px, env(safe-area-inset-right));
		padding-left: max(15px, env(safe-area-inset-left));
	}
}
