.wcf-filter-form {
	margin: 0;
}

.wcf-filter-group {
	margin: 0 0 20px;
	padding: 0;
	border: none;
}

.wcf-filter-group__title {
	display: block;
	font-weight: 600;
	margin: 0 0 10px;
	padding: 0;
}

.wcf-filter-price {
	display: flex;
	align-items: center;
	gap: 8px;
}

.wcf-filter-price input[type="number"] {
	width: 100%;
	min-width: 0;
	padding: 6px 8px;
	box-sizing: border-box;
}

.wcf-filter-select {
	width: 100%;
	padding: 6px 8px;
	box-sizing: border-box;
}

.wcf-filter-radio,
.wcf-filter-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	margin: 0 0 8px;
	cursor: pointer;
}

.wcf-filter-radio:last-child,
.wcf-filter-checkbox:last-child {
	margin-bottom: 0;
}

.wcf-filter-radio input,
.wcf-filter-checkbox input {
	margin: 0;
	flex-shrink: 0;
}

.wcf-dropdown-check {
	position: relative;
}

.wcf-dropdown-check__toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 10px;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #949494;
	border-radius: 3px;
	cursor: pointer;
	font: inherit;
	text-align: left;
	/* Sans ce !important, le style de bouton du thème (ex. Astra) l'emporte
	   sur celui-ci — texte blanc, visible seulement au survol — ce qui
	   rendait le texte invisible tant qu'on ne passait pas la souris
	   dessus. */
	color: #1a2b4c !important;
	text-shadow: none !important;
	text-transform: none;
}

.wcf-dropdown-check__toggle:hover,
.wcf-dropdown-check__toggle:focus {
	color: #1a2b4c !important;
}

.wcf-dropdown-check__label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: inherit;
}

.wcf-dropdown-check__arrow {
	flex-shrink: 0;
	transition: transform 0.15s ease;
}

.wcf-dropdown-check__toggle[aria-expanded="true"] .wcf-dropdown-check__arrow {
	transform: rotate( 180deg );
}

.wcf-dropdown-check__panel {
	position: absolute;
	z-index: 20;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 4px;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid #949494;
	border-radius: 3px;
	box-shadow: 0 2px 6px rgba( 0, 0, 0, 0.12 );
	max-height: 220px;
	overflow-y: auto;
}

.wcf-dropdown-check__panel[hidden] {
	display: none;
}

.wcf-filter-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
}

.wcf-filter-reset {
	font-size: 0.85em;
	text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* Mobile / tablette : le widget est déplacé en haut de page par le JS */
/* et replié derrière un bouton "Filtrer les annonces".               */
/* Point de rupture = celui d'Astra (voir MOBILE_QUERY dans widget.js). */
/* ------------------------------------------------------------------ */

.wcf-mobile-toggle {
	display: none;
}

/* Colonne latérale devenue vide une fois le filtre déplacé. */
.wcf-sidebar-emptied {
	display: none !important;
}

@media (max-width: 921px) {
	.wcf-widget-root.wcf-collapsible {
		background: #fff;
		border: 1px solid #d7d7d0;
		border-radius: 8px;
		margin: 0 0 20px;
		padding: 0;
		width: 100%;
		box-sizing: border-box;
	}

	.wcf-widget-root.wcf-collapsible .wcf-widget-title {
		display: none;
	}

	.wcf-widget-root.wcf-collapsible .wcf-mobile-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		width: 100%;
		margin: 0;
		padding: 14px 16px;
		box-sizing: border-box;
		background: #fff !important;
		color: #1a2b4c !important;
		border: 0 !important;
		border-radius: 8px !important;
		box-shadow: none !important;
		font-size: 1rem;
		font-weight: 600 !important;
		line-height: 1.3;
		text-transform: none !important;
		text-align: left;
		cursor: pointer;
	}

	.wcf-widget-root.wcf-collapsible .wcf-mobile-toggle:hover,
	.wcf-widget-root.wcf-collapsible .wcf-mobile-toggle:focus {
		background: #f2f2ef !important;
		color: #1a2b4c !important;
	}

	.wcf-mobile-toggle__arrow {
		display: inline-block;
		transition: transform 0.15s ease;
	}

	.wcf-widget-root.is-open .wcf-mobile-toggle__arrow {
		transform: rotate( 180deg );
	}

	.wcf-widget-root.wcf-collapsible .wcf-panel {
		display: none;
		padding: 14px 16px 16px;
		border-top: 1px solid #e4e4e0;
	}

	.wcf-widget-root.wcf-collapsible.is-open .wcf-panel {
		display: block;
	}
}
