.apf-widget {
	display: grid;
	gap: 0;
}

.apf-is-loading .apf-widget,
.apf-is-loading .woocommerce ul.products,
.apf-is-loading ul.products {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.apf-group {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	padding: 15px 0;
}

.apf-group-title {
	color: #4c5563;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0;
}

.apf-group-toggle {
	align-items: center;
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	display: flex;
	font: inherit;
	gap: 10px;
	justify-content: space-between;
	line-height: inherit;
	padding: 0;
	text-align: inherit;
	width: 100%;
}

.apf-toggle-icon {
	align-items: center;
	color: currentColor;
	display: inline-flex;
	flex: 0 0 18px;
	height: 18px;
	justify-content: center;
	opacity: 0.85;
	position: relative;
	width: 18px;
}

.apf-toggle-icon::before,
.apf-toggle-icon::after {
	background: currentColor;
	border-radius: 2px;
	content: "";
	position: absolute;
}

.apf-toggle-icon::before {
	height: 2px;
	width: 10px;
}

.apf-toggle-icon::after {
	height: 10px;
	width: 2px;
}

.apf-group.is-open .apf-toggle-icon::after {
	display: none;
}

.apf-list {
	display: grid;
	gap: 9px;
	list-style: none;
	margin-top: 20px;
	padding: 0;
}

.apf-list[hidden],
.apf-child-list[hidden] {
	display: none !important;
}

.apf-filter-link {
	align-items: center;
	color: #4b5563;
	display: grid;
	font-size: 14px;
	gap: 8px;
	grid-template-columns: 18px minmax(0, 1fr) auto auto;
	line-height: 1.45;
	min-height: 23px;
	text-decoration: none;
}

.apf-widget[dir="rtl"] .apf-filter-link {
	grid-template-columns: 18px minmax(0, 1fr) auto auto;
}

.apf-item a:hover .apf-name,
.apf-item.is-active .apf-name {
	color: var(--wp--preset--color--primary, #1677c8);
}

.apf-box {
	border: 1px solid #d7dce2;
	border-radius: 20px;
	display: grid;
	grid-column: 1;
	height: 18px;
	opacity: 0.65;
	place-items: center;
	width: 18px;
}

.apf-item.is-active .apf-box {
	background: #174f83;
	border-color: #174f83;
	opacity: 1;
}

.apf-item.is-active .apf-box::after {
	border: solid #fff;
	border-width: 0 2px 2px 0;
	content: "";
	height: 8px;
	margin-top: -2px;
	transform: rotate(45deg);
	width: 4px;
}

.apf-name {
	flex: 1 1 auto;
	grid-column: 2;
	min-width: 0;
	overflow-wrap: anywhere;
}

.apf-item.is-active .apf-name {
	color: #174f83;
	font-weight: 700;
}

.apf-color {
	background: var(--apf-color);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
	display: inline-block;
	grid-column: 4;
	height: 24px;
	margin-inline-start: 10px;
	width: 24px;
}

.apf-count {
	background: rgba(0, 0, 0, 0.06);
	border-radius: 999px;
	font-size: 12px;
	grid-column: 3;
	line-height: 1;
	min-width: 24px;
	padding: 5px 7px;
	text-align: center;
}

.apf-category-row {
	align-items: center;
	display: grid;
	gap: 8px;
	grid-template-columns: 18px minmax(0, 1fr) auto auto;
	min-height: 23px;
}

.apf-category-row .apf-filter-link {
	display: contents;
}

.apf-child-toggle {
	align-items: center;
	background: transparent;
	border: 0;
	color: #4b5563;
	cursor: pointer;
	display: inline-flex;
	grid-column: 4;
	height: 18px;
	justify-content: center;
	opacity: 0.85;
	padding: 0;
	width: 18px;
}

.apf-child-icon {
	display: inline-flex;
	height: 14px;
	position: relative;
	width: 14px;
}

.apf-child-icon::before,
.apf-child-icon::after {
	background: currentColor;
	border-radius: 2px;
	content: "";
	position: absolute;
}

.apf-child-icon::before {
	height: 1px;
	left: 2px;
	top: 6px;
	width: 10px;
}

.apf-child-icon::after {
	height: 10px;
	left: 6px;
	top: 2px;
	width: 1px;
}

.apf-category-item.is-child-open > .apf-category-row .apf-child-icon::after {
	display: none;
}

.apf-child-list {
	display: grid;
	gap: 9px;
	list-style: none;
	margin: 9px 0 0;
	padding: 0 18px 0 0;
}

.apf-widget[dir="ltr"] .apf-child-list {
	padding: 0 0 0 18px;
}

.apf-clear {
	color: var(--wp--preset--color--primary, #1677c8);
	display: inline-flex;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.apf-clear:hover {
	text-decoration: underline;
}

.apf-stock-group {
	padding-top: 0;
}

.apf-stock-toggle {
	align-items: center;
	color: inherit;
	display: flex;
	font-size: 14px;
	font-weight: 700;
	gap: 10px;
	justify-content: space-between;
	text-decoration: none;
}

.apf-switch {
	background: #eef0f3;
	border: 1px solid #c8ced6;
	border-radius: 999px;
	display: inline-flex;
	flex: 0 0 32px;
	height: 18px;
	padding: 2px;
	width: 32px;
}

.apf-switch::after {
	background: #7d8793;
	border-radius: 50%;
	content: "";
	height: 12px;
	transition: transform 0.18s ease;
	width: 12px;
}

.apf-stock-toggle.is-active .apf-switch {
	background: #174f83;
	border-color: #174f83;
}

.apf-stock-toggle.is-active .apf-switch::after {
	background: #fff;
	transform: translateX(14px);
}

.apf-widget[dir="rtl"] .apf-stock-toggle.is-active .apf-switch::after {
	transform: translateX(-14px);
}
