/* Estructura; colores/tipografía de texto los controla Elementor. */
.ezwp-filters {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.ezwp-filters__group {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.ezwp-filters__heading {
	display: block;
}

.ezwp-filters__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--ezwp-item-gap, 0.5rem);
}

.ezwp-filters__group--layout-pills > .ezwp-filters__list {
	flex-direction: row;
	flex-wrap: wrap;
}

.ezwp-filters__row {
	display: flex;
	align-items: center;
	gap: 0.35em;
	width: 100%;
}

.ezwp-filters__item {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	cursor: pointer;
	margin: 0;
	flex: 1;
	min-width: 0;
}

/* Checkbox: cuadrado borde fino (ref. diseño). */
.ezwp-filters__input[type='checkbox'] {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	width: 1em;
	height: 1em;
	margin: 0;
	padding: 0;
	flex-shrink: 0;
	border: 1px solid #c4c4c4;
	border-radius: 2px;
	background-color: transparent;
	background-image: none;
	box-shadow: none;
	cursor: pointer;
	vertical-align: middle;
	accent-color: transparent;
}

.ezwp-filters__input[type='checkbox']:checked {
	border-color: #8a8a8a;
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23555555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.2l2.4 2.4 4.6-5'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 0.75em 0.75em;
}

.ezwp-filters__input[type='checkbox']:focus {
	outline: none;
}

.ezwp-filters__input[type='checkbox']:focus-visible {
	outline: 2px solid #b0b0b0;
	outline-offset: 2px;
}

.ezwp-filters__group--hide-check .ezwp-filters__input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
	background: none;
}

.ezwp-filters__group--layout-pills .ezwp-filters__item {
	border: 1px solid currentColor;
	padding: 0.35em 0.75em;
	border-radius: 999px;
}

.ezwp-filters__node--has-children {
	display: flex;
	flex-direction: column;
	gap: var(--ezwp-item-gap, 0.5rem);
}

.ezwp-filters__children {
	display: flex;
	flex-direction: column;
	gap: var(--ezwp-item-gap, 0.5rem);
	margin-top: 0;
	padding-left: 1em;
}

.ezwp-filters__node--has-children.is-collapsed > .ezwp-filters__children {
	display: none;
}

/* Toggle: chevron (ref. diseño), aislado de Elementor. */
.ezwp-filters button.ezwp-filters__toggle {
	all: unset;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.25em;
	height: 1.25em;
	cursor: pointer;
	padding: 0;
	color: #6b6b6b;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	text-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.ezwp-filters button.ezwp-filters__toggle:hover,
.ezwp-filters button.ezwp-filters__toggle:focus,
.ezwp-filters button.ezwp-filters__toggle:active {
	background: transparent;
	border: 0;
	box-shadow: none;
	outline: none;
	text-decoration: none;
}

.ezwp-filters button.ezwp-filters__toggle:focus-visible {
	outline: 2px solid #b0b0b0;
	outline-offset: 2px;
}

.ezwp-filters .ezwp-filters__toggle-icon {
	display: block;
	width: 0.45em;
	height: 0.45em;
	margin: 0;
	border: 0;
	border-left: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	background: none;
	box-shadow: none;
	/* Expandido (default): chevron hacia arriba */
	transform: rotate(135deg);
	transition: transform 0.15s ease;
}

.ezwp-filters .ezwp-filters__toggle-icon::before {
	content: none;
}

.ezwp-filters .ezwp-filters__node.is-collapsed > .ezwp-filters__row .ezwp-filters__toggle-icon {
	/* Contraído: chevron hacia abajo */
	transform: rotate(-45deg);
}

.ezwp-filters__clear-wrap {
	margin-top: 0.75rem;
}

.ezwp-filters__clear {
	display: inline-block;
	color: #6b6b6b;
	text-decoration: underline;
	text-underline-offset: 0.15em;
	cursor: pointer;
}

.ezwp-filters__clear:hover {
	color: #333;
}

/* Widget ordenar: aislamiento fuerte del tema / Elementor. */
.ezwp-sort {
	position: relative !important;
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.ezwp-sort .ezwp-sort__trigger {
	box-sizing: border-box !important;
	display: inline-flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 0.65em !important;
	width: auto !important;
	max-width: 100% !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0.15em 0 0.35em !important;
	border: 0 !important;
	border-radius: 0 !important;
	border-bottom: 1px solid #d0d0d0 !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	text-shadow: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	line-height: 1.2 !important;
	cursor: pointer !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.ezwp-sort .ezwp-sort__trigger:hover,
.ezwp-sort .ezwp-sort__trigger:focus,
.ezwp-sort .ezwp-sort__trigger:active {
	background: transparent !important;
	background-image: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	transform: none !important;
}

.ezwp-sort .ezwp-sort__trigger:focus-visible {
	outline: 2px solid #b0b0b0 !important;
	outline-offset: 2px !important;
}

.ezwp-sort .ezwp-sort__label {
	display: inline-block !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: #4670a1;
	font-weight: 700;
	line-height: 1.2 !important;
	white-space: nowrap !important;
	text-decoration: none !important;
	text-transform: none !important;
	box-shadow: none !important;
}

.ezwp-sort .ezwp-sort__chevron {
	display: block !important;
	box-sizing: border-box !important;
	width: 0.45em !important;
	height: 0.45em !important;
	margin: -0.15em 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-left: 1.5px solid #b0b0b0 !important;
	border-bottom: 1.5px solid #b0b0b0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	transform: rotate(-45deg) !important;
	flex-shrink: 0 !important;
	transition: transform 0.15s ease !important;
}

.ezwp-sort.is-open .ezwp-sort__chevron {
	margin-top: 0.15em !important;
	transform: rotate(135deg) !important;
}

.ezwp-sort .ezwp-sort__menu {
	position: absolute !important;
	top: calc(100% + 0.25rem) !important;
	left: 0 !important;
	right: auto !important;
	z-index: 100 !important;
	min-width: 100% !important;
	width: max-content !important;
	max-width: min(100vw, 22rem) !important;
	margin: 0 !important;
	padding: 0.35rem 0 !important;
	list-style: none !important;
	background: #fff !important;
	border: 1px solid #e5e5e5 !important;
	border-radius: 0 !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

.ezwp-sort .ezwp-sort__menu[hidden] {
	display: none !important;
}

.ezwp-sort .ezwp-sort__menu > li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	background: transparent !important;
	border: 0 !important;
}

.ezwp-sort .ezwp-sort__option {
	box-sizing: border-box !important;
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0.5em 0.85em !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #555;
	font-weight: 400;
	line-height: 1.3 !important;
	text-align: left !important;
	text-decoration: none !important;
	text-transform: none !important;
	cursor: pointer !important;
	white-space: nowrap !important;
}

.ezwp-sort .ezwp-sort__option:hover,
.ezwp-sort .ezwp-sort__option.is-active {
	color: #4670a1;
	background: #f7f7f7 !important;
	background-image: none !important;
	box-shadow: none !important;
}
