.eps-shop-category-accordion {
	--eps-cat-ink: #18213d;
	--eps-cat-muted: #667085;
	--eps-cat-line: #e6ebf4;
	--eps-cat-soft: #f5f7fb;
	--eps-cat-accent: #21347d;
	--eps-cat-accent-strong: #17245f;
	margin-top: 22px;
}

.eps-mobile-category-toggle {
	display: none;
}

.epm-shop-landing-no-sidebar #sidebar {
	display: none !important;
}

.epm-shop-landing-no-sidebar .ct-container[data-sidebar] {
	--sidebar-width: 0px;
	--sidebar-gap: 0px;
	grid-template-columns: minmax(0, 1fr) !important;
}

.epm-shop-landing-no-sidebar .ct-container[data-sidebar] > section {
	grid-column: 1 / -1 !important;
	max-width: none;
	width: 100%;
}

@media (max-width: 599px) {
	#sidebar .wc-block-product-filters__open-overlay,
	#sidebar .wc-block-product-filters__close-overlay,
	#sidebar .wc-block-product-filters__apply,
	#sidebar .wc-block-product-filters__overlay-footer {
		display: none !important;
	}

	#sidebar .wp-block-woocommerce-product-filters,
	#sidebar .wc-block-product-filters__overlay,
	#sidebar .wc-block-product-filters__overlay-wrapper,
	#sidebar .wc-block-product-filters__overlay-dialog,
	#sidebar .wc-block-product-filters__overlay-content {
		background: transparent !important;
		box-shadow: none !important;
		display: block !important;
		height: auto !important;
		max-height: none !important;
		min-height: 0 !important;
		opacity: 1 !important;
		overflow: visible !important;
		padding: 0 !important;
		position: static !important;
		transform: none !important;
		visibility: visible !important;
		width: 100% !important;
	}

	#sidebar .wc-block-product-filters__overlay-header {
		display: block !important;
		height: auto !important;
		min-height: 0 !important;
		padding: 0 !important;
	}

	.eps-shop-category-accordion .eps-mobile-category-toggle {
		align-items: center;
		appearance: none;
		background: var(--eps-cat-accent-strong);
		border: 0;
		border-radius: 8px;
		color: #fff;
		cursor: pointer;
		display: flex;
		font-size: 15px;
		font-weight: 700;
		justify-content: center;
		line-height: 1;
		margin: 24px 0 0;
		min-height: 46px;
		padding: 0 18px;
		text-align: center;
		width: 100%;
	}

	#block-30.widget_categories:not([data-eps-mobile-category-toggle-ready="1"]) {
		min-height: 42px;
	}

	#block-30.widget_categories:not([data-eps-mobile-category-toggle-ready="1"])::before {
		align-items: center;
		background: var(--eps-cat-accent-strong);
		border-radius: 8px;
		color: #fff;
		content: "Show categories";
		display: flex;
		font-size: 15px;
		font-weight: 700;
		justify-content: center;
		line-height: 1;
		margin: 0;
		min-height: 41px;
		padding: 0 18px;
		text-align: center;
		width: 100%;
	}

	#block-30.widget_categories:not([data-eps-mobile-category-toggle-ready="1"]) > ul.wp-block-categories-list {
		display: none !important;
	}

	#sidebar .wc-block-product-filter-price-slider__content {
		align-items: center;
		column-gap: 12px;
		display: grid;
		grid-template-areas: "left-input price-slider right-input";
		grid-template-columns: auto minmax(0, 1fr) auto;
	}

	#sidebar .wc-block-product-filter-price-slider__left {
		grid-area: left-input;
	}

	#sidebar .wc-block-product-filter-price-slider__right {
		grid-area: right-input;
	}

	#sidebar .wc-block-product-filter-price-slider__range {
		grid-area: price-slider;
		height: 4px;
		margin: 15px 0;
		min-width: 0;
		position: relative;
	}

	#sidebar .wc-block-product-filter-price-slider .text input[type="text"] {
		max-width: 60px;
		width: auto;
	}

	.eps-shop-category-accordion .eps-mobile-category-toggle:focus-visible {
		outline: 2px solid rgba(33, 52, 125, 0.35);
		outline-offset: 3px;
	}

	.eps-shop-category-accordion.eps-mobile-categories-collapsed:not(.is-mobile-categories-open) > .eps-category-tree {
		display: none !important;
	}
}

.eps-shop-category-accordion ul.wp-block-categories-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.eps-shop-category-accordion ul.children {
	list-style: none;
	margin: 4px 0 8px;
	padding-left: 28px;
}

.eps-shop-category-accordion .children[hidden] {
	display: none !important;
}

.eps-shop-category-accordion .cat-item {
	margin: 1px 0;
	padding: 0;
}

.eps-shop-category-accordion .eps-category-row {
	align-items: center;
	border-radius: 7px;
	display: grid;
	gap: 6px;
	grid-template-columns: 25px minmax(0, 1fr) auto;
	min-height: 31px;
	padding: 2px 6px 2px 0;
	transition: background-color 180ms ease, color 180ms ease;
}

.eps-shop-category-accordion .eps-category-row:hover {
	background: var(--eps-cat-soft);
}

.eps-shop-category-accordion .eps-category-row > a {
	color: var(--eps-cat-ink);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
	min-width: 0;
	overflow-wrap: anywhere;
	text-decoration: none;
	text-wrap: pretty;
	transition: color 180ms ease;
}

.eps-shop-category-accordion .eps-category-row > a:hover,
.eps-shop-category-accordion .eps-category-row > a:focus-visible {
	color: var(--eps-cat-accent);
	text-decoration: none;
}

.eps-shop-category-accordion .eps-category-count {
	background: #edf1f8;
	border-radius: 999px;
	color: var(--eps-cat-muted);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	line-height: 1;
	min-width: 30px;
	padding: 5px 7px;
	text-align: center;
	white-space: nowrap;
}

.eps-shop-category-accordion .eps-category-toggle,
.eps-shop-category-accordion .eps-category-toggle-spacer {
	height: 25px;
	width: 25px;
}

.eps-shop-category-accordion .eps-category-toggle {
	appearance: none;
	background: #eef2fa;
	border: 1px solid #dce4f2;
	border-radius: 6px;
	color: var(--eps-cat-accent);
	cursor: pointer;
	display: inline-flex;
	position: relative;
	transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.eps-shop-category-accordion .eps-category-toggle:hover {
	background: #e3e9f6;
	border-color: #cdd7ec;
}

.eps-shop-category-accordion .eps-category-toggle:active {
	transform: translateY(1px);
}

.eps-shop-category-accordion .eps-category-toggle:focus-visible {
	outline: 2px solid rgba(33, 52, 125, 0.35);
	outline-offset: 2px;
}

.eps-shop-category-accordion .eps-category-toggle::before,
.eps-shop-category-accordion .eps-category-toggle::after {
	background: currentColor;
	content: "";
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	transition: opacity 160ms ease, transform 160ms ease;
}

.eps-shop-category-accordion .eps-category-toggle::before {
	height: 2px;
	width: 10px;
}

.eps-shop-category-accordion .eps-category-toggle::after {
	height: 10px;
	width: 2px;
}

.eps-shop-category-accordion .cat-item.is-expanded > .eps-category-row > .eps-category-toggle::after {
	opacity: 0;
	transform: translate(-50%, -50%) scaleY(0.2);
}

.eps-shop-category-accordion .current-cat > .eps-category-row {
	background: var(--eps-cat-accent-strong);
}

.eps-shop-category-accordion .current-cat > .eps-category-row > a,
.eps-shop-category-accordion .current-cat > .eps-category-row > .eps-category-count {
	color: #fff;
}

.eps-shop-category-accordion .current-cat > .eps-category-row > .eps-category-count {
	background: rgba(255, 255, 255, 0.16);
}

.eps-shop-category-accordion .current-cat > .eps-category-row > .eps-category-toggle {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.28);
	color: #fff;
}

.eps-shop-category-accordion .current-cat-parent > .eps-category-row,
.eps-shop-category-accordion .current-cat-ancestor > .eps-category-row {
	background: #f0f3fb;
}

.eps-shop-category-accordion .current-cat-parent > .eps-category-row > a,
.eps-shop-category-accordion .current-cat-ancestor > .eps-category-row > a {
	color: var(--eps-cat-accent);
}

@media (max-width: 767px) {
	.eps-shop-category-accordion {
		margin-top: 18px;
	}

	.eps-shop-category-accordion .eps-category-row {
		min-height: 34px;
	}
}
