/* ── Filters row ─────────────────────────────────────────────────────────── */
.wcb-filters-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wcb-space-md);
}

/* ── Filter select ───────────────────────────────────────────────────────── */
.wcb-filter-select {
	flex: 1;
	min-width: auto;
	height: auto;
	padding: var(--wcb-space-sm) var(--wcb-space-3xl) var(--wcb-space-sm) var(--wcb-space-md); /* 0.625rem ≈ 10px → sm; 2.25rem ≈ 36px → 3xl (32px); 0.875rem ≈ 14px → md */
	border: 1.5px solid var(--wcb-border, #e2e8f0);
	border-radius: var(--wcb-radius-md);
	font-size: var(--wcb-text-base);
	font-family: inherit;
	color: var(--wcb-contrast, #334155);
	background: var(--wcb-base, #fff);
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right var(--wcb-space-md) center;
	transition: border-color var(--wcb-transition-snappy);
}

.wcb-filter-select:focus {
	outline: 2px solid transparent;
	border-color: var(--wcb-primary, #2563eb);
	box-shadow: var(--wcb-shadow-focus);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
	.wcb-filters-row {
		flex-direction: column;
	}

	.wcb-filter-select {
		width: 100%;
		flex: none;
		min-width: 0;
	}
}

/* ── Salary range inputs ─────────────────────────────────────────────────── */
.wcb-filter-salary {
	display: flex;
	gap: var(--wcb-space-xs); /* 0.375rem ≈ 6px → xs */
}

.wcb-filter-salary .wcb-filter-input,
.wcb-filter-input {
	width: min(120px, 100%); /* component-specific salary-input width */
	height: auto;
	padding: var(--wcb-space-sm) var(--wcb-space-md); /* 0.625rem ≈ 10px → sm */
	border: 1.5px solid var(--wcb-border, #e2e8f0);
	border-radius: var(--wcb-radius-md);
	font-size: var(--wcb-text-base);
	font-family: inherit;
	color: var(--wcb-contrast, #334155);
	background: var(--wcb-base, #fff);
	transition: border-color var(--wcb-transition-snappy);
}

.wcb-filter-input:focus {
	outline: 2px solid transparent;
	border-color: var(--wcb-primary, #2563eb);
	box-shadow: var(--wcb-shadow-focus);
}

/* ── Remote checkbox ─────────────────────────────────────────────────────── */
.wcb-filter-remote {
	display: flex;
	align-items: center;
	gap: var(--wcb-space-xs); /* 0.375rem ≈ 6px → xs */
	font-size: var(--wcb-text-base);
	color: var(--wcb-contrast, #334155);
	cursor: pointer;
	white-space: nowrap;
}

.wcb-filter-remote input[type="checkbox"] {
	width: var(--wcb-space-lg);
	height: var(--wcb-space-lg);
	cursor: pointer;
	accent-color: var(--wcb-primary, #2563eb);
}

@media (max-width: 600px) {
	.wcb-filter-salary {
		width: 100%;
	}

	.wcb-filter-input {
		flex: 1;
		width: auto;
	}
}

/* ── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.wcb-filter-select,
	.wcb-filter-input {
		transition: none;
	}
}
