/* Category page filter sidebar (Elementor template 327271). */

#wsb-filters {
	--wsb-ink: #111;
	--wsb-muted: #666;
	--wsb-line: #ddd;
	font-size: 15px;
	line-height: 1.35;
}

/* Section headings. */
#wsb-filters .jet-filter-label {
	margin: 0 0 12px;
	color: var(--wsb-ink);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

#wsb-filters .elementor-widget-jet-smart-filters-checkboxes,
#wsb-filters .elementor-widget-jet-smart-filters-range {
	margin-bottom: 28px;
}

/* Checkbox rows. */
#wsb-filters .jet-checkboxes-list__row {
	margin: 0 0 9px;
	padding: 0;
}

#wsb-filters .jet-checkboxes-list-wrapper {
	margin: 0;
	padding: 0;
	border: 0;
}

#wsb-filters .jet-checkboxes-list__button {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wsb-ink);
	font-size: 15px;
	font-weight: 400;
	cursor: pointer;
}

#wsb-filters .jet-checkboxes-list__item {
	display: block;
	cursor: pointer;
}

#wsb-filters .jet-checkboxes-list__decorator {
	position: relative;
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	margin: 2px 0 0;
	border: 1.5px solid var(--wsb-ink);
	border-radius: 2px;
	background: #fff;
}

#wsb-filters .jet-checkboxes-list__checked-icon {
	display: none;
}

#wsb-filters .jet-checkboxes-list__input:checked + .jet-checkboxes-list__button .jet-checkboxes-list__decorator {
	border-color: var(--wsb-ink);
	background: var(--wsb-ink);
}

#wsb-filters .jet-checkboxes-list__input:checked + .jet-checkboxes-list__button .jet-checkboxes-list__decorator::after {
	content: "";
	position: absolute;
	top: 1px;
	left: 4px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

#wsb-filters .jet-checkboxes-list__input:focus-visible + .jet-checkboxes-list__button {
	outline: 2px solid var(--wsb-ink);
	outline-offset: 2px;
}

#wsb-filters .jet-checkboxes-list__label {
	color: var(--wsb-ink);
}

#wsb-filters .jet-filters-counter {
	margin-left: 4px;
	color: var(--wsb-muted);
	font-size: 13px;
}

/* "+ N more" under a list. */
#wsb-filters .jet-filter-items-moreless {
	margin: 0;
	padding: 0;
}

#wsb-filters .jet-filter-items-moreless__toggle {
	display: inline-block;
	margin: 2px 0 0 26px;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--wsb-muted);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.35;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}

#wsb-filters .jet-filter-items-moreless__toggle:hover {
	background: none;
	color: var(--wsb-ink);
}

/* Price slider: full width of the sidebar, overriding the old top-bar layout rules. */
#wsb-filters .jet-smart-filters-range,
#wsb-filters .jet-smart-filters-range .jet-range {
	display: block !important;
	width: 100% !important;
}

#wsb-filters .jet-smart-filters-range .jet-filter-label {
	display: block !important;
	width: 100% !important;
}

#wsb-filters .jet-range__slider {
	margin: 6px 0 14px !important;
}

/* "$977 — $90,750": flex drops the template's whitespace between "$" and the number. */
#wsb-filters .jet-range__values {
	display: flex;
	justify-content: flex-start;
	color: var(--wsb-ink);
	font-size: 15px;
	text-align: left;
}

#wsb-filters .jet-range__values-suffix {
	margin-right: 6px;
}

#wsb-filters .jet-range__values-suffix + .jet-range__values-prefix {
	margin-left: 6px;
}

/* Active filters and "Clear all" at the top of the sidebar. */
#wsb-filters .elementor-widget-jet-smart-filters-active {
	margin-bottom: 6px;
}

#wsb-filters .elementor-widget-jet-smart-filters-remove-filters {
	margin-bottom: 24px;
}

#wsb-filters .jet-active-filters__list {
	gap: 6px;
}

#wsb-filters .jet-remove-all-filters__button {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--wsb-ink);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
	text-decoration: underline;
	text-transform: none;
	letter-spacing: 0;
}

#wsb-filters .jet-remove-all-filters__button:hover,
#wsb-filters .jet-remove-all-filters__button:focus {
	background: none;
	color: var(--wsb-muted);
}

/* Brand view inside a category: count line and chips under the heading ([wsb_brand_view_header]). */
.wsb-brand-view {
	margin: 6px 0 0;
	text-align: center;
}

.wsb-brand-view__meta {
	margin: 0 0 14px;
	color: #666;
	font-size: 15px;
	line-height: 1.4;
}

.wsb-brand-view__chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wsb-brand-view__chips li {
	margin: 0;
	padding: 0;
}

.wsb-chip {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid #c8c8c8;
	border-radius: 999px;
	background: #fff;
	color: #111;
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.wsb-chip:hover,
.wsb-chip:focus {
	border-color: #111;
	color: #111;
	text-decoration: none;
}

.wsb-chip__count {
	color: #666;
}

/*
 * Toolbar and result count. Desktop: "Showing 1-12 of N" on the left, sort box on the right, one line.
 * Tablet and phone: Filters button and sort box on one line, the count below.
 * The !important rules cancel spacing written for the old top filter bar
 * (Customizer > Additional CSS and the template's own CSS).
 */
#wsb-products ul.products {
	margin-top: 0 !important;
}

/* The count comes inside Astra's toolbar wrapper on first load and bare after a filter is ticked; both must look the same. */
#wsb-products .ast-shop-toolbar-container {
	margin: 0 !important;
}

#wsb-products .woocommerce-result-count {
	display: flex;
	align-items: center;
	float: none;
	min-height: 30px;
	margin: 0 0 20px !important;
}

/* WooCommerce's own "Default sorting" box; the page has its own sort box in the toolbar. */
#wsb-products .woocommerce-ordering {
	display: none !important;
}

#wsb-products .jet-sorting {
	margin: 0 !important;
}

/* "Sort:" label beside the select (the widget's own label, laid out as a row). */
#wsb-toolbar .jet-sorting-label {
	margin-right: 8px;
	font-size: 14px;
	white-space: nowrap;
}

#wsb-toolbar .jet-sorting-select {
	flex: 1 1 auto;
	min-width: 0;
}

@media (min-width: 1025px) {
	#wsb-toolbar {
		position: absolute;
		top: 0;
		right: 0;
		width: auto;
	}
}

/* Drawer parts only exist below the desktop breakpoint. */
.wsb-drawer-head,
.wsb-drawer-foot,
.wsb-filters-overlay {
	display: none;
}

@media (min-width: 1025px) {
	#wsb-filters-toggle {
		display: none !important;
	}
}

@media (max-width: 1024px) {
	#wsb-filters {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 100000;
		display: block;
		width: min(86vw, 360px);
		max-width: none;
		margin: 0;
		padding: 0 20px;
		overflow-y: auto;
		overscroll-behavior: contain;
		background: #fff;
		box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
		visibility: hidden;
		transform: translateX(-105%);
		transition: transform 0.25s ease, visibility 0s linear 0.25s;
	}

	body.wsb-filters-open #wsb-filters {
		visibility: visible;
		transform: none;
		transition: transform 0.25s ease;
	}

	body.wsb-filters-open {
		overflow: hidden;
	}

	.wsb-filters-overlay {
		position: fixed;
		inset: 0;
		z-index: 99999;
		display: block;
		background: rgba(0, 0, 0, 0.45);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.25s ease;
	}

	body.wsb-filters-open .wsb-filters-overlay {
		opacity: 1;
		pointer-events: auto;
	}

	.wsb-drawer-head {
		position: sticky;
		top: 0;
		z-index: 2;
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin: 0 -20px 20px;
		padding: 14px 20px;
		border-bottom: 1px solid var(--wsb-line);
		background: #fff;
		font-size: 18px;
		font-weight: 700;
	}

	.wsb-drawer-close {
		width: 40px;
		height: 40px;
		margin: -8px -10px -8px 0;
		padding: 0;
		border: 0;
		background: none;
		box-shadow: none;
		color: var(--wsb-ink);
		font-size: 28px;
		line-height: 1;
		cursor: pointer;
	}

	.wsb-drawer-close:hover,
	.wsb-drawer-close:focus {
		background: none;
		color: var(--wsb-ink);
	}

	.wsb-drawer-foot {
		position: sticky;
		bottom: 0;
		z-index: 2;
		display: block;
		margin: 0 -20px;
		padding: 14px 20px;
		border-top: 1px solid var(--wsb-line);
		background: #fff;
	}

	.wsb-drawer-apply {
		display: block;
		width: 100%;
		padding: 12px 16px;
		border: 2px solid var(--wsb-ink);
		border-radius: 0;
		background: var(--wsb-ink);
		color: #fff;
		font-size: 16px;
		font-weight: 700;
		cursor: pointer;
	}

	.wsb-drawer-apply:hover,
	.wsb-drawer-apply:focus {
		background: #fff;
		color: var(--wsb-ink);
	}

	#wsb-filters .jet-checkboxes-list__row {
		margin-bottom: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#wsb-filters,
	.wsb-filters-overlay {
		transition: none !important;
	}
}
