/*
 * FacetWP shop sidebar (standalone stylesheet; not compiled from Sass).
 * Enqueued from functions/enqueue-scripts.php.
 */

.lgp-facetwp-sidebar {
	font-family: "Roboto Condensed", sans-serif;
}

.lgp-shop-facet {
	border: 1px solid #e2e2e2;
	border-radius: 2px;
	margin-bottom: 10px;
	overflow: hidden;
	background-color: #fff;
}

.lgp-shop-facet:last-child {
	margin-bottom: 0;
}

/* Non-toggle label bar styling (inherits when used with button reset below). */
.lgp-shop-facet__title {
	box-sizing: border-box;
	display: block;
	margin: 0;
	padding: 12px 14px;
	font-family: "Roboto Condensed", sans-serif;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.25;
	color: #333c46;
	text-transform: uppercase;
	text-align: left;
	background-color: #f8f8f8;
}

/* Collapsible section heading (<button>). */
.lgp-shop-facet__title--toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	border: none;
	font: inherit;
	font-family: inherit;
	font-weight: 700;
	font-size: inherit;
	color: inherit;
	text-transform: inherit;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.lgp-shop-facet__title--toggle::-moz-focus-inner {
	border: 0;
}

.lgp-shop-facet__title--toggle:focus-visible {
	outline: 2px solid #626262;
	outline-offset: 2px;
}

.lgp-shop-facet__title--toggle::after {
	content: "";
	flex-shrink: 0;
	margin-left: 10px;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 8px solid #333c46;
	transition: transform 0.2s ease;
	transform: rotate(0deg);
}

.lgp-shop-facet.lgp-shop-facet--open .lgp-shop-facet__title--toggle::after {
	transform: rotate(180deg);
}

/* Price (flat row) — label bar + noUi slider styling. */
.lgp-shop-facet__title--static {
	cursor: default;
}

.lgp-shop-facet__body--flat {
	padding: 12px 14px 14px;
}

.lgp-shop-facet--price .noUi-target {
	background-color: #e2e2e2;
	border: none;
	border-radius: 4px;
	box-shadow: none;
}

.lgp-shop-facet--price .noUi-horizontal {
	height: 8px;
}

.lgp-shop-facet--price .noUi-horizontal .noUi-handle {
	width: 20px;
	height: 20px;
	right: -10px;
	top: -7px;
	border-radius: 50%;
	border: 2px solid #ee2527;
	background-color: #fff;
	box-shadow: none;
	cursor: grab;
}

.lgp-shop-facet--price .noUi-horizontal .noUi-handle:active {
	cursor: grabbing;
}

.lgp-shop-facet--price .noUi-handle::before,
.lgp-shop-facet--price .noUi-handle::after {
	display: none;
}

.lgp-shop-facet--price .noUi-connect {
	background-color: #ee2527;
}

.lgp-shop-facet__body {
	padding: 12px 14px 14px;
}

/* Sections start collapsed (`hidden` until opened). */
.lgp-shop-facet__body[hidden] {
	display: none !important;
}

.lgp-shop-facet__body .facetwp-checkbox {
	font-family: inherit;
	font-size: 14px;
	color: #333c46;
	padding-top: 6px;
	padding-bottom: 6px;
}

.lgp-shop-facet__body .facetwp-checkbox.checked {
	color: #000;
	font-weight: 600;
}

.lgp-shop-facet__body .facetwp-checkbox.checked .facetwp-display-value {
	color: #ee2527;
}

/* FacetWP Dropdown facet (<select>). */
.lgp-shop-facet__body .facetwp-type-dropdown select {
	width: 100%;
	max-width: 100%;
	margin: 0;
	font-family: inherit;
	font-size: 14px;
	color: #333c46;
	background-color: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 2px;
	padding: 10px 28px 10px 12px;
	appearance: auto;
}

/* Reset facet — `[facetwp facet="reset"]` after other facets (slug filterable). */
.lgp-shop-facet-reset {
	margin-top: 4px;
	padding: 4px 0 0;
}

.lgp-shop-facet-reset .facetwp-facet {
	margin: 0;
}

.lgp-shop-facet-reset a,
.lgp-shop-facet-reset button {
	color: #ee2527;
	font-weight: 600;
	font-family: inherit;
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 2px;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.lgp-shop-facet-reset a:focus-visible,
.lgp-shop-facet-reset button:focus-visible {
	outline: 2px solid #626262;
	outline-offset: 2px;
}

.off-canvas-filter-body .lgp-facetwp-sidebar {
	padding-top: 8px;
}

/* Empty facet rows — JS also sets inline display:none !important for reliability. */
#lgp-facetwp-mount > .lgp-shop-facet.lgp-shop-facet--facet-empty,
.off-canvas-filter-body #lgp-facetwp-mount > .lgp-shop-facet.lgp-shop-facet--facet-empty {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	min-height: 0 !important;
	max-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	overflow: hidden !important;
}

body.lgp-fw-facetwp-all-empty .products-filter-section,
body.lgp-fw-facetwp-all-empty #off-canvas-filter,
body.lgp-fw-facetwp-all-empty .shop-sort .button-group a[data-toggle="off-canvas-filter"],
body.lgp-fw-facetwp-all-empty .lgp-shop-facet-reset {
	display: none !important;
}

body.lgp-fw-facetwp-all-empty .store-loop > .row > .products-grid-section {
	flex: 0 0 100%;
	max-width: 100%;
	width: 100%;
}
