@media (min-width: 768px) {
	.filters-wrapper {
		position: sticky;
		top: 10px;
	}

	.admin-bar .filters-wrapper {
		top: 42px;
	}
}

/* ========================================
   FacetWP filters
======================================== */

.facetwp-facet .facetwp-checkbox {
	background: none !important;
	display: flex;
	align-items: center;
	margin-bottom: 10px;
	padding-left: 0;
	padding-top: 2px;
	padding-bottom: 2px;
	cursor: pointer;
	position: relative;
}

.facetwp-facet .facetwp-checkbox:focus-visible {
	outline: 2px solid var(--color-focus);
	outline-offset: 2px;
}

.facetwp-display-value {
	margin-right: auto;
}

.facetwp-counter {
	margin-left: auto;
	transition: color 0.2s ease;
}

.facetwp-facet .facetwp-checkbox:hover .facetwp-counter,
.facetwp-facet .facetwp-checkbox.checked .facetwp-counter {
	color: var(--body-color);
}

.facetwp-facet .facetwp-checkbox::before {
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	margin-right: 10px;
	background-color: var(--c-white, #fff);
	border: 1px solid var(--border-color);
	border-radius: 4px;
	box-sizing: border-box;
	flex-shrink: 0;
}

.facetwp-facet .facetwp-checkbox.checked::before {
	/* border-color: var(--jet-black); */
}

.facetwp-facet .facetwp-checkbox::after {
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0;
	background-image: url("../../../images/icons/checkmark.svg");
	background-size: contain;
	background-repeat: no-repeat;
	transition: opacity 0.3s ease, filter 0.3s ease;
}

.facetwp-facet .facetwp-checkbox:not(.checked):hover::after {
	opacity: 0.75;
	filter: grayscale(1);
}

.facetwp-facet .facetwp-checkbox.checked::after {
	opacity: 1;
}

.facetwp-facet .facetwp-checkbox.disabled {
	pointer-events: none;
	opacity: 0.55;
}

.facetwp-checkbox .facetwp-expand {
	margin-left: 5px;
}

/* ========================================
   Filter header / reset
======================================== */

.filter-facets {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	position: relative;
	line-height: var(--leading-short);
	/* margin-bottom: .7em; */
	margin-bottom: .425em;
}

/* .filter-facets::after {
	content: "";
	display: block;
	width: 100%;
	height: 1px;
	background-color: var(--separator-color);
	position: absolute;
	left: 0;
	bottom: calc(-1em - 1px);
} */

.facetwp-facet.facetwp-facet-reset:not(.facetwp-hidden) {
	display: flex;
	align-items: center;
	margin-bottom: 0;
}

.filter-facets__label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: var(--font-bold);
}

.filter-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.facetwp-reset {
	/* font-size: var(--text-ui); */
	font-size: var(--text-meta);
	line-height: 1;
}

.facetwp-reset:hover {
	text-decoration: none;
}

.facet-label,
.cat-item--top-link {
	display: block;
	margin-bottom: 1em;
	font-weight: var(--font-bold);
}

.product-cat-tree-wrapper {
	margin-bottom: 1.5rem;
	font-size: var(--text-ui);
}

.cat-item--top-link {
	text-decoration: none;
	line-height: 1;
}

.product-cat-tree {
	border-bottom: 1px solid var(--separator-color);
	list-style: none;
	padding-left: 0;
	padding-bottom: 10px;

}

.product-cat-tree .cat-item {
	padding-bottom: 10px;
}

.cat-item--link {
	text-decoration: none;
}

.cat-item--link:hover,
.current-cat .cat-item--link {
	text-decoration: underline;
}

.product-cat-tree ul {
	list-style: none;
	padding-left: 0;
}

/* ========================================
   Active selections
======================================== */

.user-selections-wrapper {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--separator-color);
}

.user-selections-label {
	display: none;
	font-size: var(--text-ui);
	order: 0;
	padding-top: 10px;
	padding-bottom: 10px;
}

.user-selections-wrapper .facetwp-selections:not(:empty) + .user-selections-label {
	display: block;
}

.facetwp-selections {
	order: 2;
}

#secondary .facetwp-selections ul {
	margin: 0;
	padding-left: 0;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--separator-color);
}

.facetwp-selection-label {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

#secondary .facetwp-selections .facetwp-selection-value {
	display: inline-block;
	position: relative;
	margin-right: 6px;
	margin-bottom: 6px;
	padding-top: 5px;
	padding-right: 24px;
	padding-bottom: 5px;
	padding-left: 8px;
	font-size: 0.9375rem;
	line-height: 1.2;
	cursor: pointer;
	background-color: var(--silky-white);
	background-image: none;
	border-radius: 30px;
	transition: opacity .1s ease-in-out;
}

#secondary .facetwp-selections .facetwp-selection-value:hover {
	opacity: .8;
}

.facetwp-selections .facetwp-selection-value::after {
	content: "";
	display: inline-block;
	position: absolute;
	top: 0;
	right: 5px;
	bottom: 0;
	margin-top: auto;
	margin-bottom: auto;
	width: 18px;
	height: 18px;
	background-image: url("../../../images/icons/close-small.svg");
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform .1s ease-in-out;
}

.facetwp-selections .facetwp-selection-value:hover::after {
	transform: scale(1.2);
}

/* ========================================
   Facet blocks
======================================== */

.facet-block {
	padding-top: 20px;
	border-bottom: 1px solid var(--separator-color);
	font-size: var(--text-ui);
}

.facet-block:last-of-type {
	border-bottom: none;
}

.facet-block .facetwp-facet {
	margin-bottom: 20px;
}
