/* Tarracode shop sidebar: categories + filter accordions */

#secondary {
	--tc-sidebar-accent: #90b925;
	--tc-sidebar-accent-soft: rgba(144, 185, 37, 0.12);
	--tc-sidebar-text: #333;
	--tc-sidebar-border: #eee;
	--tc-sidebar-focus: #90b925;
	--yith-wcan-filters_colors_accent: var(--tc-sidebar-accent);
	--yith-wcan-filters_colors_accent_r: 144;
	--yith-wcan-filters_colors_accent_g: 185;
	--yith-wcan-filters_colors_accent_b: 37;
	--yith-wcan-anchors_style_text: var(--tc-sidebar-text);
}

/* -------------------------------------------------------------------------
   Desktop archive sidebar
   ------------------------------------------------------------------------- */

@media (min-width: 993px) {
	#secondary {
		--tc-sidebar-sticky-offset: 20px;
		position: sticky;
		top: var(--tc-sidebar-sticky-offset);
		overflow-x: hidden;
		overflow-y: visible;
		-webkit-overflow-scrolling: touch;
	}

	/* Only when filters are taller than the available space. */
	#secondary.tc-sidebar-scroll {
		max-height: calc(100vh - var(--tc-sidebar-sticky-offset) - 24px);
		overflow-y: auto;
		/* Scrollbar on the left so it does not sit against the product grid. */
		direction: rtl;
		padding-left: 0;
		scrollbar-color: rgba(150, 158, 150, 0.22) transparent;
		scrollbar-width: thin;
	}

	#secondary.tc-sidebar-scroll > * {
		direction: ltr;
	}

	body.sticky-d #secondary {
		--tc-sidebar-sticky-offset: 90px;
	}

	body.admin-bar:not(.sticky-d) #secondary {
		--tc-sidebar-sticky-offset: 56px;
	}

	body.admin-bar.sticky-d #secondary {
		--tc-sidebar-sticky-offset: 122px;
	}

	#secondary.tc-sidebar-scroll::-webkit-scrollbar {
		width: 2px;
	}

	#secondary.tc-sidebar-scroll::-webkit-scrollbar-thumb {
		border-radius: 999px;
		background: rgba(150, 158, 150, 0.22);
	}

	#secondary.tc-sidebar-scroll::-webkit-scrollbar-thumb:hover {
		background: rgba(140, 170, 100, 0.4);
	}

	#secondary.tc-sidebar-scroll::-webkit-scrollbar-track {
		background: transparent;
	}
}

/* -------------------------------------------------------------------------
   Category tree
   ------------------------------------------------------------------------- */

.widget_product_categories {
	--tc-category-text: #222522;
	--tc-category-muted: #525852;
	--tc-category-hover: #f4f6f4;
	--tc-category-active-bg: rgba(132, 183, 33, 0.09);
	--tc-category-active-bar: #84b721;
	--tc-category-border: #e3e7e3;
	--tc-category-focus: #84b721;
	margin-bottom: 1.75rem;
	padding-right: 0 !important;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid #e8ebe7;
	font-size: 14.5px;
}

/* Extra space before Objem / brand / price filters under Kategorie */
#secondary .widget_product_categories + .widget,
#secondary .widget_product_categories + .yith-wcan-filters,
#secondary .widget.widget_yith-woocommerce-ajax-navigation-filters {
	margin-top: 1.35rem;
}

#secondary .widget.widget_yith-woocommerce-ajax-navigation-filters > .yith-wcan-filters > .yith-wcan-filter:first-child {
	margin-top: 0.35rem;
}

.widget_product_categories .widget-title,
.widget_product_categories > h2 {
	margin: 0 0 12px;
	color: #111;
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.3;
	text-transform: none;
}

/* Keep “Kategorie” visible in focused mode; back-link sits above the list */
.widget_product_categories.tc-cat-focused > .widget-title,
.widget_product_categories.tc-cat-focused > h2 {
	display: block;
}

.widget_product_categories .tc-cat-header {
	display: none;
	margin: 0 0 14px;
	padding: 0;
	border: 0;
}

.widget_product_categories.tc-cat-focused .tc-cat-header,
.widget_product_categories.tc-cat-browsing-all .tc-cat-header {
	display: block;
}

.widget_product_categories.tc-cat-browsing-all .tc-cat-header {
	margin-bottom: 10px;
}

.widget_product_categories ul,
.widget_product_categories li {
	list-style: none;
}

.widget_product_categories ul.product-categories,
.widget_product_categories ul.children {
	margin: 0;
	padding: 0;
}

.widget_product_categories li.cat-item {
	position: relative;
	margin: 1px 0;
	padding: 0 !important;
	padding-left: 0 !important;
}

/* Hide product counts in tree / browse-all mode (Shoptimizer absolute .count included) */
.widget.widget_product_categories:not(.tc-cat-focused) li .count,
.widget_product_categories:not(.tc-cat-focused) li .count,
.widget.woocommerce.widget_product_categories:not(.tc-cat-focused) li .count,
.widget_product_categories:not(.tc-cat-focused) .tc-category-row > .count {
	display: none !important;
}

.widget_product_categories .tc-category-link,
.widget_product_categories a.tc-category-link,
.widget-area .widget_product_categories a.tc-category-link {
	text-decoration: none !important;
}

.widget_product_categories .tc-category-row {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	min-width: 0;
	min-height: 38px;
	margin: 0;
	padding: 0 4px 0 10px;
	border-radius: 8px;
	line-height: 1.35;
	transition: background-color 150ms ease;
}

.widget_product_categories .tc-category-row--expandable {
	align-items: flex-start;
	cursor: pointer;
}

.widget_product_categories .tc-category-row:hover {
	background: var(--tc-category-hover);
}

.widget_product_categories .tc-category-link {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	padding: 8px 0;
	color: var(--tc-category-text);
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.35;
	overflow-wrap: anywhere;
	cursor: pointer;
	transition: color 150ms ease;
}

.widget_product_categories .tc-category-row:hover .tc-category-link {
	color: #111;
}

.widget_product_categories .tc-category-row__hit {
	flex: 0 0 12px;
	align-self: stretch;
	min-width: 12px;
	min-height: 100%;
}

.widget_product_categories .tc-category-toggle {
	display: inline-flex;
	flex: 0 0 28px;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: 5px 0 0;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #707570;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: background-color 150ms ease, color 150ms ease;
}

.widget_product_categories .tc-category-toggle:hover {
	background: rgba(0, 0, 0, 0.05);
	color: #252a25;
}

.widget_product_categories .tc-category-toggle:focus {
	outline: none;
	box-shadow: none;
}

.widget_product_categories .tc-category-toggle:focus-visible {
	outline: 2px solid var(--tc-category-focus);
	outline-offset: 1px;
}

.widget_product_categories .tc-category-toggle__icon {
	width: 14px;
	height: 14px;
	transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.widget_product_categories .tc-category-toggle[aria-expanded="true"] .tc-category-toggle__icon {
	transform: rotate(90deg);
}

/* Active / current category */
.widget_product_categories li.current-cat > .tc-category-row {
	background: var(--tc-category-active-bg);
	box-shadow: inset 3px 0 0 var(--tc-category-active-bar);
}

.widget_product_categories li.current-cat > .tc-category-row .tc-category-link {
	color: #182219;
	font-weight: 600;
}

.widget_product_categories li.current-cat-parent > .tc-category-row .tc-category-link,
.widget_product_categories li.current-cat-ancestor > .tc-category-row .tc-category-link {
	color: #171b17;
	font-weight: 600;
}

/* Nested children tree */
.widget_product_categories ul.children {
	display: block;
	position: relative;
	margin: 2px 0 6px 14px;
	padding: 2px 0 2px 8px;
	border-left: 1.5px solid var(--tc-category-border);
}

.widget_product_categories ul.children li.cat-item {
	margin: 0;
}

.widget_product_categories ul.children .tc-category-row {
	min-height: 34px;
	padding-left: 8px;
}

.widget_product_categories ul.children .tc-category-link {
	padding: 6px 0;
	color: var(--tc-category-muted);
	font-size: 13.5px;
	font-weight: 400;
}

.widget_product_categories ul.children .tc-category-row:hover .tc-category-link {
	color: #171a17;
}

.widget_product_categories ul.children ul.children {
	margin-left: 10px;
}

.widget_product_categories ul.children li.current-cat > .tc-category-row {
	background: var(--tc-category-active-bg);
	box-shadow: inset 3px 0 0 var(--tc-category-active-bar);
}

.widget_product_categories ul.children li.current-cat > .tc-category-row .tc-category-link {
	color: #182219;
	font-weight: 600;
}

.widget_product_categories ul.children[hidden] {
	display: none !important;
}

/* Mode control: single quiet text link */
.widget_product_categories .tc-cat-all {
	display: none;
	align-items: center;
	gap: 6px;
	width: auto;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #6a716a;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: color 150ms ease;
}

.widget_product_categories.tc-cat-focused .tc-cat-all,
.widget_product_categories.tc-cat-browsing-all .tc-cat-all {
	display: inline-flex;
}

.widget_product_categories .tc-cat-all:hover {
	background: transparent;
	color: var(--tc-category-active-bar);
}

.widget_product_categories .tc-cat-all:focus {
	outline: none;
}

.widget_product_categories .tc-cat-all:focus-visible {
	outline: 2px solid var(--tc-category-focus);
	outline-offset: 2px;
	border-radius: 4px;
}

.widget_product_categories .tc-cat-all__icon {
	display: inline-flex;
	flex: 0 0 14px;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	color: inherit;
}

.widget_product_categories .tc-cat-all__icon svg {
	width: 14px;
	height: 14px;
}

.widget_product_categories .tc-cat-all__label {
	white-space: nowrap;
}

.widget_product_categories.tc-cat-browsing-all ul.product-categories {
	max-height: min(68vh, 560px);
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding-right: 4px;
	scrollbar-color: #cfd4cf transparent;
	scrollbar-width: thin;
	overscroll-behavior: contain;
}

.widget_product_categories.tc-cat-browsing-all ul.product-categories::-webkit-scrollbar {
	width: 6px;
}

.widget_product_categories.tc-cat-browsing-all ul.product-categories::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: #cfd4cf;
}

.widget_product_categories.tc-cat-focused li.tc-cat-context-hidden {
	display: none !important;
}

.widget_product_categories.tc-cat-focused li.tc-cat-context-ancestor > .tc-category-row {
	display: none;
}

.widget_product_categories.tc-cat-focused li.tc-cat-context-ancestor > ul.children {
	margin-left: 0;
	padding-left: 0;
	border-left: 0;
}

/* Context parent as ancestor of a leaf: hide fake section title */
.widget_product_categories.tc-cat-focused li.tc-cat-context-parent:not(.current-cat) > .tc-category-row {
	display: none !important;
}

.widget_product_categories.tc-cat-focused li.tc-cat-context-parent:not(.current-cat) > ul.children {
	margin: 0;
	padding: 0;
	border-left: 0;
}

/* Focused list: checkbox rows + counts (siblings / children / current) */
.widget_product_categories.tc-cat-focused li.tc-cat-context-sibling > .tc-category-row,
.widget_product_categories.tc-cat-focused li.tc-cat-context-parent.current-cat > ul.children > li > .tc-category-row,
.widget_product_categories.tc-cat-focused li.current-cat:not(.tc-cat-context-parent) > .tc-category-row {
	align-items: center;
	gap: 0.55rem;
	min-height: 0;
	margin: 0 0 0.45rem;
	padding: 0.15rem 0;
	background: transparent;
	border-radius: 0;
	box-shadow: none;
}

.widget_product_categories.tc-cat-focused li.tc-cat-context-sibling > .tc-category-row:hover,
.widget_product_categories.tc-cat-focused li.tc-cat-context-parent.current-cat > ul.children > li > .tc-category-row:hover,
.widget_product_categories.tc-cat-focused li.current-cat:not(.tc-cat-context-parent) > .tc-category-row:hover {
	background: transparent;
}

.widget_product_categories.tc-cat-focused li.tc-cat-context-sibling > .tc-category-row::before,
.widget_product_categories.tc-cat-focused li.tc-cat-context-parent.current-cat > ul.children > li > .tc-category-row::before,
.widget_product_categories.tc-cat-focused li.current-cat:not(.tc-cat-context-parent) > .tc-category-row::before {
	content: "";
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	border: 1px solid #b5b5b5;
	border-radius: 2px;
	background: #fff;
	box-sizing: border-box;
}

.widget_product_categories.tc-cat-focused li.current-cat:not(.tc-cat-context-parent) > .tc-category-row::before,
.widget_product_categories.tc-cat-focused li.tc-cat-context-parent.current-cat > ul.children > li.current-cat > .tc-category-row::before {
	border-color: var(--tc-category-active-bar);
	background: var(--tc-category-active-bar)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M10.1 2.2 4.6 8.4 1.9 5.6l-1 1 3.7 3.9 6.5-7.3z'/%3E%3C/svg%3E")
		center / 10px 10px no-repeat;
}

.widget_product_categories.tc-cat-focused li.tc-cat-context-sibling > .tc-category-row .tc-category-toggle,
.widget_product_categories.tc-cat-focused li.tc-cat-context-sibling > .tc-category-row .tc-category-row__hit,
.widget_product_categories.tc-cat-focused li.tc-cat-context-parent.current-cat > ul.children > li > .tc-category-row .tc-category-toggle,
.widget_product_categories.tc-cat-focused li.tc-cat-context-parent.current-cat > ul.children > li > .tc-category-row .tc-category-row__hit,
.widget_product_categories.tc-cat-focused li.current-cat:not(.tc-cat-context-parent) > .tc-category-row .tc-category-toggle,
.widget_product_categories.tc-cat-focused li.current-cat:not(.tc-cat-context-parent) > .tc-category-row .tc-category-row__hit {
	display: none !important;
}

.widget_product_categories.tc-cat-focused li.tc-cat-context-sibling > .tc-category-row .tc-category-link,
.widget_product_categories.tc-cat-focused li.tc-cat-context-parent.current-cat > ul.children > li > .tc-category-row .tc-category-link,
.widget_product_categories.tc-cat-focused li.current-cat:not(.tc-cat-context-parent) > .tc-category-row .tc-category-link {
	flex: 1 1 auto;
	padding: 0;
	color: #222;
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.45;
}

.widget_product_categories.tc-cat-focused li.current-cat:not(.tc-cat-context-parent) > .tc-category-row .tc-category-link {
	font-weight: 700;
	color: #111;
}

.widget_product_categories.tc-cat-focused li.tc-cat-context-sibling > .tc-category-row .count,
.widget_product_categories.tc-cat-focused li.tc-cat-context-parent.current-cat > ul.children > li > .tc-category-row .count,
.widget_product_categories.tc-cat-focused li.current-cat:not(.tc-cat-context-parent) > .tc-category-row .count {
	display: inline !important;
	position: static !important;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	color: #9a9a9a;
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.45;
}

.widget_product_categories.tc-cat-focused li.current-cat > .tc-category-row {
	background: transparent !important;
	box-shadow: none !important;
}

/* Parent category as current: keep a quiet checkbox row for itself */
.widget_product_categories.tc-cat-focused li.tc-cat-context-parent.current-cat > .tc-category-row {
	display: flex !important;
	align-items: center;
	gap: 0.55rem;
	min-height: 0;
	margin: 0 0 0.45rem;
	padding: 0.15rem 0;
	background: transparent !important;
	box-shadow: none !important;
}

.widget_product_categories.tc-cat-focused li.tc-cat-context-parent.current-cat > .tc-category-row::before {
	content: "";
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	border: 1px solid var(--tc-category-active-bar);
	border-radius: 2px;
	background: var(--tc-category-active-bar)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M10.1 2.2 4.6 8.4 1.9 5.6l-1 1 3.7 3.9 6.5-7.3z'/%3E%3C/svg%3E")
		center / 10px 10px no-repeat;
	box-sizing: border-box;
}

.widget_product_categories.tc-cat-focused li.tc-cat-context-parent.current-cat > .tc-category-row .tc-category-toggle,
.widget_product_categories.tc-cat-focused li.tc-cat-context-parent.current-cat > .tc-category-row .tc-category-row__hit {
	display: none !important;
}

.widget_product_categories.tc-cat-focused li.tc-cat-context-parent.current-cat > .tc-category-row .tc-category-link {
	flex: 1 1 auto;
	padding: 0;
	color: #111;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.45;
}

.widget_product_categories.tc-cat-focused li.tc-cat-context-parent.current-cat > .tc-category-row .count {
	display: inline !important;
	position: static !important;
	color: #9a9a9a;
	font-size: 0.8125rem;
}

.widget_product_categories.tc-cat-focused li.tc-cat-context-parent.current-cat > ul.children {
	margin: 0;
	padding: 0;
	border-left: 0;
}

@media (max-width: 992px) {
	.widget_product_categories .tc-category-row {
		min-height: 42px;
	}

	.widget_product_categories ul.children .tc-category-row {
		min-height: 38px;
	}

	.widget_product_categories.tc-cat-focused li.tc-cat-context-sibling > .tc-category-row,
	.widget_product_categories.tc-cat-focused li.current-cat > .tc-category-row {
		min-height: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.widget_product_categories .tc-category-toggle__icon,
	.widget_product_categories .tc-category-row {
		transition: none;
	}
}

/* -------------------------------------------------------------------------
   Shared filter titles (native + YITH) — flat headings, no +/- chrome
   ------------------------------------------------------------------------- */

.widget_layered_nav .tc-filter-trigger,
.widget_rating_filter .tc-filter-trigger,
.widget_price_filter .tc-filter-trigger,
.yith-wcan-filters .yith-wcan-filter .filter-title,
.yith-wcan-filters .yith-wcan-filter .filter-title.collapsable,
.yith-wcan-filters .yith-wcan-filter .filter-title.tc-yith-fallback-trigger {
	position: relative;
	display: block;
	margin: 0 0 0.75rem;
	padding: 0.45rem 0 0.55rem;
	border: 0;
	border-bottom: 1px solid #e8ebe7;
	font-size: 0.95rem;
	font-weight: 750;
	line-height: 1.35;
	color: #0f0f0f;
	cursor: default;
	user-select: none;
}

.widget_layered_nav .tc-filter-trigger::after,
.widget_rating_filter .tc-filter-trigger::after,
.widget_price_filter .tc-filter-trigger::after,
.yith-wcan-filters .yith-wcan-filter .filter-title.collapsable::after,
.yith-wcan-filters .yith-wcan-filter .filter-title.tc-yith-fallback-trigger::after {
	display: none !important;
	content: none !important;
}

.widget_layered_nav .tc-filter-trigger:focus-visible,
.widget_rating_filter .tc-filter-trigger:focus-visible,
.widget_price_filter .tc-filter-trigger:focus-visible,
.yith-wcan-filters .yith-wcan-filter .filter-title.collapsable:focus-visible,
.yith-wcan-filters .yith-wcan-filter .filter-title.tc-yith-fallback-trigger:focus-visible {
	outline: 2px solid var(--tc-sidebar-focus);
	outline-offset: 2px;
}

/* Keep panels open — screen shows all sections expanded */
.widget.tc-filter-collapsed .tc-filter-panel,
.yith-wcan-filters .yith-wcan-filter.tc-yith-collapsed > .filter-content {
	display: block !important;
}

.yith-wcan-filters .yith-wcan-filter {
	margin: 0 0 1.65rem;
	padding: 0 0 0.35rem;
	border-bottom: 1px solid #eef1ee;
}

/* -------------------------------------------------------------------------
   Native Woo layered nav checkboxes
   ------------------------------------------------------------------------- */

.widget_layered_nav ul li {
	position: relative;
	margin: 0 0 0.45rem;
	padding-left: 1.65rem;
	list-style: none;
}

.widget_layered_nav ul li::before {
	content: "" !important;
	display: block !important;
	position: absolute;
	top: 0.2rem;
	left: 0;
	width: 16px;
	height: 16px;
	margin: 0;
	border: 1px solid #b5b5b5;
	border-radius: 2px;
	background: #fff;
	box-shadow: none;
}

.widget_layered_nav ul li.chosen::before,
.widget_layered_nav ul li.woocommerce-widget-layered-nav-list__item--chosen::before {
	border-color: var(--tc-sidebar-accent);
	background: var(--tc-sidebar-accent)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M10.1 2.2 4.6 8.4 1.9 5.6l-1 1 3.7 3.9 6.5-7.3z'/%3E%3C/svg%3E")
		center / 10px 10px no-repeat;
}

.widget_layered_nav ul li a {
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--tc-sidebar-text);
	text-decoration: none;
}

/* -------------------------------------------------------------------------
   YITH checkbox filters — match focused Kategorie checkbox rows 1:1
   ------------------------------------------------------------------------- */

.yith-wcan-filters .filter-items .filter-item.checkbox {
	margin: 0 0 0.4rem;
	padding: 0;
	list-style: none;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.yith-wcan-filters .filter-items .filter-item.checkbox > label {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.55rem;
	width: 100%;
	margin: 0;
	padding: 0.15rem 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
}

.yith-wcan-filters .filter-items .filter-item.checkbox > label > input[type="checkbox"] {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	white-space: nowrap;
}

.yith-wcan-filters .filter-items .filter-item.checkbox > label::before {
	content: "";
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	margin: 0;
	border: 1px solid #b5b5b5;
	border-radius: 2px;
	background: #fff;
	box-sizing: border-box;
}

.yith-wcan-filters .filter-items .filter-item.checkbox.active > label::before,
.yith-wcan-filters .filter-items .filter-item.checkbox.checked > label::before {
	border-color: var(--tc-sidebar-accent);
	background: var(--tc-sidebar-accent)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M10.1 2.2 4.6 8.4 1.9 5.6l-1 1 3.7 3.9 6.5-7.3z'/%3E%3C/svg%3E")
		center / 10px 10px no-repeat;
}

.yith-wcan-filters .filter-items .filter-item.checkbox > label > input[type="checkbox"]:focus-visible + a,
.yith-wcan-filters .filter-items .filter-item.checkbox > label:has(> input[type="checkbox"]:focus-visible)::before {
	outline: 2px solid var(--tc-sidebar-focus);
	outline-offset: 2px;
}

.yith-wcan-filters .filter-items .filter-item.checkbox .term-label {
	display: flex;
	flex: 1 1 auto;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #222;
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.45;
	text-decoration: none !important;
	box-shadow: none;
}

.yith-wcan-filters .filter-items .filter-item.checkbox.active .term-label {
	font-weight: 700;
	color: #111;
}

.yith-wcan-filters .filter-items .filter-item.checkbox .item-count {
	flex: 0 0 auto;
	color: #b0b5b0;
	font-size: 0.78rem;
	font-weight: 400;
}

/* Kill YITH default chip / button chrome on tax checkboxes */
.yith-wcan-filters .filter-items .filter-item.checkbox > label:after,
.yith-wcan-filters .filter-items .filter-item.checkbox .term-label:before,
.yith-wcan-filters .filter-items .filter-item.checkbox .term-label:after,
.yith-wcan-filters .filter-items .filter-item.checkbox .checkboxbutton {
	display: none !important;
	content: none !important;
}

.yith-wcan-filters .filter-content > .show-more {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	margin: 0.35rem 0 0;
	color: #6a716a;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
}

.yith-wcan-filters .filter-content > .show-more::after {
	content: "↓";
	font-size: 0.75rem;
	line-height: 1;
}

.yith-wcan-filters .filter-content > .show-more:hover {
	color: var(--tc-sidebar-accent);
}

/* -------------------------------------------------------------------------
   Native Woo price slider
   ------------------------------------------------------------------------- */

.widget_price_filter .ui-slider-horizontal {
	height: 4px;
	border: 0;
	border-radius: 2px;
	background: #e8e8e8;
}

.widget_price_filter .ui-slider .ui-slider-range {
	height: 100%;
	border: 0;
	border-radius: 2px;
	background: var(--tc-sidebar-accent);
	box-shadow: none;
}

.widget_price_filter .price_slider_wrapper .ui-widget-content {
	border: 0;
	border-radius: 2px;
	background: #e8e8e8;
	box-shadow: none;
}

.widget_price_filter .ui-slider .ui-slider-handle {
	top: 50%;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	margin-left: -8px;
	border: 0;
	border-radius: 50%;
	background: var(--tc-sidebar-accent);
	box-shadow: none;
	cursor: ew-resize;
}

.widget_price_filter .ui-slider .ui-slider-handle.ui-state-active,
.widget_price_filter .ui-slider .ui-slider-handle:hover {
	box-shadow: 0 0 0 3px var(--tc-sidebar-accent-soft);
}

.widget_price_filter .ui-slider .ui-slider-handle:focus-visible {
	outline: 2px solid var(--tc-sidebar-focus);
	outline-offset: 2px;
}

/* -------------------------------------------------------------------------
   YITH active chips, reset, price slider (both), long lists
   ------------------------------------------------------------------------- */

.widget_yith-woocommerce-ajax-navigation-filters > .widget-title:empty {
	display: none;
}

.yith-wcan-filters .filter-items {
	max-height: none;
	margin: 0;
	padding: 0;
	overflow: visible;
}

.yith-wcan-active-filters {
	margin: 0 0 0.85rem;
}

.yith-wcan-active-filters .active-filter {
	margin: 0 0 0.45rem;
}

.yith-wcan-active-filters .active-filter b {
	display: block;
	margin: 0 0 0.3rem;
	color: var(--tc-sidebar-text);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.yith-wcan-active-filters .active-filter .active-filter-label {
	border-color: var(--tc-sidebar-accent);
	border-radius: 999px;
	background: var(--tc-sidebar-accent-soft);
	color: var(--tc-sidebar-text);
	font-size: 0.8125rem;
	padding: 0.2rem 1.15rem 0.2rem 0.7rem;
}

.yith-wcan-active-filters .active-filter .active-filter-label:after {
	background-color: var(--tc-sidebar-accent);
}

.yith-wcan-filters .reset-filters,
.yith-wcan-active-filters .reset-filters,
.yith-wcan-reset-filters {
	border-color: var(--tc-sidebar-accent);
	border-radius: 4px;
	background: var(--tc-sidebar-accent);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
}

.yith-wcan-filters .reset-filters:hover,
.yith-wcan-active-filters .reset-filters:hover,
.yith-wcan-reset-filters:hover {
	border-color: var(--tc-sidebar-accent);
	background: #7aa31e;
	color: #fff;
}

.yith-wcan-filters .yith-wcan-filter .price-slider {
	padding: 0.35rem 0 0;
}

.yith-wcan-filters .yith-wcan-filter .price-slider .irs,
.yith-wcan-filters .yith-wcan-filter .price-slider .irs.irs--round {
	/* Keep tip chips inside #secondary / .widget-area (overflow-x: hidden) */
	box-sizing: border-box;
	width: auto;
	margin: 0 0.85rem;
	overflow: visible;
}

.yith-wcan-filters .yith-wcan-filter .price-slider .irs-bar {
	background-color: var(--tc-sidebar-accent);
}

.yith-wcan-filters .yith-wcan-filter .price-slider .irs-handle {
	border-color: var(--tc-sidebar-accent);
	background-color: var(--tc-sidebar-accent);
}

.yith-wcan-filters .yith-wcan-filter .price-slider .irs-from,
.yith-wcan-filters .yith-wcan-filter .price-slider .irs-to,
.yith-wcan-filters .yith-wcan-filter .price-slider .irs-single {
	background-color: var(--tc-sidebar-accent);
	max-width: 100%;
	box-sizing: border-box;
	white-space: nowrap;
}

.yith-wcan-filters .yith-wcan-filter .price-slider.both {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem 0.75rem;
	padding: 0.25rem 0 0;
}

.yith-wcan-filters .yith-wcan-filter .price-slider.both:after {
	display: none;
}

.yith-wcan-filters .yith-wcan-filter .price-slider.both .irs,
.yith-wcan-filters .yith-wcan-filter .price-slider.both .price-slider-ui {
	grid-column: 1 / -1;
	margin: 0 0.85rem 0.15rem;
}

.yith-wcan-filters .yith-wcan-filter .price-slider.both .tc-price-field {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.yith-wcan-filters .yith-wcan-filter .price-slider.both .tc-price-field__label {
	margin: 0;
	color: #6a716a;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.2;
}

.yith-wcan-filters .yith-wcan-filter .price-slider.both .price-slider-min,
.yith-wcan-filters .yith-wcan-filter .price-slider.both .price-slider-max {
	float: none;
	width: 100%;
	min-width: 0;
	height: 36px;
	margin: 0;
	padding: 0.35rem 0.55rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
	color: #222;
	font-size: 0.875rem;
	line-height: 1.3;
	box-shadow: none;
}
