/**
 * Loop Grid AJAX Filters — filter bar, loading state, and the utility class
 * used to hide an entire Loop Grid's section (heading included) when it has
 * no matching products for the current filter selection.
 */

.lgaf-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 1.5em 2em;
	margin: 0 0 2em;
	padding: 0;
	border: 0;
}

.lgaf-filters__group {
	display: flex;
	flex-direction: column;
	gap: 0.4em;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 10em;
}

.lgaf-filters__label {
	padding: 0;
	font-weight: 600;
	font-size: 0.9em;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.lgaf-filters__option {
	display: flex;
	align-items: center;
	gap: 0.5em;
	cursor: pointer;
	font-size: 0.95em;
}

.lgaf-filters__checkbox {
	margin: 0;
}

.lgaf-filters__clear {
	align-self: flex-end;
	background: none;
	border: 1px solid currentColor;
	border-radius: 3px;
	padding: 0.5em 1em;
	cursor: pointer;
	font-size: 0.9em;
}

.lgaf-filters__clear:hover,
.lgaf-filters__clear:focus-visible {
	opacity: 0.75;
}

.lgaf-filters__status {
	align-self: center;
	font-size: 0.9em;
	opacity: 0.75;
}

/* Applied to a Loop Grid's scope element (heading + grid wrapper) while a
   request for that grid is in flight. */
.lgaf-loading {
	position: relative;
	opacity: 0.5;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

/* Applied to a Loop Grid's scope element when it has zero matching products
   for the current filter selection — hides the heading and the grid together. */
.lgaf-hidden {
	display: none !important;
}

@media ( max-width: 767px ) {
	.lgaf-filters {
		flex-direction: column;
		gap: 1em;
	}

	.lgaf-filters__clear {
		align-self: flex-start;
	}
}
