/* AE Hometex Filters - front-end */

.aehf-widget ul,
.aehf-widget li {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
}

/* checkbox lists */
.aehf-check {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.3;
	color: #777;
}

.aehf-check:hover,
.aehf-checked .aehf-check {
	color: #242424;
}

.aehf-check input[type="checkbox"] {
	margin: 0;
	flex: 0 0 auto;
}

.aehf-name {
	flex: 1 1 auto;
}

.aehf-count {
	color: #bbb;
	font-size: 12px;
}

.aehf-scroll {
	max-height: 220px;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 6px;
}

.aehf-swatch {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
	background-size: cover;
	background-position: center;
}

.aehf-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 8px;
}

.aehf-actions:empty {
	display: none;
}

.aehf-clear,
.aehf-clear-all {
	font-size: 13px;
	color: #777;
	text-decoration: none;
}

.aehf-clear:hover,
.aehf-clear-all:hover {
	color: #242424;
}

.aehf-form.aehf-loading {
	opacity: 0.5;
	pointer-events: none;
}

/* category tree */
.aehf-cats {
	max-height: 420px;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 6px;
}

.aehf-widget .aehf-cats li {
	position: relative;
}

.aehf-widget .aehf-cats li > a {
	display: block;
	padding: 6px 28px 6px 0;
	font-size: 14px;
	line-height: 1.3;
	color: #777;
	text-decoration: none;
}

.aehf-widget .aehf-cats li > a:hover,
.aehf-widget .aehf-cats li.current-cat > a {
	color: #242424;
}

.aehf-widget .aehf-cats li.current-cat > a {
	font-weight: 600;
}

.aehf-widget .aehf-cats li ul {
	display: none;
	padding-left: 16px;
}

.aehf-widget .aehf-cats li.aehf-open > ul {
	display: block;
}

.aehf-toggle {
	position: absolute;
	top: 6px;
	right: 0;
	width: 20px;
	height: 20px;
	cursor: pointer;
}

.aehf-toggle::before,
.aehf-toggle::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 9px;
	width: 10px;
	height: 1px;
	background: #777;
}

.aehf-toggle::after {
	transform: rotate(90deg);
}

.aehf-open > .aehf-toggle::after {
	display: none;
}

/* active filters */
.aehf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.aehf-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border: 1px solid #e3e3e3;
	border-radius: 20px;
	background: #fff;
	font-size: 13px;
	color: #242424;
	text-decoration: none;
}

.aehf-chip i {
	font-style: normal;
	color: #999;
}

.aehf-chip:hover {
	border-color: #242424;
}

.aehf-chip:hover i {
	color: #242424;
}
