/* ============================================================
   C2 Filter Fields – Frontend Styles
   ============================================================ */

.c2ff-container {
	position: relative;
}

/* ── Input block ── */
.c2ff-input__label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

.c2ff-input__wrap {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

.c2ff-input__field {
	flex: 1 1 auto;
	width: 100%;
	box-sizing: border-box;
	padding: 8px 36px 8px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font: inherit;
}

.c2ff-input__clear {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY( -50% );
	appearance: none;
	-webkit-appearance: none;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1.2em;
	line-height: 1;
	padding: 4px 6px;
	color: #666;
}

.c2ff-input__clear:hover {
	color: #000;
}

.c2ff-input__clear[hidden] {
	display: none;
}

/* ── Filterable items ── */
[data-c2ff-item][hidden] {
	display: none !important;
}

/* ── No results message ── */
.c2ff-no-results {
	margin-top: 1em;
	opacity: 0.7;
}

.c2ff-no-results[hidden] {
	display: none !important;
}
