/**
 * Restyles Choices.js so the Rental Location / Driver's Age dropdowns match
 * the plugin's own look (same orange accent + field border/radius/height as
 * the rest of .vrm-search-form) and look identical on every browser and
 * device, instead of each OS drawing its own native <select> list.
 */

.vrm-search-form .choices {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 14px;
	margin-bottom: 0;
}

/* The closed field - match the height/border/radius of the other
   .vrm-search-form fields (select/date/time inputs) exactly. */
.vrm-search-form .choices__inner {
	min-height: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    /*background-color: #FFFFFF1A;*/
    /*border: 1px solid #cccccc00;*/
    border-radius: 4px;
    padding: 0 10px;
}
.vrm-search-form .choices.is-open .choices__inner,
.vrm-search-form .choices.is-focused .choices__inner {
	/*border-color: var(--vrm-accent, #e77917);*/
	/*box-shadow: 0 0 0 3px var(--vrm-accent-tint, #fcefe3);*/
}
.vrm-search-form .choices__list--single {
	padding: 0;
}
.vrm-search-form .choices__list--single .choices__item {
	color: #000000 !important;
}

/* The little triangle indicator that opens/closes the list - recolor it
   to the same orange used everywhere else instead of Choices' default grey. */
.vrm-search-form .choices[data-type*="select-one"]::after {
	border-color: var(--vrm-accent, #e77917) transparent transparent transparent;
}
.vrm-search-form .choices[data-type*="select-one"].is-open::after {
	border-color: transparent transparent var(--vrm-accent, #e77917) transparent;
}

/* The open dropdown list */
.vrm-search-form .choices__list--dropdown,
.vrm-search-form .choices__list[aria-expanded] {
	border-color: var(--vrm-accent, #e77917);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
	overflow: hidden;
	margin-top: 4px;
}
.vrm-search-form .choices__list--dropdown .choices__item--selectable,
.vrm-search-form .choices__list[aria-expanded] .choices__item--selectable {
	padding: 10px 14px;
}
.vrm-search-form .choices__list--dropdown .choices__item--selectable.is-highlighted,
.vrm-search-form .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
	background-color: var(--vrm-accent-tint, #fcefe3);
	color: var(--vrm-text, #333);
}
.vrm-search-form .choices__list--dropdown .choices__item--selectable::after,
.vrm-search-form .choices__list[aria-expanded] .choices__item--selectable::after {
	display: none; /* Choices' default "Press to select" hint - itemSelectText is already set to '', this belt-and-braces hides any leftover pseudo-element spacing */
}

/* Mobile: full-width, slightly larger touch targets, same as the
   flatpickr calendar's mobile rules. */
@media (max-width: 420px) {
	.vrm-search-form .choices__list--dropdown .choices__item--selectable,
	.vrm-search-form .choices__list[aria-expanded] .choices__item--selectable {
		padding: 12px 14px;
	}
}

/* Pick Up/Drop Off Time dropdowns: every 15-minute slot in the day is
   listed and every one stays fully selectable - business-hours slots just
   get a highlighted background + a small leading dot so they stand out at
   a glance, they are never disabled or hidden. */
.vrm-search-form .choices__list--dropdown .choices__item--selectable.vrm-in-hours,
.vrm-search-form .choices__list[aria-expanded] .choices__item--selectable.vrm-in-hours,
.vrm-booking-form .choices__list--dropdown .choices__item--selectable.vrm-in-hours,
.vrm-booking-form .choices__list[aria-expanded] .choices__item--selectable.vrm-in-hours {
	background-color: var(--vrm-accent-tint, #fcefe3);
	font-weight: 600;
}
.vrm-search-form .choices__list--dropdown .choices__item--selectable.vrm-in-hours::before,
.vrm-search-form .choices__list[aria-expanded] .choices__item--selectable.vrm-in-hours::before,
.vrm-booking-form .choices__list--dropdown .choices__item--selectable.vrm-in-hours::before,
.vrm-booking-form .choices__list[aria-expanded] .choices__item--selectable.vrm-in-hours::before {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--vrm-accent, #e77917);
	margin-right: 8px;
	vertical-align: middle;
}
/* Highlighted + keyboard/mouse-highlighted at the same time - keep the
   accent visible instead of letting the generic hover grey win. */
.vrm-search-form .choices__list--dropdown .choices__item--selectable.vrm-in-hours.is-highlighted,
.vrm-search-form .choices__list[aria-expanded] .choices__item--selectable.vrm-in-hours.is-highlighted,
.vrm-booking-form .choices__list--dropdown .choices__item--selectable.vrm-in-hours.is-highlighted,
.vrm-booking-form .choices__list[aria-expanded] .choices__item--selectable.vrm-in-hours.is-highlighted {
	background-color: var(--vrm-accent, #e77917);
	color: #fff;
}
