.axf-filters {
	width: 100%;
	max-width: 260px;
	box-sizing: border-box;
	color: #1d2327;
	font: inherit;
}

.axf-filters__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 2px;
}

.axf-filters__bar h2 {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.3;
	font-weight: 600;
	color: var(--ast-global-color-0, #b20021);
}

.axf-group {
	border-top: 1px solid #eadfe2;
	margin: 0;
	padding: 0;
}

.axf-group:last-of-type {
	border-bottom: 1px solid #eadfe2;
}

.axf-group summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0;
	padding: 8px 2px;
	cursor: pointer;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.3;
	list-style: none;
}

.axf-group summary::-webkit-details-marker {
	display: none;
}

.axf-group summary::after {
	content: "";
	width: 0.4rem;
	height: 0.4rem;
	border-right: 1.5px solid #8d8386;
	border-bottom: 1.5px solid #8d8386;
	transform: rotate(45deg);
	flex: 0 0 auto;
	transition: transform 200ms ease, border-color 200ms ease;
}

.axf-group[open] summary::after {
	border-color: var(--ast-global-color-0, #b20021);
	transform: rotate(-135deg);
}

.axf-filters .axf-group:not([open]) > :not(summary) {
	display: none;
}

html.axf-ready .axf-filters .axf-group:not([open]) > .axf-group__panel {
	display: block;
	max-height: 0;
	margin: 0;
	overflow: hidden;
	visibility: hidden;
	pointer-events: none;
}

html.axf-ready .axf-filters .axf-group[open] > .axf-group__panel {
	display: block;
	max-height: none;
	overflow: visible;
	visibility: visible;
	pointer-events: auto;
}

.axf-group[open] > .axf-group__panel > .axf-group__body {
	display: flex;
	flex-direction: column;
	gap: 1px;
	margin: 0;
	padding: 0 2px 6px;
}

.axf-group__body.is-collapsed .axf-choice:nth-child(n + 9) {
	display: none;
}

.axf-group__body.is-collapsed .axf-choice:has(input:checked) {
	display: flex;
}

.axf-choice {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	padding: 3px 0;
	font-size: 0.88rem;
	line-height: 1.35;
}

.axf-choice input {
	width: 0.95rem;
	height: 0.95rem;
	margin: 0.12rem 0 0;
	flex: 0 0 auto;
	accent-color: var(--ast-global-color-0, #b20021);
}

.axf-choice:has(input:checked) span {
	color: var(--ast-global-color-0, #b20021);
}

.axf-more,
.axf-apply,
.axf-close,
.axf-open {
	font: inherit;
	cursor: pointer;
}

.axf-more,
.axf-clear a,
.axf-chip--clear {
	background: none;
	border: 0;
	padding: 0;
	color: var(--ast-global-color-0, #b20021);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.axf-more {
	align-self: flex-start;
	margin: 2px 0 6px;
	font-size: 0.82rem;
}

.axf-clear {
	margin: 8px 0 0;
	font-size: 0.82rem;
}

.axf-form__actions {
	margin: 8px 0 0;
}

.axf-apply,
.axf-open {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--ast-global-color-0, #b20021);
	background: var(--ast-global-color-0, #b20021);
	color: #fff;
	text-decoration: none;
}

.axf-open {
	box-sizing: border-box;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 8px;
}

.axf-open__icon {
	display: block;
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.axf-apply:hover,
.axf-open:hover {
	background: var(--ast-global-color-1, #cc1939);
	border-color: var(--ast-global-color-1, #cc1939);
	color: #fff;
}

.axf-open:active {
	background: #8e001a;
	border-color: #8e001a;
	color: #fff;
}

.axf-close {
	min-height: 40px;
	padding: 0 12px;
	border: 1px solid #eadfe2;
	background: #fff;
	color: inherit;
}

.axf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 12px;
}

.axf-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 30px;
	padding: 0 10px;
	border: 1px solid #eadfe2;
	border-radius: 999px;
	color: inherit;
	text-decoration: none;
	background: #fff;
	font-size: 0.85rem;
}

.axf-chip:hover {
	border-color: var(--ast-global-color-0, #b20021);
	color: var(--ast-global-color-0, #b20021);
}

.axf-toolbar {
	margin: 0 0 10px;
}

.axf-backdrop {
	display: none;
}

.axf-filters a:focus-visible,
.axf-filters button:focus-visible,
.axf-filters input:focus-visible,
.axf-filters summary:focus-visible,
.axf-open:focus-visible,
.axf-chip:focus-visible {
	outline: 2px solid var(--ast-global-color-0, #b20021);
	outline-offset: 2px;
}

@media (min-width: 922px) {
	.axf-toolbar,
	.axf-close,
	.axf-backdrop,
	html.axf-ready .axf-form__actions {
		display: none;
	}

	body.tax-product_cat.axf-has-filters.ast-left-sidebar #secondary {
		width: 260px;
		max-width: 260px;
		flex: 0 0 260px;
	}

	body.tax-product_cat.axf-has-filters.ast-left-sidebar #secondary,
	body.tax-product_cat.axf-has-filters.ast-left-sidebar .sidebar-main {
		position: static !important;
		top: auto !important;
		max-height: none !important;
		overflow: visible !important;
	}
}

@media (max-width: 921px) {
	html.axf-ready {
		overflow-x: clip;
	}

	html.axf-ready .axf-filters {
		display: flex;
		flex-direction: column;
		position: fixed;
		z-index: 100001;
		top: 0;
		left: 0;
		bottom: 0;
		box-sizing: border-box;
		width: min(100%, 22rem);
		max-width: 100%;
		max-height: 100dvh;
		margin: 0;
		padding: 16px;
		background: #fff;
		overflow: auto;
		transform: translate3d(-100%, 0, 0);
		visibility: hidden;
		pointer-events: none;
		transition: transform 250ms ease, visibility 0s linear 250ms;
	}

	html.axf-ready.axf-open .axf-filters {
		transform: translate3d(0, 0, 0);
		visibility: visible;
		pointer-events: auto;
		transition: transform 250ms ease, visibility 0s linear 0s;
	}

	html.axf-ready .axf-backdrop {
		display: block;
		position: fixed;
		z-index: 100000;
		inset: 0;
		background: rgba(0, 0, 0, 0.45);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 250ms ease, visibility 0s linear 250ms;
	}

	html.axf-ready.axf-open .axf-backdrop {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transition: opacity 250ms ease, visibility 0s linear 0s;
	}
}

@media (prefers-reduced-motion: reduce) {
	.axf-group summary::after,
	html.axf-ready .axf-filters,
	html.axf-ready.axf-open .axf-filters,
	html.axf-ready .axf-backdrop,
	html.axf-ready.axf-open .axf-backdrop,
	html.axf-ready .axf-group__panel {
		transition: none;
	}
}
