/* Dual-range sliders — match original red Motors filter look */
.mgc-range-slider {
	position: relative;
	height: 6px;
	margin: 18px 8px 8px;
	background: #e6ecf3;
	border-radius: 999px;
}

.mgc-range-slider__track {
	position: absolute;
	height: 100%;
	background: var(--cl-red, #D40202);
	border-radius: 999px;
	pointer-events: none;
}

.mgc-range-slider input[type="range"] {
	position: absolute;
	width: 100%;
	height: 6px;
	top: 0;
	left: 0;
	margin: 0;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	pointer-events: none;
}

.mgc-range-slider input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--cl-red, #D40202);
	box-shadow: 0 2px 6px rgba(13, 27, 42, 0.18);
	cursor: pointer;
	pointer-events: auto;
}

.mgc-range-slider input[type="range"]::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--cl-red, #D40202);
	box-shadow: 0 2px 6px rgba(13, 27, 42, 0.18);
	cursor: pointer;
	pointer-events: auto;
}

/* Checked filter badges */
.stm-filter-pro-options-list label:has(input:checked) .option-badge,
.stm-filter-pro-options-list label.checked .option-badge {
	background: var(--cl-red, #D40202) !important;
	color: #fff !important;
	border-color: var(--cl-red, #D40202) !important;
}

.stm-filter-pro-options-list label.disabled {
	opacity: 0.45;
	pointer-events: none;
}

/* Active filter tags */
.stm-filter-chosen-units-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.stm-filter-chosen-units-list li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #eef3f9;
	border: 1px solid #d8e0ec;
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 600;
	color: #0d1b2a;
}

.stm-filter-chosen-units-list button {
	background: none;
	border: none;
	color: #54606e;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	padding: 0;
}

/* Hidden listings */
.mvl-card-skins.is-filtered-out {
	display: none !important;
}

/* No results */
.mgc-inventory-empty {
	display: none;
	text-align: center;
	padding: 48px 24px;
	color: #54606e;
	font-size: 17px;
}

.mgc-inventory-empty.is-visible {
	display: block;
}

/* Mobile filter drawer */
@media (max-width: 1024px) {
	.stm-inventory-pro-sidebar {
		position: fixed;
		top: 0;
		right: 0;
		width: min(360px, 92vw);
		height: 100vh;
		z-index: 10000;
		background: #fff;
		transform: translateX(110%);
		transition: transform 0.25s ease;
		overflow-y: auto;
		box-shadow: -8px 0 32px rgba(13, 27, 42, 0.15);
	}

	.stm-inventory-pro-sidebar.is-open {
		transform: translateX(0);
	}

	body.mgc-filter-open::before {
		content: '';
		position: fixed;
		inset: 0;
		background: rgba(13, 27, 42, 0.45);
		z-index: 9999;
	}
}
