.aido-brand-filter {
	--aido-brand-control-size: 18px;
	--aido-brand-control-border: currentColor;
	--aido-brand-control-bg: transparent;
	--aido-brand-control-active: currentColor;
	--aido-brand-check: #fff;
	--aido-term-visible-options: 7;
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: 100%;
	overflow: visible !important;
}

.elementor-widget-aido_brand_filter,
.elementor-widget-aido_brand_filter > .elementor-widget-container {
	overflow: visible !important;
}

.aido-brand-filter.is-open {
	z-index: 10000;
}

.aido-brand-filter *,
.aido-brand-filter *::before,
.aido-brand-filter *::after {
	box-sizing: border-box;
}

.aido-brand-filter__title {
	margin: 0 0 16px;
}

.aido-brand-filter__form {
	position: relative;
	width: 100%;
	margin: 0;
	overflow: visible;
}

.aido-brand-filter__dropdown,
.aido-brand-filter__details {
	--aido-term-dropdown-gap: 8px;
	position: static;
	width: 100%;
	overflow: visible;
}

.aido-brand-filter__dropdown-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid currentColor;
	border-radius: 4px;
	background: transparent;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	font-style: inherit;
	font-variant: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	line-height: 1.2;
	text-align: left;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.aido-brand-filter__dropdown-toggle:focus-visible,
.aido-brand-filter__item:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.aido-brand-filter__dropdown-label {
	min-width: 0;
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}


/*
 * Los textos internos heredan explícitamente toda la tipografía aplicada por
 * Elementor al control padre. Esto evita que reglas del tema o estilos nativos
 * de button/label anulen transform, peso, estilo, espaciado o decoración.
 */
.aido-brand-filter__dropdown-label,
.aido-brand-filter__name {
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	font-style: inherit;
	font-variant: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	word-spacing: inherit;
	text-transform: inherit;
	text-decoration: inherit;
}

.aido-brand-filter__dropdown-icon,
.aido-brand-filter__dropdown-icon-svg {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	font-size: 14px;
	line-height: 1;
	fill: currentColor;
	transition: transform .2s ease;
}

.aido-brand-filter__dropdown-icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.aido-brand-filter__dropdown.is-open .aido-brand-filter__dropdown-icon,
.aido-brand-filter__details[open] .aido-brand-filter__dropdown-icon {
	transform: rotate(180deg);
}

.aido-brand-filter__details {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
}

.aido-brand-filter__summary {
	list-style: none;
}

.aido-brand-filter__summary::-webkit-details-marker {
	display: none;
}

.aido-brand-filter__dropdown-panel {
	position: absolute;
	box-sizing: border-box;
	top: calc(100% + var(--aido-term-dropdown-gap));
	left: 0;
	z-index: 9999;
	width: 100%;
	max-width: 100%;
	max-height: 360px;
	padding: 6px;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid #d8dde6;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
}


.aido-brand-filter__dropdown-panel[hidden] {
	display: none !important;
}

.aido-brand-filter__list {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
}

.aido-brand-filter--dropdown .aido-brand-filter__list {
	grid-template-columns: minmax(0, 1fr) !important;
}

.aido-brand-filter__item {
	display: flex;
	align-items: center;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid currentColor;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	font-style: inherit;
	font-variant: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	line-height: inherit;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease;
}

button.aido-brand-filter__item {
	appearance: none;
	-webkit-appearance: none;
}

.aido-brand-filter__input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.aido-brand-filter__control {
	position: relative;
	flex: 0 0 var(--aido-brand-control-size);
	width: var(--aido-brand-control-size);
	height: var(--aido-brand-control-size);
	margin-right: 10px;
	border: 1px solid var(--aido-brand-control-border);
	border-radius: 3px;
	background: var(--aido-brand-control-bg);
}

.aido-brand-filter__item.is-active .aido-brand-filter__control,
.aido-brand-filter__input:checked + .aido-brand-filter__control {
	background: var(--aido-brand-control-active);
}

.aido-brand-filter__item.is-active .aido-brand-filter__control::after,
.aido-brand-filter__input:checked + .aido-brand-filter__control::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 46%;
	width: 42%;
	height: 24%;
	border-left: 2px solid var(--aido-brand-check);
	border-bottom: 2px solid var(--aido-brand-check);
	transform: translate(-50%, -50%) rotate(-45deg);
}

.aido-brand-filter__image {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 42px;
	height: 30px;
	margin-right: 10px;
	overflow: hidden;
}

.aido-brand-filter__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.aido-brand-filter__name {
	min-width: 0;
	flex: 1 1 auto;
}

.aido-brand-filter__count {
	flex: 0 0 auto;
	margin-left: 10px;
}

.aido-brand-filter.is-loading {
	pointer-events: none;
	cursor: progress;
}


/*
 * Los paneles abiertos se trasladan temporalmente a una capa fija fuera del
 * flujo. Esto replica el comportamiento de Ordenar productos: el desplegable
 * nunca cambia la altura del widget ni desplaza el contenido que está debajo.
 * Las réplicas conservan las clases/atributos de Elementor para que sigan
 * aplicándose tipografías, fondos, bordes, radios, sombras y estilos responsive.
 */
.aido-brand-filter-portal-scope,
.aido-brand-filter-portal-node,
.aido-brand-filter-portal {
	display: contents !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: visible !important;
	pointer-events: none !important;
	transform: none !important;
}

.aido-brand-filter-portal .aido-brand-filter__dropdown-panel {
	box-sizing: border-box;
	pointer-events: auto !important;
}

.aido-brand-filter.is-loading .aido-brand-filter__dropdown-toggle {
	cursor: progress;
}

.aido-brand-filter__noscript {
	margin-top: 12px;
}
