/* Toggle de subcategorías Amazzing Filter (carga fuera del bundle CCC) */
#amazzing_filter .foldered .af-parent-category > .af-filter-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	width: 100%;
}

#amazzing_filter .foldered .af-parent-category > .af-filter-row > label {
	display: flex;
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
	width: auto;
	padding-right: 0;
}

#amazzing_filter .foldered .af-parent-category > .af-filter-row > .af-toggle-child {
	grid-column: 2;
	grid-row: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.25rem;
	height: 1.25rem;
	min-width: 1.25rem;
	min-height: 1.25rem;
	padding: 0;
	margin: 0 var(--weu-spacing-xs) 0 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	box-shadow: none;
	line-height: 1;
	flex-shrink: 0;
	position: static;
	transform: none;
}

#amazzing_filter .foldered .af-toggle-child-icon {
	display: block;
	width: 1rem;
	height: 1rem;
	background-image: url('../fonts/heroicons/plus.svg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

#amazzing_filter .foldered .af-parent-category.open > .af-filter-row > .af-toggle-child .af-toggle-child-icon {
	background-image: url('../fonts/heroicons/minus.svg');
}

#amazzing_filter .foldered .af-toggle-child:hover,
#amazzing_filter .foldered .af-toggle-child:focus-visible {
	background-color: var(--weu-color-grey);
	outline: none;
}

/* Anular reglas legacy del módulo / CCC cacheado */
#amazzing_filter .foldered .af-toggle-child:after {
	content: none !important;
	display: none !important;
}

#amazzing_filter .foldered .af-parent-category > label .name {
	justify-content: flex-start;
	padding-right: 0;
	width: auto;
}

@media (max-width: 767px) {
	#amazzing_filter .foldered .af-parent-category > .af-filter-row > .af-toggle-child {
		width: 2.75rem;
		height: 2.75rem;
		min-width: 2.75rem;
		min-height: 2.75rem;
		padding: 0;
		margin: 0;
		touch-action: manipulation;
		-webkit-tap-highlight-color: transparent;
	}

	#amazzing_filter .foldered .af-toggle-child-icon {
		width: 1rem;
		height: 1rem;
		flex-shrink: 0;
	}
}
