/*
 * Styled to match the look already established by the parent theme's own car-filter
 * widget (colors taken from its own defaults: #ffc600 header, #ffd800 band, #d52b27
 * button — see enovathemes-addons/widgets/widget-car-filter.php), per TASK-4's brief to
 * preserve the site's existing filter UI style rather than introduce a new one.
 */

.keytechsupply-vehicle-filter {
	width: 100%;
	box-sizing: border-box;
	margin: 20px 0 1.75em;
	font-family: inherit;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.08 );
}

.keytechsupply-vf-header {
	width: 100%;
	box-sizing: border-box;
	background-color: #f4c430;
	padding: 14px 20px;
	font-size: 1.1em;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.4;
}

.keytechsupply-vf-header-main {
	color: #1a1a1a;
}

.keytechsupply-vf-header-accent {
	color: #d52b27;
}

.keytechsupply-vf-band {
	width: 100%;
	box-sizing: border-box;
	background-color: #ffd800;
	padding: 18px 20px;
	margin: 0;
}

.keytechsupply-vehicle-filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.keytechsupply-vehicle-filter-row select {
	flex: 1 1 180px;
	min-width: 140px;
	max-width: 100%;
	padding: 11px 14px;
	box-sizing: border-box;
	background-color: #fff;
	border: 1px solid rgba( 0, 0, 0, 0.15 );
	border-radius: 4px;
	color: #333;
	font-size: 0.95em;
	line-height: 1.3;
	transition: border-color 0.15s ease, opacity 0.15s ease;
}

.keytechsupply-vehicle-filter-row select:hover:not( :disabled ) {
	border-color: rgba( 0, 0, 0, 0.3 );
}

.keytechsupply-vehicle-filter-row select:focus-visible {
	outline: 2px solid #d52b27;
	outline-offset: 1px;
}

.keytechsupply-vehicle-filter-row select:disabled {
	background-color: rgba( 255, 255, 255, 0.55 );
	color: #6b5a00;
	opacity: 1;
	cursor: not-allowed;
}

.keytechsupply-vf-submit {
	flex: 1 1 140px;
	max-width: 220px;
	background-color: #d52b27;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 12px 28px;
	font-weight: 700;
	font-size: 0.95em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.keytechsupply-vf-submit:hover {
	background-color: #b8201c;
}

.keytechsupply-vf-submit:focus-visible {
	outline: 2px solid #1a1a1a;
	outline-offset: 2px;
}

.keytechsupply-vf-clear {
	flex: 0 1 auto;
	color: #1a1a1a;
	text-decoration: underline;
	font-size: 0.9em;
	white-space: nowrap;
}

.keytechsupply-vf-empty {
	margin: 0;
	font-style: italic;
	color: #6b5a00;
}

/* Tablet / narrower desktop: keep the row but let fields wrap onto two lines gracefully. */
@media ( max-width: 900px ) {
	.keytechsupply-vehicle-filter-row select {
		flex-basis: 45%;
	}

	.keytechsupply-vf-submit {
		flex-basis: 100%;
		max-width: none;
	}

	.keytechsupply-vf-clear {
		flex-basis: 100%;
		text-align: center;
	}
}

/* Phones (portrait and landscape): stack everything full-width, larger touch targets. */
@media ( max-width: 600px ), ( max-height: 480px ) and ( orientation: landscape ) {
	.keytechsupply-vf-header {
		padding: 12px 16px;
		font-size: 1em;
	}

	.keytechsupply-vf-band {
		padding: 14px 16px;
	}

	.keytechsupply-vehicle-filter-row {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.keytechsupply-vehicle-filter-row select,
	.keytechsupply-vf-submit,
	.keytechsupply-vf-clear {
		width: 100%;
		flex-basis: auto;
		max-width: none;
		text-align: center;
	}

	.keytechsupply-vehicle-filter-row select,
	.keytechsupply-vf-submit {
		min-height: 44px;
	}
}
