/* Loop Filter Suite */

.lfs-filter {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	vertical-align: middle;
}

/* ---------------------------------------------------------------- Category */
.lfs-category .lfs-cat-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #94A3B8;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
}

.lfs-category .lfs-icon {
	display: inline-block;
	width: 15px;
	height: 15px;
	background-color: #94A3B8;
	-webkit-mask: var(--lfs-funnel) no-repeat center / contain;
	mask: var(--lfs-funnel) no-repeat center / contain;
	--lfs-funnel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3'/%3E%3C/svg%3E");
}

.lfs-category .lfs-cat-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	min-width: 180px;
	padding: 9px 34px 9px 14px;
	background-color: #1E293B;
	color: #E2E8F0;
	border: 1px solid #334155;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.3;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.lfs-category .lfs-cat-select:hover {
	border-color: #475569;
}

.lfs-category .lfs-cat-select:focus {
	outline: none;
	border-color: #2563EB;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .25);
}

/* Category pills */
.lfs-category .lfs-cat-pills {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.lfs-category .lfs-pill {
	appearance: none;
	background-color: #FFFFFF;
	color: #334155;
	border: 1px solid #E2E8F0;
	border-radius: 999px;
	padding: 8px 18px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.lfs-category .lfs-pill:hover:not(.is-active) {
	border-color: #CBD5E1;
}

.lfs-category .lfs-pill.is-active {
	background-color: #2563EB;
	border-color: #2563EB;
	color: #FFFFFF;
}

/* -------------------------------------------------------------------- Sort */
.lfs-sort .lfs-sort-label {
	color: #94A3B8;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
}

.lfs-sort .lfs-sort-group {
	display: inline-flex;
	align-items: stretch;
	gap: 4px;
	padding: 4px;
	background-color: #0F172A;
	border: 1px solid #1E293B;
	border-radius: 8px;
}

.lfs-sort .lfs-sort-btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: #94A3B8;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	padding: 8px 16px;
	border-radius: 6px;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.lfs-sort .lfs-sort-btn:hover:not(.is-active) {
	color: #CBD5E1;
}

.lfs-sort .lfs-sort-btn.is-active {
	background-color: #FFFFFF;
	color: #2563EB;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}

/* ----------------------------------------------------------- Loading state */
.lfs-loop-loading {
	position: relative;
	min-height: 80px;
	transition: opacity .25s ease;
}

.lfs-loop-loading > * {
	opacity: .35;
	pointer-events: none;
	transition: opacity .25s ease;
}

.lfs-spinner {
	position: absolute;
	top: 40px;
	left: 50%;
	width: 34px;
	height: 34px;
	margin-left: -17px;
	border: 3px solid rgba(148, 163, 184, .35);
	border-top-color: #2563EB;
	border-radius: 50%;
	animation: lfs-spin .7s linear infinite;
	z-index: 5;
	pointer-events: none;
}

@keyframes lfs-spin {
	to { transform: rotate(360deg); }
}

/* Search input handed over to the loop engine: no typeahead panel. */
.asw-wrap.lfs-search-bound .asw-results { display: none !important; }
