/* Filter toggle button */
.jrw-filter-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background: #fff;
	border: 1px solid #ddd;
	cursor: pointer;
	font-size: 14px;
}

/* Stop Blocksy's grid from reserving a permanent sidebar column */
.ct-container[data-sidebar="left"] {
	grid-template-columns: 1fr !important;
}

/* The real sidebar wrapper is #sidebar (an <aside>), not .ct-sidebar
   (that's just an inner div). Target the ID directly. */
#sidebar {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	height: 100vh !important;
	width: 320px !important;
	max-width: 85vw !important;
	background: #fff !important;
	z-index: 9999 !important;
	overflow-y: auto !important;
	padding: 30px 24px !important;
	transform: translateX(-100%) !important;
	transition: transform 0.3s ease !important;
	box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1) !important;
}
#sidebar.jrw-drawer-open {
	transform: translateX(0) !important;
}
.woo-listing-top {
	justify-content: space-between !important;
	align-items: center !important;
}
/* Dark overlay behind the drawer */
.jrw-filter-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 9998;
}
.jrw-filter-overlay.jrw-overlay-visible {
	display: block;
}

/* Close button inside the drawer */
.jrw-drawer-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	line-height: 1;
}