.wcef-filters-wrap {
	margin-bottom: 1.5rem;
}

.wcef-filters {
	margin-bottom: 0;
	--wcef-indent: 0.85rem;
	--wcef-border: rgba(0, 0, 0, 0.12);
	--wcef-toggle-size: 1.65rem;
	--wcef-check-size: 1.25rem;
	--wcef-accent: #2a9d8f;
	--wcef-accent-hover: #248a7e;
	--wcef-accent-soft: rgba(42, 157, 143, 0.15);
}

.wcef-filters__orderby {
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--wcef-border);
}

.wcef-filters__orderby-label {
	display: block;
	font-weight: 600;
	font-size: 0.9em;
	margin-bottom: 0.4rem;
}

.wcef-filters__orderby-select {
	width: 100%;
	max-width: 100%;
	padding: 0.5rem 0.65rem;
	font-size: 0.95em;
	line-height: 1.4;
	border: 1px solid var(--wcef-border);
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
}

.wcef-filters__filter-btn {
	flex-shrink: 0;
	padding: 0.35rem 0.85rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border: none;
	border-radius: 3px;
	background: var(--wcef-accent);
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease;
}

.wcef-filters__filter-btn:hover {
	background: var(--wcef-accent-hover);
}

.wcef-filters__toolbar {
	margin-top: 1rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--wcef-border);
}

/* Group titles — uppercase like reference */
.wcef-filters__group {
	margin-bottom: 1.35rem;
}

.wcef-filters__title {
	font-weight: 700;
	margin-bottom: 0.55rem;
	font-size: 0.82rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #1a1a1a;
}

.wcef-filters__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wcef-filters .wcef-filters__list .wcef-filters__item {
	list-style: none;
}

.wcef-filters .wcef-filters__list .wcef-filters__item::marker {
	content: none;
}

.wcef-filters__list--flat .wcef-filters__item {
	margin: 0.2rem 0;
}

/* Row: choice + expand (apply form: checkbox left, + right) */
.wcef-filters__row {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 1.85rem;
}

/* Instant links + toggle right */
.wcef-filters--toggle-right .wcef-filters__row {
	flex-direction: row-reverse;
	justify-content: flex-end;
}

.wcef-filters--toggle-right .wcef-filters__row .wcef-filters__link {
	flex: 1;
	min-width: 0;
	text-align: start;
}

.wcef-filters--apply-form .wcef-filters__row .wcef-filters__choice {
	flex: 1;
	min-width: 0;
}

.wcef-filters__toggle {
	flex-shrink: 0;
	width: var(--wcef-toggle-size);
	height: var(--wcef-toggle-size);
	margin: 0;
	padding: 0;
	border: 1px solid var(--wcef-border);
	border-radius: 4px;
	background: #fafafa;
	cursor: pointer;
	font-size: 1.05rem;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #666;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.wcef-filters__toggle:hover {
	background: #f0f0f0;
	border-color: rgba(0, 0, 0, 0.18);
	color: #333;
}

.wcef-filters__toggle::before {
	content: "+";
	font-weight: 500;
	line-height: 1;
}

.wcef-filters__item.wcef-is-open > .wcef-filters__row .wcef-filters__toggle::before {
	content: "−";
}

.wcef-filters__toggle-spacer {
	flex-shrink: 0;
	width: var(--wcef-toggle-size);
	height: var(--wcef-toggle-size);
	pointer-events: none;
}

.wcef-filters__row .wcef-filters__link {
	flex: 1;
	min-width: 0;
	position: relative;
	z-index: 1;
}

.wcef-filters__list--accordion-panel {
	margin-top: 0.35rem;
	margin-bottom: 0.25rem;
	padding-left: var(--wcef-indent);
	border-left: 2px solid var(--wcef-border);
}

.wcef-filters__list--accordion-root > .wcef-filters__item {
	margin: 0.2rem 0;
}

.wcef-filters__list--child:not(.wcef-filters__list--accordion-panel) {
	margin-top: 0.35rem;
	margin-bottom: 0.15rem;
	padding-left: var(--wcef-indent);
	border-left: 2px solid var(--wcef-border);
}

.wcef-filters__item {
	margin: 0.12rem 0;
	line-height: 1.45;
}

/* Checkbox / radio row */
.wcef-filters__choice {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.45rem;
	cursor: pointer;
	font-weight: 500;
	margin: 0;
	max-width: 100%;
}

.wcef-filters__choice-text {
	flex: 1;
	min-width: 0;
	line-height: 1.4;
}

/* Square checkboxes (themes often round all inputs — force square + visible tick) */
.wcef-filters input.wcef-filters__input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	box-sizing: border-box;
	width: var(--wcef-check-size);
	height: var(--wcef-check-size);
	min-width: var(--wcef-check-size);
	min-height: var(--wcef-check-size);
	margin: 0.15rem 0 0;
	flex-shrink: 0;
	border: 2px solid #9a9a9a;
	border-radius: 2px !important;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
	vertical-align: top;
}

.wcef-filters input.wcef-filters__input[type="checkbox"]:hover {
	border-color: #666;
}

.wcef-filters input.wcef-filters__input[type="checkbox"]:checked {
	background-color: var(--wcef-accent);
	border-color: var(--wcef-accent);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 11' fill='none'%3E%3Cpath stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M1.5 5.5l4 4 7-8'/%3E%3C/svg%3E");
	background-size: 0.72rem auto;
	background-repeat: no-repeat;
	background-position: center;
	box-shadow: none;
}

.wcef-filters__choice.is-active .wcef-filters__choice-text {
	font-weight: 700;
	color: var(--wcef-accent);
}

.wcef-filters__choice.is-ancestor .wcef-filters__choice-text {
	font-weight: 600;
	border-bottom: 1px dashed rgba(0, 0, 0, 0.2);
}

.wcef-filters__link {
	display: inline;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.15s ease, color 0.15s ease, background-color 0.15s ease;
	cursor: pointer;
}

.wcef-filters__link:hover {
	opacity: 0.85;
}

.wcef-filters__link:focus {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.wcef-filters__link:focus:not(:focus-visible) {
	outline: none;
}

.wcef-filters__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.wcef-filters__link.is-active {
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	color: var(--wcef-active-color, var(--wcef-accent));
}

.wcef-filters__link.is-ancestor {
	font-weight: 600;
	opacity: 0.92;
	border-bottom: 1px dashed rgba(0, 0, 0, 0.22);
	text-decoration: none;
}

.wcef-filters__count {
	opacity: 0.55;
	font-size: 0.88em;
	font-weight: 400;
}

.wcef-filters__item--depth-0 .wcef-filters__link,
.wcef-filters__item--depth-0 .wcef-filters__choice-text {
	font-weight: 500;
}

.wcef-filters__item--depth-1 .wcef-filters__link,
.wcef-filters__item--depth-1 .wcef-filters__choice-text {
	font-size: 0.96em;
}

.wcef-filters__item--depth-2 .wcef-filters__link,
.wcef-filters__item--depth-2 .wcef-filters__choice-text,
.wcef-filters__item--depth-3 .wcef-filters__link,
.wcef-filters__item--depth-3 .wcef-filters__choice-text {
	font-size: 0.93em;
	opacity: 0.95;
}
