.woocommerce .cxe-filter-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 9px 14px;
	color: #172638;
	font-family: Manrope, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	background: #fff;
	border: 1px solid #e7e9ed;
	border-radius: 6px;
	box-shadow: none;
	cursor: pointer;
	transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.woocommerce .cxe-filter-toggle:hover,
.woocommerce .cxe-filter-toggle:focus-visible {
	color: #74384c;
	background: #f8f3f5;
	border-color: rgba(140, 74, 94, 0.45);
}

.cxe-filter-toggle__count {
	display: inline-grid;
	place-items: center;
	min-width: 21px;
	height: 21px;
	padding-inline: 5px;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	background: #8c4a5e;
	border-radius: 999px;
}

.cxe-active-filters {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	clear: both;
	width: 100%;
	margin: 16px 0 4px;
}

.cxe-active-filters__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cxe-filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 34px;
	padding: 6px 11px;
	color: #4d6072;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	background: #f7f8fa;
	border: 1px solid #e7e9ed;
	border-radius: 999px;
}

.cxe-filter-chip:hover,
.cxe-filter-chip:focus-visible {
	color: #74384c;
	background: #f8f3f5;
	border-color: rgba(140, 74, 94, 0.42);
}

.cxe-active-filters__clear,
.cxe-filter-clear {
	color: #8c4a5e;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.cxe-active-filters__clear:hover,
.cxe-active-filters__clear:focus-visible,
.cxe-filter-clear:hover,
.cxe-filter-clear:focus-visible {
	color: #74384c;
}

.cxe-filter-layer {
	position: fixed;
	inset: 0;
	z-index: 100000;
}

.cxe-filter-layer[hidden] {
	display: none;
}

.cxe-filter-backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	background: rgba(23, 38, 56, 0.42);
	border: 0;
	border-radius: 0;
	opacity: 0;
	backdrop-filter: blur(3px);
	transition: opacity 220ms ease;
}

.cxe-filter-drawer {
	position: absolute;
	top: 0;
	right: 0;
	width: min(420px, 100%);
	height: 100%;
	color: #172638;
	background: #fff;
	box-shadow: -18px 0 48px rgba(23, 38, 56, 0.16);
	transform: translateX(100%);
	transition: transform 240ms ease;
}

.cxe-filter-layer.cxe-is-open .cxe-filter-backdrop {
	opacity: 1;
}

.cxe-filter-layer.cxe-is-open .cxe-filter-drawer {
	transform: translateX(0);
}

.cxe-filter-form {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	height: 100%;
	margin: 0;
}

.cxe-filter-drawer__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 26px 26px 22px;
	border-bottom: 1px solid #e7e9ed;
}

.cxe-filter-drawer__eyebrow {
	margin: 0 0 5px;
	color: #8c4a5e;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cxe-filter-drawer h2 {
	margin: 0;
	color: #172638;
	font-size: 25px;
	font-weight: 650;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.cxe-filter-close {
	display: inline-grid;
	flex: 0 0 auto;
	place-items: center;
	width: 42px;
	height: 42px;
	min-height: 0;
	padding: 0;
	color: #4d6072;
	background: #f7f8fa;
	border: 1px solid #e7e9ed;
	border-radius: 50%;
	box-shadow: none;
	cursor: pointer;
}

.cxe-filter-close:hover,
.cxe-filter-close:focus-visible {
	color: #74384c;
	background: #f8f3f5;
	border-color: rgba(140, 74, 94, 0.42);
}

.cxe-filter-drawer__body {
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0 26px;
}

.cxe-filter-group {
	border-bottom: 1px solid #e7e9ed;
}

.cxe-filter-group summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 66px;
	color: #172638;
	font-size: 15px;
	font-weight: 650;
	line-height: 1.3;
	list-style: none;
	cursor: pointer;
}

.cxe-filter-group summary::-webkit-details-marker {
	display: none;
}

.cxe-filter-group summary svg {
	flex: 0 0 auto;
	transition: transform 180ms ease;
}

.cxe-filter-group[open] summary svg {
	transform: rotate(180deg);
}

.cxe-filter-group__options {
	display: grid;
	gap: 4px;
	padding: 0 0 18px;
}

.cxe-filter-option {
	position: relative;
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	min-height: 42px;
	margin: 0;
	padding: 6px 8px;
	color: #4d6072;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	border-radius: 6px;
	cursor: pointer;
}

.cxe-filter-option:hover {
	color: #172638;
	background: #f7f8fa;
}

.cxe-filter-option input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.cxe-filter-option__box {
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	color: transparent;
	background: #fff;
	border: 1px solid #cfd5dc;
	border-radius: 4px;
	transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.cxe-filter-option input:checked + .cxe-filter-option__box {
	color: #fff;
	background: #8c4a5e;
	border-color: #8c4a5e;
}

.cxe-filter-option input:focus-visible + .cxe-filter-option__box {
	outline: 3px solid rgba(140, 74, 94, 0.2);
	outline-offset: 2px;
}

.cxe-filter-option__count {
	color: #8492a1;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

.cxe-filter-drawer__footer {
	display: grid;
	grid-template-columns: auto minmax(180px, 1fr);
	align-items: center;
	gap: 18px;
	padding: 18px 26px;
	background: rgba(255, 255, 255, 0.96);
	border-top: 1px solid #e7e9ed;
	box-shadow: 0 -10px 28px rgba(23, 38, 56, 0.05);
}

.cxe-filter-apply {
	width: 100%;
	min-height: 48px;
	padding: 12px 20px;
	color: #fff;
	font-family: Manrope, sans-serif;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.2;
	background: #8c4a5e;
	border: 0;
	border-radius: 6px;
	box-shadow: none;
	cursor: pointer;
}

.cxe-filter-apply:hover,
.cxe-filter-apply:focus-visible {
	color: #fff;
	background: #74384c;
}

body.cxe-filter-lock {
	overflow: hidden;
}

.cxe-filter-empty-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

@media (max-width: 689px) {
	.woocommerce .cxe-filter-toggle {
		min-height: 42px;
		padding-inline: 12px;
		font-size: 13px;
	}

	.cxe-active-filters {
		align-items: flex-start;
		margin-top: 14px;
	}

	.cxe-active-filters__chips {
		gap: 6px;
	}

	.cxe-filter-chip {
		min-height: 32px;
		padding: 5px 9px;
		font-size: 11px;
	}

	.cxe-filter-drawer {
		width: 100%;
	}

	.cxe-filter-drawer__header {
		padding: 20px 20px 17px;
	}

	.cxe-filter-drawer h2 {
		font-size: 22px;
	}

	.cxe-filter-drawer__body {
		padding-inline: 20px;
	}

	.cxe-filter-drawer__footer {
		grid-template-columns: auto minmax(0, 1fr);
		gap: 14px;
		padding: 15px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cxe-filter-backdrop,
	.cxe-filter-drawer,
	.cxe-filter-group summary svg {
		transition: none;
	}
}
