/*
 * Filtros de la tienda. Mismo aspecto que tenían los de JetSmartFilters
 * (tema: src/scss/_filters.scss): títulos manuscritos en óxido, casillas
 * redondeadas y botón «Aplicar» pegado abajo.
 *
 * La tarjeta crema de la columna de escritorio la pone el tema
 * (.elementor-element[data-id="6824594"]); en el panel de móvil el fondo es blanco.
 */

.bbr-filtros {
	--bbr-f-navy: #1c244b;
	--bbr-f-ink: #2e2620;
	--bbr-f-rust: #b0542c;
	--bbr-f-rust-dark: #94431f;
	--bbr-f-text: #5d6167;
	--bbr-f-peach: #feaf65;
	--bbr-f-borde: #f3e6d6;
	--bbr-f-borde-fuerte: #e6d2bc;
	/* Fondo y relleno del contenedor, para que la fila de botones llegue a los bordes. */
	--bbr-f-fondo: #fffaf4;
	--bbr-f-sangria-x: 22px;
	--bbr-f-sangria-abajo: 24px;

	display: flex;
	flex-direction: column;
	margin: 0;
	font-family: 'Quicksand', sans-serif;
}

.e-off-canvas .bbr-filtros {
	--bbr-f-fondo: #fff;
	--bbr-f-sangria-x: 20px;
	--bbr-f-sangria-abajo: 20px;
}

.bbr-filtros__grupo {
	min-width: 0;
	margin: 0;
	padding: 18px 0 0;
	border: 0;
	border-top: 1px solid var(--bbr-f-borde);
}

.bbr-filtros__grupo + .bbr-filtros__grupo {
	margin-top: 18px;
}

.bbr-filtros__grupo:first-of-type {
	padding-top: 0;
	border-top: 0;
}

.bbr-filtros__titulo {
	float: left; /* Que <legend> se porte como un bloque normal. */
	width: 100%;
	margin: 0 0 12px;
	padding: 0;
	font-family: 'manuscrito', 'Quicksand', cursive;
	font-size: 28px;
	font-weight: 400;
	line-height: 1;
	color: var(--bbr-f-rust);
}

.bbr-filtros__titulo + * {
	clear: both;
}

/* Buscador (marcas). */
.bbr-filtros .bbr-filtros__buscar {
	display: block;
	width: 100%;
	height: 40px;
	margin: 0 0 12px;
	padding: 0 16px;
	font-family: 'Quicksand', sans-serif;
	font-size: 14px;
	color: var(--bbr-f-navy);
	background: #fff;
	border: 1px solid var(--bbr-f-borde-fuerte);
	border-radius: 999px;
	box-shadow: none;
	transition: border-color .2s, box-shadow .2s;
}

.bbr-filtros .bbr-filtros__buscar[hidden] {
	display: none;
}

.bbr-filtros .bbr-filtros__buscar::placeholder {
	color: var(--bbr-f-text);
}

.bbr-filtros .bbr-filtros__buscar:focus {
	outline: none;
	border-color: var(--bbr-f-peach);
	box-shadow: 0 0 0 3px rgba(254, 175, 101, .25);
}

/* Casillas. */
.bbr-filtros__lista {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bbr-filtros__opcion {
	margin: 0 0 4px;
}

.bbr-filtros__opcion--extra {
	display: none;
}

.is-abierto .bbr-filtros__opcion--extra,
.is-buscando .bbr-filtros__opcion--extra {
	display: block;
}

.bbr-filtros__opcion[hidden] {
	display: none !important;
}

.bbr-filtros__opcion label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 3px 0;
	cursor: pointer;
}

.bbr-filtros__opcion input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
}

.bbr-filtros__casilla {
	position: relative;
	flex: none;
	width: 18px;
	height: 18px;
	background: #fff;
	border: 1.5px solid var(--bbr-f-borde-fuerte);
	border-radius: 6px;
	transition: background-color .15s, border-color .15s;
}

.bbr-filtros__casilla::after {
	position: absolute;
	top: 2px;
	left: 5px;
	width: 5px;
	height: 9px;
	content: '';
	border: solid #fff;
	border-width: 0 2px 2px 0;
	opacity: 0;
	transform: rotate(45deg);
}

.bbr-filtros__nombre {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--bbr-f-text);
	transition: color .15s;
}

.bbr-filtros__opcion label:hover .bbr-filtros__casilla,
.bbr-filtros__opcion input:focus-visible + .bbr-filtros__casilla {
	border-color: var(--bbr-f-peach);
}

.bbr-filtros__opcion input:focus-visible + .bbr-filtros__casilla {
	box-shadow: 0 0 0 3px rgba(254, 175, 101, .35);
}

.bbr-filtros__opcion label:hover .bbr-filtros__nombre {
	color: var(--bbr-f-rust);
}

.bbr-filtros__opcion input:checked + .bbr-filtros__casilla {
	background: var(--bbr-f-rust);
	border-color: var(--bbr-f-rust);
}

.bbr-filtros__opcion input:checked + .bbr-filtros__casilla::after {
	opacity: 1;
}

.bbr-filtros__opcion input:checked ~ .bbr-filtros__nombre {
	font-weight: 700;
	color: var(--bbr-f-ink);
}

/* «+ Ver más / − Ver menos». */
.bbr-filtros .bbr-filtros__mas {
	display: inline-block;
	margin: 8px 0 0;
	padding: 0;
	font-family: 'Quicksand', sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: var(--bbr-f-rust);
	background: none;
	border: 0;
	cursor: pointer;
}

.bbr-filtros .bbr-filtros__mas[hidden] {
	display: none;
}

.bbr-filtros .bbr-filtros__mas:hover,
.bbr-filtros .bbr-filtros__mas:focus {
	color: var(--bbr-f-rust-dark);
	background: none;
}

/* Precio: dos deslizadores superpuestos sobre una pista. */
.bbr-filtros__rango {
	position: relative;
	height: 20px;
	margin: 12px 10px 10px;
}

.bbr-filtros__rango::before {
	position: absolute;
	top: 8px;
	right: 0;
	left: 0;
	height: 4px;
	content: '';
	background: linear-gradient(to right,
		var(--bbr-f-borde-fuerte) var(--desde),
		var(--bbr-f-rust) var(--desde),
		var(--bbr-f-rust) var(--hasta),
		var(--bbr-f-borde-fuerte) var(--hasta));
	border-radius: 999px;
}

.bbr-filtros__rango input[type="range"] {
	position: absolute;
	inset: 0 -10px;
	width: calc(100% + 20px);
	height: 20px;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	-webkit-appearance: none;
	appearance: none;
	/* La pista no recibe toques (deja hacer scroll en el móvil); solo los tiradores. */
	pointer-events: none;
}

.bbr-filtros__rango input[type="range"]:focus {
	outline: none;
}

.bbr-filtros__rango input[type="range"]::-webkit-slider-runnable-track {
	height: 20px;
	background: none;
}

.bbr-filtros__rango input[type="range"]::-moz-range-track {
	height: 20px;
	background: none;
}

.bbr-filtros__rango input[type="range"]::-webkit-slider-thumb {
	width: 20px;
	height: 20px;
	background: #fff;
	border: 3px solid var(--bbr-f-rust);
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(46, 38, 32, .15);
	cursor: grab;
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
}

.bbr-filtros__rango input[type="range"]::-moz-range-thumb {
	box-sizing: border-box;
	width: 20px;
	height: 20px;
	background: #fff;
	border: 3px solid var(--bbr-f-rust);
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(46, 38, 32, .15);
	cursor: grab;
	pointer-events: auto;
}

.bbr-filtros__rango input[type="range"]:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 4px rgba(254, 175, 101, .45);
}

.bbr-filtros__rango input[type="range"]:focus-visible::-moz-range-thumb {
	box-shadow: 0 0 0 4px rgba(254, 175, 101, .45);
}

.bbr-filtros__valores {
	display: flex;
	gap: 6px;
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--bbr-f-ink);
}

/* Botones, pegados abajo mientras se hace scroll por los filtros. */
.bbr-filtros__acciones {
	position: sticky;
	bottom: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 18px calc(-1 * var(--bbr-f-sangria-x)) calc(-1 * var(--bbr-f-sangria-abajo));
	padding: 14px var(--bbr-f-sangria-x) var(--bbr-f-sangria-abajo);
	background: var(--bbr-f-fondo);
	border-radius: 0 0 20px 20px;
	box-shadow: 0 -12px 16px -12px rgba(46, 38, 32, .18);
}

.e-off-canvas .bbr-filtros__acciones {
	border-radius: 0;
}

.bbr-filtros .bbr-filtros__aplicar {
	flex: 1 1 auto;
	padding: 12px 20px;
	font-family: 'Quicksand', sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	background: var(--bbr-f-rust);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color .2s;
}

.bbr-filtros .bbr-filtros__aplicar:hover,
.bbr-filtros .bbr-filtros__aplicar:focus-visible {
	color: #fff;
	background: var(--bbr-f-rust-dark);
}

.bbr-filtros.is-enviando .bbr-filtros__aplicar {
	opacity: .7;
	pointer-events: none;
}

.bbr-filtros .bbr-filtros__limpiar {
	flex: none;
	padding: 6px 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--bbr-f-rust);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bbr-filtros .bbr-filtros__limpiar:hover {
	color: var(--bbr-f-rust-dark);
}
