.alh-catalog-filter {
	--alh-catalog-filter-color: #171717;
	--alh-catalog-filter-divider: #e7e7e7;
	color: var(--alh-catalog-filter-color);
	font: inherit;
	width: 100%;
}

.alh-catalog-filter *,
.alh-catalog-filter *::before,
.alh-catalog-filter *::after {
	box-sizing: border-box;
}

.alh-catalog-filter__panel {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 2px 0 8px;
}

.alh-catalog-filter__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	min-width: 42px;
	color: currentColor;
}

.alh-catalog-filter__field {
	position: relative;
	display: block;
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
}

.alh-catalog-filter__field + .alh-catalog-filter__field::before {
	content: "";
	position: absolute;
	left: -4px;
	top: 50%;
	width: 1px;
	height: 18px;
	background: var(--alh-catalog-filter-divider);
	transform: translateY(-50%);
}

.alh-catalog-filter__field::after {
	content: "";
	position: absolute;
	right: 11px;
	top: 50%;
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	pointer-events: none;
	transform: translateY(-70%) rotate(45deg);
}

.alh-catalog-filter__field select {
	display: block;
	width: 100%;
	min-width: 0;
	height: 38px;
	margin: 0;
	padding: 8px 31px 8px 11px;
	border: 0;
	border-radius: 0;
	outline: none;
	color: inherit;
	background: transparent;
	box-shadow: none;
	font: inherit;
	font-size: 14px;
	line-height: 1.2;
	text-overflow: ellipsis;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

.alh-catalog-filter__field.is-active select {
	box-shadow: inset 0 -1px 0 currentColor;
	font-weight: 500;
}

.alh-catalog-filter__field select:focus,
.alh-catalog-filter__field select:focus-visible {
	outline: none;
	box-shadow: inset 0 -2px 0 currentColor;
}

.alh-catalog-filter__clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-height: 38px;
	padding: 9px 16px;
	border: 1px solid #171717;
	border-radius: 4px;
	color: #fff;
	background: #171717;
	box-shadow: none;
	font-size: 13px;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.alh-catalog-filter__clear.is-visible {
	display: inline-flex;
}

.alh-catalog-filter__clear:hover,
.alh-catalog-filter__clear:focus,
.alh-catalog-filter__clear:focus-visible {
	border-color: #b99555;
	color: #fff;
	background: #b99555;
	box-shadow: none;
	outline: none;
	text-decoration: none;
}

.alh-catalog-filter__mobile-toggle,
.alh-catalog-filter__apply {
	display: none;
}

.alh-catalog-filter noscript button {
	margin-top: 8px;
}

@media (max-width: 767px) {
	.alh-catalog-filter__mobile-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 4px;
		min-width: 44px;
		height: 44px;
		padding: 0 10px;
		border: 0;
		border-radius: 0;
		color: inherit;
		background: transparent;
		box-shadow: none;
		cursor: pointer;
	}

	.alh-catalog-filter__count {
		font-size: 12px;
		font-weight: 500;
	}

	.alh-catalog-filter__panel {
		display: none;
		align-items: stretch;
		gap: 0;
		margin-top: 6px;
		padding: 8px 0 0;
	}

	.alh-catalog-filter__panel.is-open {
		display: flex;
		flex-direction: column;
	}

	.alh-catalog-filter__icon {
		display: none;
	}

	.alh-catalog-filter__field {
		flex: none;
		width: 100%;
	}

	.alh-catalog-filter__field + .alh-catalog-filter__field::before {
		display: none;
	}

	.alh-catalog-filter__field select {
		height: 44px;
		padding-left: 2px;
		font-size: 16px;
		box-shadow: inset 0 -1px 0 var(--alh-catalog-filter-divider);
	}

	.alh-catalog-filter__field.is-active select {
		box-shadow: inset 0 -1px 0 currentColor;
	}

	.alh-catalog-filter__clear,
	.alh-catalog-filter__clear.is-visible {
		align-self: stretch;
		width: 100%;
		margin-top: 6px;
		padding: 11px 18px;
	}

	.alh-catalog-filter__apply {
		display: block;
		width: 100%;
		min-height: 44px;
		margin-top: 10px;
		padding: 10px 18px;
		border: 1px solid currentColor;
		border-radius: 0;
		color: #fff;
		background: #171717;
		font: inherit;
		font-size: 15px;
		cursor: pointer;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.alh-catalog-filter__panel {
		gap: 5px;
	}

	.alh-catalog-filter__icon {
		width: 34px;
		min-width: 34px;
	}

	.alh-catalog-filter__field select {
		padding-right: 23px;
		padding-left: 7px;
		font-size: 13px;
	}

	.alh-catalog-filter__field::after {
		right: 7px;
	}
}
