/**
 * CaseSolved — shop sidebar
 * Turquoise filter panel + white text — readable contrast, consistent edges.
 */

:root {
	--cs-sidebar-teal: #12b0a7;
	--cs-sidebar-teal-deep: #0e8f88;
	--cs-sidebar-teal-hover: #0d7a8c;
	--cs-sidebar-teal-soft: #6ecbd9;
	--cs-sidebar-text: #1a2436;
	--cs-sidebar-muted: #6b7c93;
	--cs-sidebar-border: #d0d7e2;
	--cs-sidebar-radius: 10px;
	--cs-sidebar-radius-sm: 8px;
	--cs-sidebar-chip: rgba(255, 255, 255, 0.2);
	--cs-sidebar-chip-border: rgba(255, 255, 255, 0.42);
	--cs-sidebar-chip-hover: rgba(255, 255, 255, 0.3);
	--cs-sidebar-chip-active: rgba(255, 255, 255, 0.38);
	--cs-sidebar-input-bg: #ffffff;
	--cs-sidebar-input-text: #1a2436;
	--cs-sidebar-scrollbar-thumb: rgba(255, 255, 255, 0.55);
	--cs-sidebar-scrollbar-track: rgba(0, 0, 0, 0.12);
}

/* -------------------------------------------------------------------------- */
/* Categories                                                                 */
/* -------------------------------------------------------------------------- */

.wc-block-product-categories-list-item-count {
	display: none !important;
}

/* -------------------------------------------------------------------------- */
/* Category tree hierarchy                                                    */
/* -------------------------------------------------------------------------- */

.wp-block-woocommerce-product-categories.cs-category-tree .wc-block-product-categories-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wp-block-woocommerce-product-categories.cs-category-tree .wc-block-product-categories-list-item {
	margin: 0;
	padding: 0;
}

.wp-block-woocommerce-product-categories.cs-category-tree .cs-category-tree-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 11px;
	margin: 4px 0;
	border-radius: var(--cs-sidebar-radius-sm);
	line-height: 1.35;
	border: 1px solid transparent;
	background: var(--cs-sidebar-chip);
	transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.wp-block-woocommerce-product-categories.cs-category-tree .cs-category-tree-row:hover {
	background: var(--cs-sidebar-chip-hover);
	border-color: var(--cs-sidebar-chip-border);
}

.wp-block-woocommerce-product-categories.cs-category-tree .cs-category-tree-row > a {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
	gap: 6px;
	padding: 0;
	margin: 0;
	background: transparent !important;
	box-shadow: none !important;
	text-decoration: none;
}

.wp-block-woocommerce-product-categories.cs-category-tree
	.wc-block-product-categories-list-item
	> .wc-block-product-categories-list {
	margin: 0 0 4px 0;
	padding: 0 0 0 8px;
	border: 0;
}

.wp-block-woocommerce-product-categories.cs-category-tree
	.wc-block-product-categories-list-item[data-cs-tree-depth="0"]
	> .cs-category-tree-row {
	margin-top: 10px;
	background: var(--cs-sidebar-chip);
	border-color: var(--cs-sidebar-chip-border);
}

.wp-block-woocommerce-product-categories.cs-category-tree
	.wc-block-product-categories-list-item[data-cs-tree-depth="0"]:first-child
	> .cs-category-tree-row {
	margin-top: 2px;
}

.wp-block-woocommerce-product-categories.cs-category-tree
	.wc-block-product-categories-list-item[data-cs-tree-depth="0"]
	> .cs-category-tree-row
	.wc-block-product-categories-list-item__name {
	font-weight: 700;
	font-size: 12.5px;
	letter-spacing: 0.02em;
	text-transform: none;
	color: #ffffff !important;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

.wp-block-woocommerce-product-categories.cs-category-tree
	.wc-block-product-categories-list-item[data-cs-tree-depth="1"]
	> .cs-category-tree-row {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.28);
}

.wp-block-woocommerce-product-categories.cs-category-tree
	.wc-block-product-categories-list-item[data-cs-tree-depth="2"]
	> .cs-category-tree-row,
.wp-block-woocommerce-product-categories.cs-category-tree
	.wc-block-product-categories-list-item[data-cs-tree-depth="3"]
	> .cs-category-tree-row {
	padding-left: 14px;
	background: rgba(255, 255, 255, 0.1);
}

.wp-block-woocommerce-product-categories.cs-category-tree .cs-category-tree-toggle,
.wp-block-woocommerce-product-categories.cs-category-tree .cs-category-tree-spacer {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
}

.wp-block-woocommerce-product-categories.cs-category-tree .cs-category-tree-spacer {
	display: inline-block;
}

.wp-block-woocommerce-product-categories.cs-category-tree .cs-category-tree-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.22);
	color: #ffffff;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.wp-block-woocommerce-product-categories.cs-category-tree .cs-category-tree-toggle:hover {
	background: rgba(255, 255, 255, 0.36);
	border-color: #ffffff;
}

.wp-block-woocommerce-product-categories.cs-category-tree .cs-category-tree-toggle:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

.wp-block-woocommerce-product-categories.cs-category-tree .cs-category-tree-toggle-icon {
	display: block;
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform 0.2s ease;
	margin-top: -2px;
}

.wp-block-woocommerce-product-categories.cs-category-tree
	.cs-category-tree-expanded
	> .cs-category-tree-row
	.cs-category-tree-toggle-icon {
	transform: rotate(45deg);
	margin-top: -4px;
}

.wp-block-woocommerce-product-categories.cs-category-tree
	.cs-category-tree-item--has-children.cs-category-tree-collapsed
	> .wc-block-product-categories-list {
	display: none !important;
}

.wp-block-woocommerce-product-categories.cs-category-tree
	.cs-category-tree-item--has-children.cs-category-tree-expanded
	> .wc-block-product-categories-list {
	display: block !important;
}

.wp-block-woocommerce-product-categories.cs-category-tree .cs-category-current > .cs-category-tree-row {
	background: var(--cs-sidebar-chip-active) !important;
	border-color: #ffffff !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.wp-block-woocommerce-product-categories.cs-category-tree .cs-category-ancestor > .cs-category-tree-row {
	background: rgba(255, 255, 255, 0.24) !important;
	border-color: rgba(255, 255, 255, 0.45) !important;
	box-shadow: none;
}

.wp-block-woocommerce-product-categories.cs-category-tree
	.cs-category-tree-row
	.wc-block-product-categories-list-item__name {
	font-size: 13.5px;
	font-weight: 600;
	color: #ffffff !important;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
}

.wp-block-woocommerce-product-categories.cs-category-tree
	.cs-category-current
	> .cs-category-tree-row
	.wc-block-product-categories-list-item__name {
	font-weight: 700;
}

.cs-category-search-wrapper {
	margin-top: 4px;
	margin-bottom: 14px;
	width: 100%;
	display: block;
	box-sizing: border-box;
	position: relative;
}

.cs-category-search-wrapper::before {
	content: "" / "";
	position: absolute;
	inset-inline-start: 12px;
	top: 50%;
	translate: 0 -50%;
	width: 14px;
	height: 14px;
	pointer-events: none;
	z-index: 1;
	background-color: #6b7c93;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M20 20l-3.5-3.5' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M20 20l-3.5-3.5' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

/* Light search field — matches price inputs on turquoise panel */
#csCategorySearchInput {
	width: 100%;
	padding: 10px 12px 10px 36px;
	background-color: var(--cs-sidebar-input-bg);
	color: var(--cs-sidebar-input-text);
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 999px;
	font-size: 13px;
	font-family: inherit;
	outline: none;
	box-sizing: border-box;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#csCategorySearchInput::placeholder {
	color: #6b7c93;
	opacity: 1;
}

#csCategorySearchInput:focus {
	border-color: #ffffff;
	background-color: #ffffff;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
	outline: none;
}

.wp-block-woocommerce-product-categories .wc-block-product-categories-list--depth-0 {
	--scrollbar-thumb: var(--cs-sidebar-scrollbar-thumb);
	--scrollbar-track: var(--cs-sidebar-scrollbar-track);
	max-height: 420px;
	overflow-y: auto;
	padding-right: 6px;
	scrollbar-width: thin;
	scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
	scrollbar-gutter: stable;
}

.wp-block-woocommerce-product-categories
	.wc-block-product-categories-list--depth-0::-webkit-scrollbar {
	width: 8px;
}

.wp-block-woocommerce-product-categories
	.wc-block-product-categories-list--depth-0::-webkit-scrollbar-track {
	background: var(--scrollbar-track);
	border-radius: 999px;
}

.wp-block-woocommerce-product-categories
	.wc-block-product-categories-list--depth-0::-webkit-scrollbar-thumb {
	background: var(--scrollbar-thumb);
	border-radius: 999px;
	border: 2px solid transparent;
	background-clip: padding-box;
}

@media (prefers-contrast: more) {
	.wp-block-woocommerce-product-categories .wc-block-product-categories-list--depth-0 {
		--scrollbar-thumb: #ffffff;
		--scrollbar-track: #000000;
	}
}

/* Category links — white when inside the turquoise filter panel */
#secondary .wc-block-product-filters .wc-block-product-categories-list-item a,
#secondary .wc-block-product-filters .wc-block-product-categories-list-item__name,
#secondary .widget_layered_nav .wc-block-product-categories-list-item a,
.ast-filter-wrap .wc-block-product-categories-list-item a,
.ast-filter-wrap .wc-block-product-categories-list-item__name,
.wc-block-product-filters .wc-block-product-categories-list-item a,
.wc-block-product-filters .wc-block-product-categories-list-item__name {
	background: transparent !important;
	box-shadow: none !important;
	color: #ffffff !important;
}

#secondary .wc-block-product-filters .wc-block-product-categories-list-item a:hover,
#secondary .wc-block-product-filters .wc-block-product-categories-list-item a:hover .wc-block-product-categories-list-item__name,
.ast-filter-wrap .wc-block-product-categories-list-item a:hover,
.wc-block-product-filters .wc-block-product-categories-list-item a:hover {
	color: #ffffff !important;
	opacity: 1;
	background: transparent !important;
}

/* Active/current: style the row only — never paint a second box on the <a> */
#secondary .wc-block-product-filters .cs-category-current > a,
#secondary .wc-block-product-filters .cs-category-current > .cs-category-tree-row > a,
#secondary .wc-block-product-filters .cs-category-current > a .wc-block-product-categories-list-item__name,
#secondary .wc-block-product-filters .cs-category-current > .cs-category-tree-row .wc-block-product-categories-list-item__name,
.ast-filter-wrap .cs-category-current > a,
.ast-filter-wrap .cs-category-current > .cs-category-tree-row > a,
.ast-filter-wrap .cs-category-current > a .wc-block-product-categories-list-item__name,
.wc-block-product-filters .cs-category-current > a,
.wc-block-product-filters .cs-category-current > .cs-category-tree-row > a,
.wc-block-product-filters .cs-category-current > a .wc-block-product-categories-list-item__name,
.wc-block-product-filters__overlay-content .cs-category-current > a,
.wc-block-product-filters__overlay-content .cs-category-current > .cs-category-tree-row > a,
.wc-block-product-filters__overlay-content
	.cs-category-current
	> a
	.wc-block-product-categories-list-item__name,
.wc-block-product-filters__overlay-content
	.cs-category-current
	> .cs-category-tree-row
	.wc-block-product-categories-list-item__name {
	font-weight: 700;
	color: #ffffff !important;
	background: transparent !important;
	box-shadow: none !important;
}

.cs-category-current {
	background: none;
	margin-left: 0;
	padding-left: 0;
}

#secondary .wc-block-product-filters .cs-category-ancestor > a,
#secondary .wc-block-product-filters .cs-category-ancestor > .cs-category-tree-row > a,
#secondary .wc-block-product-filters .cs-category-ancestor > a .wc-block-product-categories-list-item__name,
.ast-filter-wrap .cs-category-ancestor > a,
.ast-filter-wrap .cs-category-ancestor > .cs-category-tree-row > a,
.ast-filter-wrap .cs-category-ancestor > a .wc-block-product-categories-list-item__name,
.wc-block-product-filters .cs-category-ancestor > a,
.wc-block-product-filters .cs-category-ancestor > .cs-category-tree-row > a,
.wc-block-product-filters .cs-category-ancestor > a .wc-block-product-categories-list-item__name,
.wc-block-product-filters__overlay-content .cs-category-ancestor > a,
.wc-block-product-filters__overlay-content .cs-category-ancestor > .cs-category-tree-row > a,
.wc-block-product-filters__overlay-content
	.cs-category-ancestor
	> a
	.wc-block-product-categories-list-item__name {
	color: #ffffff !important;
	font-weight: 600;
	opacity: 1;
	background: transparent !important;
	box-shadow: none !important;
}

.cs-category-search-hidden,
.cs-category-context-hidden,
.cs-category-branch-search-hidden,
.cs-category-model-hidden {
	display: none !important;
}

/* Branch-level search */
.cs-branch-search-wrapper {
	margin: 10px 0 12px;
	width: 100%;
	box-sizing: border-box;
	position: relative;
}

.cs-branch-search-wrapper::before {
	content: "" / "";
	position: absolute;
	inset-inline-start: 12px;
	top: 50%;
	translate: 0 -50%;
	width: 14px;
	height: 14px;
	pointer-events: none;
	z-index: 1;
	background-color: #6b7c93;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M20 20l-3.5-3.5' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M20 20l-3.5-3.5' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

.cs-branch-search-label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #ffffff;
	background: transparent !important;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
}

.cs-branch-search-input {
	width: 100%;
	padding: 10px 12px 10px 36px;
	background-color: var(--cs-sidebar-input-bg);
	color: var(--cs-sidebar-input-text);
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 999px;
	font-size: 13px;
	font-family: inherit;
	outline: none;
	box-sizing: border-box;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.cs-branch-search-input::placeholder {
	color: #6b7c93;
	opacity: 1;
}

.cs-branch-search-input:focus {
	border-color: #ffffff;
	background-color: #ffffff;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
	outline: none;
}

.cs-branch-has-search > .cs-category-tree-row > a,
.cs-branch-has-search > a {
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	pointer-events: auto;
}

.cs-branch-has-search > .wc-block-product-categories-list {
	--scrollbar-thumb: var(--cs-sidebar-scrollbar-thumb);
	--scrollbar-track: var(--cs-sidebar-scrollbar-track);
	max-height: 280px;
	overflow-y: auto;
	padding-right: 6px;
	margin-top: 0;
	scrollbar-width: thin;
	scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.cs-branch-has-search > .wc-block-product-categories-list::-webkit-scrollbar {
	width: 8px;
}

.cs-branch-has-search > .wc-block-product-categories-list::-webkit-scrollbar-track {
	background: var(--scrollbar-track);
	border-radius: 999px;
}

.cs-branch-has-search > .wc-block-product-categories-list::-webkit-scrollbar-thumb {
	background: var(--scrollbar-thumb);
	border-radius: 999px;
	border: 2px solid transparent;
	background-clip: padding-box;
}

#secondary .wc-block-product-filters .cs-branch-has-search > .cs-category-tree-row > a,
#secondary .wc-block-product-filters .cs-branch-has-search > .cs-category-tree-row .wc-block-product-categories-list-item__name,
#secondary .wc-block-product-filters .cs-branch-has-search > a,
#secondary .wc-block-product-filters .cs-branch-has-search > a .wc-block-product-categories-list-item__name,
.ast-filter-wrap .cs-branch-has-search > .cs-category-tree-row > a,
.ast-filter-wrap .cs-branch-has-search > a,
.ast-filter-wrap .cs-branch-has-search > a .wc-block-product-categories-list-item__name,
.wc-block-product-filters .cs-branch-has-search > .cs-category-tree-row > a,
.wc-block-product-filters .cs-branch-has-search > a,
.wc-block-product-filters .cs-branch-has-search > a .wc-block-product-categories-list-item__name {
	color: #ffffff !important;
	background: transparent !important;
}

/* -------------------------------------------------------------------------- */
/* Classic + block filter widgets — inverted: turquoise bg, white text        */
/* -------------------------------------------------------------------------- */

#secondary .widget_layered_nav,
#secondary .woocommerce-widget-layered-nav,
#secondary .widget_layered_nav_filters,
#secondary .widget_rating_filter,
#secondary .widget_price_filter,
#secondary .wc-block-product-filters,
.ast-filter-wrap,
.wc-block-product-filters,
.wc-block-product-filters__overlay-content,
.wc-block-product-filters__overlay-dialog {
	--cs-filter-panel-bg: var(--cs-sidebar-teal);
	--cs-filter-panel-text: #ffffff;
	--cs-filter-panel-muted: rgba(255, 255, 255, 0.88);
	--cs-filter-panel-border: rgba(255, 255, 255, 0.42);
}

#secondary .widget_layered_nav,
#secondary .woocommerce-widget-layered-nav,
#secondary .widget_layered_nav_filters,
#secondary .widget_rating_filter,
#secondary .widget_price_filter,
.ast-filter-wrap .widget_layered_nav,
.ast-filter-wrap .woocommerce-widget-layered-nav,
.ast-filter-wrap .widget_price_filter,
.ast-filter-wrap .widget_rating_filter {
	background: var(--cs-filter-panel-bg) !important;
	color: var(--cs-filter-panel-text) !important;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--cs-sidebar-radius);
	padding: 16px 16px 14px;
	margin-bottom: 14px;
	box-shadow: 0 8px 20px rgba(8, 70, 66, 0.16);
}

#secondary .wc-block-product-filters,
.ast-filter-wrap .wc-block-product-filters,
.wc-block-product-filters {
	background: linear-gradient(
		180deg,
		var(--cs-sidebar-teal) 0%,
		var(--cs-sidebar-teal-deep) 100%
	) !important;
	color: var(--cs-filter-panel-text) !important;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--cs-sidebar-radius);
	padding: 16px 16px 14px;
	box-shadow: 0 8px 20px rgba(8, 70, 66, 0.16);
}

#secondary .woocommerce-widget-layered-nav .widget-title,
#secondary .widget_layered_nav .widget-title,
#secondary .widget_layered_nav_filters .widget-title,
#secondary .widget_rating_filter .widget-title,
#secondary .widget_price_filter .widget-title,
#secondary .wc-block-product-filters .wp-block-heading,
#secondary .wc-block-product-filters .widget-title,
.ast-filter-wrap .widget .widget-title,
.ast-filter-wrap .widget_block .wp-block-heading,
.ast-filter-wrap .wc-block-product-filters .wp-block-heading,
.wc-block-product-filters .wp-block-heading,
.wc-block-product-filters__overlay-content .wp-block-heading,
.wc-block-product-filters__overlay-dialog .wp-block-heading {
	background: transparent !important;
	color: var(--cs-filter-panel-text, #ffffff) !important;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.35;
	margin: 1.15em 0 0.7em;
	padding: 0;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
}

#secondary .wc-block-product-filters > .wp-block-heading:first-child,
#secondary .wc-block-product-filters > .widget-title:first-child,
.wc-block-product-filters > .wp-block-heading:first-child {
	margin-top: 0;
}

#secondary .woocommerce-widget-layered-nav ul,
#secondary .widget_layered_nav ul,
.ast-filter-wrap .widget ul,
.wc-block-product-filters .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#secondary .woocommerce-widget-layered-nav li,
#secondary .widget_layered_nav li,
#secondary .wc-block-product-filter-checkbox-list__list-item,
.ast-filter-wrap .widget li,
.wc-block-product-filters .widget li {
	background: transparent !important;
	margin: 0;
	padding: 0.2em 0;
}

#secondary .woocommerce-widget-layered-nav a,
#secondary .widget_layered_nav a,
#secondary .widget_layered_nav_filters a,
#secondary .widget_rating_filter a,
#secondary .widget_price_filter a,
#secondary .widget_rating_filter label,
#secondary .wc-block-product-filter-checkbox-list__label,
#secondary .wc-block-product-filter-checkbox-list__text,
#secondary .wc-block-product-filter-checkbox-list__item,
#secondary .wc-block-product-filter-removable-chips__item,
#secondary .wc-block-product-filter-clear-button .wp-block-button__link,
.ast-filter-wrap .widget a,
.ast-filter-wrap .widget label,
.ast-filter-wrap .wc-block-product-filter-checkbox-list__label,
.ast-filter-wrap .wc-block-product-filter-checkbox-list__text,
.wc-block-product-filters .widget a,
.wc-block-product-filters .widget label,
.wc-block-product-filters .wc-block-product-filter-checkbox-list__label,
.wc-block-product-filters .wc-block-product-filter-checkbox-list__text,
.wc-block-product-filters .wc-block-product-filter-checkbox-list__item,
.wc-block-product-filters .wc-block-product-filter-removable-chips__item,
.wc-block-product-filters.is-overlay-opened .wc-block-product-filter-checkbox-list__label,
.wc-block-product-filters.is-overlay-opened .wc-block-product-filter-checkbox-list__text,
.wc-block-product-filters.is-overlay-opened .wc-block-product-filter-checkbox-list__item,
.wc-block-product-filters.is-overlay-opened .wc-block-product-filter-removable-chips__item,
.wc-block-product-filters.is-overlay-opened .widget a,
.wc-block-product-filters.is-overlay-opened .widget label,
.wc-block-product-filters.is-overlay-opened .woocommerce-widget-layered-nav a {
	background: transparent !important;
	box-shadow: none !important;
	color: var(--cs-filter-panel-text, #ffffff) !important;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.45;
	text-decoration: none;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.14);
}

#secondary .woocommerce-widget-layered-nav a:hover,
#secondary .widget_layered_nav a:hover,
#secondary .wc-block-product-filter-checkbox-list__label:hover,
.ast-filter-wrap .widget a:hover,
.wc-block-product-filters .widget a:hover,
.wc-block-product-filters .wc-block-product-filter-checkbox-list__label:hover {
	color: #ffffff !important;
	opacity: 1;
	background: var(--cs-sidebar-chip-hover) !important;
	border-radius: var(--cs-sidebar-radius-sm);
}

#secondary .woocommerce-widget-layered-nav .chosen a,
#secondary .widget_layered_nav .chosen a,
#secondary .wc-block-product-filter-checkbox-list__item--checked .wc-block-product-filter-checkbox-list__label,
.ast-filter-wrap .widget .chosen a,
.wc-block-product-filters .widget .chosen a,
.wc-block-product-filters .wc-block-product-filter-checkbox-list__item--checked .wc-block-product-filter-checkbox-list__label {
	color: #ffffff !important;
	font-weight: 700;
	background: var(--cs-sidebar-chip-active) !important;
	border-radius: var(--cs-sidebar-radius-sm);
}

#secondary .wc-block-product-filter-checkbox-list__input,
#secondary input[type="checkbox"],
.ast-filter-wrap .wc-block-product-filter-checkbox-list__input,
.ast-filter-wrap input[type="checkbox"],
.wc-block-product-filters .wc-block-product-filter-checkbox-list__input,
.wc-block-product-filters input[type="checkbox"] {
	accent-color: #ffffff;
}

#secondary .widget .count,
#secondary .woocommerce-widget-layered-nav .count,
#secondary .widget_layered_nav .count,
.wc-block-product-filters .widget .count,
.wc-block-product-filters .wc-block-product-filter-checkbox-list__count {
	background: transparent !important;
	color: var(--cs-filter-panel-muted) !important;
	font-weight: 400;
}

/* Price slider + inputs */
#secondary .wc-block-product-filter-price-slider,
.ast-filter-wrap .wc-block-product-filter-price-slider,
.wc-block-product-filters .wc-block-product-filter-price-slider {
	margin: 0 0 4px;
	padding: 2px 2px 8px;
}

#secondary .wc-block-product-filter-price-slider .wc-block-product-filter-price-slider__range,
.ast-filter-wrap .wc-block-product-filter-price-slider .wc-block-product-filter-price-slider__range,
.wc-block-product-filters .wc-block-product-filter-price-slider .wc-block-product-filter-price-slider__range,
#secondary .wc-block-product-filter-price-slider [role="slider"],
.wc-block-product-filters .wc-block-product-filter-price-slider [role="slider"] {
	accent-color: #ffffff;
}

#secondary .wc-block-product-filter-price-slider input[type="text"],
#secondary .wc-block-product-filter-price-slider input[type="number"],
.ast-filter-wrap .wc-block-product-filter-price-slider input[type="text"],
.ast-filter-wrap .wc-block-product-filter-price-slider input[type="number"],
.wc-block-product-filters .wc-block-product-filter-price-slider input[type="text"],
.wc-block-product-filters .wc-block-product-filter-price-slider input[type="number"] {
	background-color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: var(--cs-sidebar-radius-sm);
	color: var(--cs-sidebar-text);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	min-height: 36px;
	padding: 7px 10px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

#secondary .wc-block-product-filter-price-slider input[type="text"]:focus,
#secondary .wc-block-product-filter-price-slider input[type="number"]:focus,
.ast-filter-wrap .wc-block-product-filter-price-slider input[type="text"]:focus,
.wc-block-product-filters .wc-block-product-filter-price-slider input[type="text"]:focus,
.wc-block-product-filters .wc-block-product-filter-price-slider input[type="number"]:focus {
	border-color: #ffffff;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
	outline: none;
}

/* -------------------------------------------------------------------------- */
/* Mobile filter overlay — turquoise panel, white text                        */
/* -------------------------------------------------------------------------- */

.wc-block-product-filters.is-overlay-opened .wc-block-product-filters__overlay-content,
.wc-block-product-filters.is-overlay-opened .wc-block-product-filters__overlay-dialog {
	background: linear-gradient(
		180deg,
		var(--cs-sidebar-teal) 0%,
		var(--cs-sidebar-teal-deep) 100%
	) !important;
	color: #ffffff !important;
}

.wc-block-product-filters.is-overlay-opened .wc-block-product-categories-list-item__name,
.wc-block-product-filters.is-overlay-opened .wc-block-product-categories-list-item a {
	color: #ffffff !important;
	background: transparent !important;
	box-shadow: none !important;
}

.wc-block-product-filters.is-overlay-opened .cs-category-current > a,
.wc-block-product-filters.is-overlay-opened .cs-category-current > a .wc-block-product-categories-list-item__name {
	color: #ffffff !important;
	font-weight: 700;
	background: transparent !important;
}

.wc-block-product-filters.is-overlay-opened .cs-category-current > .cs-category-tree-row {
	background: var(--cs-sidebar-chip-active) !important;
	border-color: #ffffff !important;
}

.wc-block-product-filters.is-overlay-opened .cs-branch-search-label {
	color: #ffffff;
}

.wc-block-product-filters.is-overlay-opened .cs-branch-search-input,
.wc-block-product-filters.is-overlay-opened #csCategorySearchInput {
	background-color: #ffffff;
	color: var(--cs-sidebar-text);
	border-color: rgba(255, 255, 255, 0.55);
	border-radius: var(--cs-sidebar-radius-sm);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.wc-block-product-filters.is-overlay-opened .cs-branch-search-input::placeholder,
.wc-block-product-filters.is-overlay-opened #csCategorySearchInput::placeholder {
	color: var(--cs-sidebar-muted);
}

.wc-block-product-filters.is-overlay-opened .cs-branch-search-input:focus,
.wc-block-product-filters.is-overlay-opened #csCategorySearchInput:focus {
	border-color: #ffffff;
	background-color: #ffffff;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
	outline: none;
}

.wc-block-product-filters.is-overlay-opened .wc-block-product-filter-checkbox-list__show-more,
.wc-block-product-filters.is-overlay-opened .wc-block-product-filters__show-more-button {
	color: #ffffff !important;
}

.wc-block-product-filters.is-overlay-opened {
	--wc-product-filters-text-color: #ffffff;
	--wc-product-filters-overlay-text-color: #ffffff;
	--wc-product-filter-checkbox-list-label-element: #ffffff;
}

.wc-block-product-filters.is-overlay-opened .wc-block-product-filters__close-overlay {
	color: #ffffff !important;
}

.wc-block-product-filters.is-overlay-opened
	.wc-block-product-filters__overlay-content
	> .wp-block-woocommerce-product-filters {
	display: block;
	width: 100%;
}

.wc-block-product-filters.is-overlay-opened
	.wc-block-product-filters__overlay-content
	> .wp-block-woocommerce-product-filters
	> .wc-block-product-filters__open-overlay,
.wc-block-product-filters.is-overlay-opened
	.wc-block-product-filters__overlay-content
	> .wp-block-woocommerce-product-filters
	.wc-block-product-filters__overlay-header,
.wc-block-product-filters.is-overlay-opened
	.wc-block-product-filters__overlay-content
	> .wp-block-woocommerce-product-filters
	.wc-block-product-filters__overlay-footer {
	display: none !important;
}

.wc-block-product-filters.is-overlay-opened
	.wc-block-product-filters__overlay-content
	> .wp-block-woocommerce-product-filters
	.wc-block-product-filters__overlay {
	position: static !important;
	inset: auto !important;
	pointer-events: auto !important;
	background: transparent !important;
}

.wc-block-product-filters.is-overlay-opened
	.wc-block-product-filters__overlay-content
	> .wp-block-woocommerce-product-filters
	.wc-block-product-filters__overlay-dialog {
	position: static !important;
	transform: none !important;
	max-height: none !important;
	background: transparent !important;
}

.wc-block-product-filters.is-overlay-opened
	.wc-block-product-filters__overlay-content
	> .wp-block-woocommerce-product-filters
	.wc-block-product-filters__overlay-content {
	overflow: visible !important;
	padding: 0 !important;
}

.wc-block-product-filters.is-overlay-opened .wc-block-product-filters__close-overlay ~ .wc-block-product-filters__close-overlay,
.wc-block-product-filters.is-overlay-opened .wc-block-product-filters__close-overlay + .wc-block-product-filters__close-overlay {
	display: none !important;
}

.wc-block-product-filters.is-overlay-opened .wc-block-product-filters__overlay-dialog {
	font-family: inherit;
	font-size: 13px;
	line-height: 1.45;
}

/* -------------------------------------------------------------------------- */
/* Mobile / tablet layout only: filters above products                        */
/* -------------------------------------------------------------------------- */

@media (max-width: 921px) {
	body.woocommerce:not(.single-product) #content > .ast-container,
	body.tax-product_cat #content > .ast-container,
	body.tax-product_tag #content > .ast-container {
		display: flex;
		flex-direction: column;
	}

	body.woocommerce:not(.single-product) #secondary,
	body.tax-product_cat #secondary,
	body.tax-product_tag #secondary {
		order: -1;
		width: 100%;
		max-width: 100%;
	}

	body.woocommerce:not(.single-product) #primary,
	body.tax-product_cat #primary,
	body.tax-product_tag #primary {
		order: 0;
		width: 100%;
		max-width: 100%;
	}
}
