/* Size the booking layout from its actual card width, not the viewport. */
body #content :is(.vrcdivsearchmodule, .vrcdivsearch) {
	container: trv-booking / inline-size;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}
body #content :is(.vrcdivsearchmodule, .vrcdivsearch) form {
	min-width: 0;
	max-width: 100%;
}
body #content :is(.vrc-searchmod-section-pickup, .vrc-searchf-section-locations, .vrc-searchmod-section-datetimes, .vrc-searchf-section-datetimes) {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 20px !important;
	width: 100% !important;
	min-width: 0;
}
body #content :is(.vrc-searchmod-section-datetimes, .vrc-searchf-section-datetimes) .vrcsfentrycont {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) !important;
	gap: 16px !important;
	align-content: start;
}
body #content :is(.vrcdivsearchmodule, .vrcdivsearch) :is(.vrcsfentrycont, .vrcsfentrylabsel, .vrcsfentrytime, .vrcsfentryselect) {
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100%;
	margin-inline: 0 !important;
	box-sizing: border-box;
}
body #content :is(.vrcdivsearchmodule, .vrcdivsearch) .vrc-sf-time-container {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) !important;
	align-items: center;
	gap: 8px !important;
	width: 100% !important;
	min-width: 0;
	direction: ltr;
}
body #content :is(.vrcdivsearchmodule, .vrcdivsearch) .vrc-sf-time-container > span:not(.vrctimesep) {
	display: block;
	float: none;
	width: 100% !important;
	min-width: 0 !important;
}
body #content :is(.vrcdivsearchmodule, .vrcdivsearch) .vrctimesep {
	width: 16px !important;
	padding: 0 !important;
	color: var(--trv-muted);
	text-align: center;
}
body #content :is(.vrcdivsearchmodule, .vrcdivsearch) .trv-select-trigger {
	min-height: 50px;
	font-size: 16px !important;
}
body #content :is(.vrcdivsearchmodule, .vrcdivsearch) .vrc-sf-time-container .trv-select-trigger {
	padding-inline: 14px !important;
	gap: 8px !important;
	font-variant-numeric: tabular-nums;
}
body #content :is(.vrcdivsearchmodule, .vrcdivsearch) .vrc-sf-time-container .trv-select-value {
	min-width: 2ch;
	flex: 1 0 2ch;
	overflow: visible;
	text-overflow: clip;
}
body #content :is(.vrcdivsearchmodule, .vrcdivsearch) .trv-select-option { min-height: 44px; font-size: 16px; }
body #content :is(.vrcdivsearchmodule, .vrcdivsearch) .trv-select-list { max-height: min(264px, 40dvh); }
body #content :is(.vrcdivsearchmodule, .vrcdivsearch) input:not([type="hidden"]):not([type="submit"]) { font-size: 16px !important; }
body #content :is(.vrcdivsearchmodule, .vrcdivsearch) label { display: block; margin-bottom: 8px; line-height: 1.4; }
body.home .elementor-197 .elementor-element-283bda0 { overflow: visible; }
body.home .elementor-197 .elementor-element-283bda0 .vrcdivsearchmodule { padding: clamp(16px, 3vw, 26px); }
@container trv-booking (max-width: 560px) {
	body #content :is(.vrc-searchmod-section-pickup, .vrc-searchf-section-locations, .vrc-searchmod-section-datetimes, .vrc-searchf-section-datetimes) {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 18px !important;
	}
	body #content :is(.vrc-searchmod-section-datetimes, .vrc-searchf-section-datetimes) .vrcsfentrycont + .vrcsfentrycont {
		padding-top: 18px;
		border-top: 1px solid var(--trv-border);
	}
}
@container trv-booking (min-width: 960px) {
	body #content :is(.vrc-searchmod-section-datetimes, .vrc-searchf-section-datetimes) .vrcsfentrycont {
		grid-template-columns: minmax(0, 1fr) minmax(180px, 1fr) !important;
	}
}
@media (max-width: 767px) {
	/* Leave the booking controls clear of the floating invitation while focused. */
	body:has(#content :is(.vrcdivsearchmodule, .vrcdivsearch, .wpcf7) :focus-within) .trv-whatsapp-prompt { display: none; }
}
/* Inline-size containment needs an explicit size for VikRentCar's flex child. */
body #content .vrcdivsearch > .vrcdivsearch-inner,
body #content .vrcdivsearch .vrcdivsearch-inner > form,
body #content .vrcdivsearch > form {
	width: 100% !important;
	min-width: 0 !important;
	flex: 1 1 100%;
	box-sizing: border-box;
}
html[data-theme="dark"] body #content :is(.vrcdivsearchmodule, .vrcdivsearch) .trv-select-trigger:is(:hover, :focus, :focus-visible) {
	background-color: var(--trv-surface-raised) !important;
	color: var(--trv-text) !important;
	border-color: var(--trv-link) !important;
}

/* Accueil uses a single accessible time picker rather than two narrow dropdowns. */
body.home #content .vrcdivsearchmodule .vrc-sf-time-container.trv-time-enhanced {
	display: block !important;
}
body.home #content .vrcdivsearchmodule .trv-time-enhanced > span { display: none !important; }
body.home #content .vrcdivsearchmodule input.trv-booking-time {
	display: block;
	width: 100% !important;
	min-width: 0;
	height: 52px !important;
	min-height: 52px;
	padding: 12px 14px !important;
	border: 1px solid var(--trv-border) !important;
	border-radius: 11px;
	background: var(--trv-surface) !important;
	color: var(--trv-text) !important;
	font: 500 17px/1.4 "Jost", Arial, sans-serif;
	font-variant-numeric: tabular-nums;
	box-sizing: border-box;
	color-scheme: light;
}
html[data-theme="dark"] body.home #content .vrcdivsearchmodule input.trv-booking-time { color-scheme: dark; }
body.home #content .vrcdivsearchmodule input.trv-booking-time:focus-visible { outline: 3px solid var(--trv-focus); outline-offset: 2px; }
@media (max-width: 767px) {
	body.home .elementor-197 .elementor-element-283bda0 .vrcdivsearchmodule { padding: 18px 16px; }
	body.home .elementor-197 .elementor-element-283bda0 { margin-bottom: 28px !important; }
}

/* Elementor's widget wrapper must shrink to the actual form on phones. */
@media (max-width: 767px) {
	body.home .elementor-197 :is(.elementor-element-283bda0, .elementor-element-f160631) {
		height: auto !important;
		min-height: 0 !important;
		flex: 0 0 auto !important;
	}
	body.home .elementor-197 .elementor-element-f160631 > .elementor-widget-container {
		height: auto !important;
		min-height: 0 !important;
		padding: 0 !important;
		margin: 0 !important;
	}
	body.home .elementor-197 .elementor-element-283bda0 { margin-bottom: 0 !important; }
	body.home .elementor-197 .elementor-element-4855f78 { padding-top: 24px !important; }
}
@media (max-width: 767px) {
	body.home .elementor-197 .elementor-element-283bda0 { display: block !important; }
	body.home .elementor-197 .elementor-element-f160631 { display: block !important; height: fit-content !important; }
}
