.filters-container {
	margin-top: 16px;
	margin-bottom: 16px;
}

.filters {
	display: flex;
	gap: 16px;
	align-items: center;
}

.filter-wrapper {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.filter-wrapper > label {
	font-size: 0.833rem;
	opacity: 0.7;
}

.filter__input-group {
	display: flex;
	justify-content: space-between;
}

.filter__input-group > label {
	width: 120px;
}

.filter__input-group > span {
	width: 90px;
}

.filter.open .filter-dropdown {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.filter-dropdown {
	display: none;
	margin-top: 8px;
	position: absolute;
	background-color: rgba(var(--sixty-rgb), 0.9);
	border: 1px solid var(--thirty);
	border-radius: 10px;
	padding: 1em;
	height: auto;
	max-height: 300px;
	overflow-y: auto;
	width: 200px;
	z-index: 100;
}

.filter-dropdown-option {
	border: 1px solid var(--thirty);
	border-radius: 20px;
	color: white;
	background-color: rgba(0, 0, 0, 0);
	cursor: pointer;
	min-height: 28px;
	text-overflow: ellipsis;
	overflow: hidden;
	text-transform: capitalize;
	text-decoration: none;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 14px;
}

.filter-dropdown--year {
	width: 400px;
}

.filter-dropdown--max-mileage {
	width: 500px;
}

.apply-button {
	border: 1px solid var(--thirty);
	border-radius: 20px;
	color: white;
	background-color: rgba(0, 0, 0, 0);
	cursor: pointer;
	min-height: 28px;
}

.filter__input-group > input {
	-webkit-appearance: none;
	background-color: rgba(0, 0, 0, 0);
	border-radius: 10px;
	border: 1px solid var(--thirty);
	width: 250px;
	margin-right: 8px;
}

/* Chrome, Safari, Edge */
.filter__input-group > input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	background-color: var(--thirty);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	width: 15px;
	height: 15px;
}

/* Firefox */
.filter__input-group > input::-moz-range-thumb {
	background-color: var(--thirty);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	width: 15px;
	height: 15px;
}

.filter__toggle {
	border: 1px solid var(--thirty);
	border-radius: 5px;
	background-color: rgba(255, 255, 255, 0);
	width: 112px;
	height: 24px;
	padding: 0.5em 1em;
	cursor: pointer;
	color: white;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px;
	text-transform: capitalize;
}

.filter__toggle--sort {
	width: 150px;
}

.filter__toggle:focus {
	border: 1px solid white;
}

.sort {
	margin-bottom: 16px;
}

@media (max-width: 560px) {
	.filters {
		display: grid;
		grid-template-columns: auto auto;
		gap: 8px;
	}

	.filter-dropdown--year {
		width: 360px;
	}

	.filter-dropdown--max-mileage {
		width: 360px;
		transform: translate(-50%, 0);
		left: 50%;
	}

	.filter-dropdown--max-mileage > .filter__input-group > input {
		width: 150px;
	}

}