/*
 * Home search bar — date & time fields.
 * Everything is scoped to #searchForm so no other form on the site changes.
 * Colours come from the theme options: primary #ffa633, text #201F1D.
 */

/* ── Fields: match the location selects next to them ─────────────────────── */

#searchForm .date-widget .group-img,
#searchForm .time-widget .group-img {
	position: relative;
}

#searchForm .date-widget .form-control {
	height: 43px;
	min-height: 43px;
	padding: 0 12px 0 38px;
	border: 1px solid #f4f4f4;
	border-radius: 5px;
	background: #fcfbfb;
	color: #201f1d;
	font-size: 15px;
	cursor: pointer;
	/* theme-default.css:190 forces a permanent focus ring on every input */
	outline: none !important;
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

#searchForm .date-widget .form-control::placeholder {
	color: #8a8a8a;
	opacity: 1;
}

#searchForm .date-widget .form-control:hover {
	border-color: #e3e3e3;
}

/* Keyboard and click focus stay visible, just not black and permanent. */
#searchForm .date-widget .form-control:focus,
#searchForm .date-widget .form-control:focus-visible {
	border-color: #ffa633;
	box-shadow: 0 0 0 3px rgba(255, 166, 51, .18);
}

/*
 * Icons. The theme positions the <i> at a fixed top: 15px for its 49px field
 * (style.css:3032); centre it instead for the 43px one, keep it above select2,
 * and let clicks pass through to the field underneath.
 */
/*
 * Only the <i> is made click-through. Never target `.group-img > span`: the
 * select2 container is ALSO a span directly inside .group-img, and making it
 * click-through means the time list can no longer be opened by a click.
 */
#searchForm .date-widget .group-img i,
#searchForm .time-widget .group-img i {
	top: 50%;
	left: 14px;
	transform: translateY(-50%);
	line-height: 1;
	z-index: 2;
	color: #8a8a8a;
	pointer-events: none;
}

/* The theme gives the select2 container z-index: 99, which buries the clock. */
#searchForm .time-widget .group-img i {
	z-index: 100;
}

/* Time slots: select2, same look as the location fields, plus the clock. */
#searchForm .time-widget .select2-container .select2-selection--single {
	height: 43px;
	border: 1px solid #f4f4f4;
	border-radius: 5px;
	background: #fcfbfb;
	outline: none;
}

#searchForm .time-widget .select2-container .select2-selection--single .select2-selection__rendered {
	line-height: 41px;
	padding-left: 38px;
	color: #201f1d;
}

#searchForm .time-widget .select2-container .select2-selection--single .select2-selection__placeholder,
#searchForm .time-widget .select2-container .select2-selection__rendered[title="--:--"] {
	color: #8a8a8a;
}

#searchForm .time-widget .select2-container--open .select2-selection--single,
#searchForm .time-widget .select2-container--focus .select2-selection--single {
	border-color: #ffa633;
	box-shadow: 0 0 0 3px rgba(255, 166, 51, .18);
}

.bookicar-time-dropdown .select2-results__options {
	max-height: 260px;
}

.bookicar-time-dropdown .select2-results__option[aria-disabled="true"] {
	color: #c4c4c4;
	text-decoration: line-through;
}

.bookicar-time-dropdown .select2-results__option--highlighted[aria-selected] {
	background: #ffa633 !important;
	color: #fff !important;
}

/* ── Calendar ────────────────────────────────────────────────────────────── */

#searchForm .bootstrap-datetimepicker-widget.dropdown-menu {
	z-index: 1060;
	width: 296px;
	margin-top: 6px;
	padding: 12px;
	border: 0;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 14px 36px rgba(32, 31, 29, .16);
}

/* The little arrow the widget draws points at the field; not needed. */
#searchForm .bootstrap-datetimepicker-widget.dropdown-menu:before,
#searchForm .bootstrap-datetimepicker-widget.dropdown-menu:after {
	display: none;
}

/* The theme adds 10–12px of padding on top of the cell height (style.css:4237). */
#searchForm .bootstrap-datetimepicker-widget table th,
#searchForm .bootstrap-datetimepicker-widget table td,
#searchForm .bootstrap-datetimepicker-widget table td.day {
	height: 36px;
	line-height: 36px;
	padding: 0;
	border-radius: 8px;
	font-size: 14px;
	text-shadow: none;
}

/*
 * Seven equal columns. The theme sets `th { width: 100% }` (style.css:4239),
 * which crushes every weekday column but the first and wraps the month name.
 * A fixed layout with no explicit widths splits the row evenly instead.
 */
#searchForm .bootstrap-datetimepicker-widget table {
	table-layout: fixed;
	width: 100%;
}

#searchForm .bootstrap-datetimepicker-widget table th,
#searchForm .bootstrap-datetimepicker-widget table td,
#searchForm .bootstrap-datetimepicker-widget table th.picker-switch {
	width: auto;
}

#searchForm .bootstrap-datetimepicker-widget table th.picker-switch {
	white-space: nowrap;
}

#searchForm .bootstrap-datetimepicker-widget table thead tr:first-child th {
	color: #201f1d;
	font-weight: 700;
	text-transform: capitalize;
}

#searchForm .bootstrap-datetimepicker-widget table thead tr:first-child th:hover {
	background: #fff4e6;
}

#searchForm .bootstrap-datetimepicker-widget table th.dow {
	height: 28px;
	line-height: 28px;
	color: #8a8a8a;
	font-size: 12px;
	font-weight: 600;
	text-transform: capitalize;
}

#searchForm .bootstrap-datetimepicker-widget table td.day {
	width: 36px;
	color: #201f1d;
}

#searchForm .bootstrap-datetimepicker-widget table td.day:hover,
#searchForm .bootstrap-datetimepicker-widget table td span:hover {
	background: #fff4e6;
}

#searchForm .bootstrap-datetimepicker-widget table td.old,
#searchForm .bootstrap-datetimepicker-widget table td.new {
	color: #c9c9c9;
}

#searchForm .bootstrap-datetimepicker-widget table td.today:before {
	border-bottom-color: #ffa633;
}

#searchForm .bootstrap-datetimepicker-widget table td.active,
#searchForm .bootstrap-datetimepicker-widget table td.active:hover,
#searchForm .bootstrap-datetimepicker-widget table td span.active {
	background: #ffa633;
	color: #fff;
	font-weight: 700;
}

#searchForm .bootstrap-datetimepicker-widget table td.active.today:before {
	border-bottom-color: #fff;
}

#searchForm .bootstrap-datetimepicker-widget table td.disabled,
#searchForm .bootstrap-datetimepicker-widget table td.disabled:hover,
#searchForm .bootstrap-datetimepicker-widget table td span.disabled {
	background: transparent;
	color: #d4d4d4;
	cursor: not-allowed;
}
