/**
 * Estilos del filtro de founders.
 *
 * @package UDD_Founders
 */

.founders-filter__form {
	margin-bottom: var(--wp--preset--spacing--50);
}
.founders-filter__form:has(.htmx-indicator.htmx-request) input,
.founders-filter__form:has(.htmx-indicator.htmx-request) select {
	opacity: .666;
	transition: all .15s linear;
	pointer-events: none;
}

.founders-filter__search-bar {
	display: flex;
	flex-flow: column;
	gap: var(--wp--preset--spacing--50);
	justify-content: flex-start;
}
@media (min-width: 720px) {
	.founders-filter__search-bar {
		flex-flow: row;
		align-items: center;
	}
}
.founders-filter__search-bar br {
	display: none;
}

.founders-filter__search {
	flex: 1;
	padding: 1rem 1rem 1rem 3rem;
	font-size: var(--wp--preset--font-size--normal);
	border: 1px solid #d1d1d1;
	padding: 1rem 1rem 1rem 3rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23a3a3a3' stroke-linecap='square' d='M8.5 14a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11Zm4-1.5L17 17'/%3E%3C/svg%3E");
	background-position: 1rem center;
	background-repeat: no-repeat;
	border-radius: 0;
}

.founders-filter__toggle {
	font-size: var(--wp--preset--font-size--normal);
	cursor: pointer;
	background: transparent;
	color: #1A1A1A;
	white-space: nowrap;
	font-family: var( --wp--preset--font-family--google-sans-flex );
	border: none;
	font-weight: 500;
	position: relative;
	transition: all .2s linear;
	width: 15em;
	text-align: left;
	padding: 0 !important;
}
.founders-filter__toggle::before {
	content: '';
	/* background: #03f; */
	background-color: #D1D1D1;
	width: 44px;
	height: 24px;
	border-radius: 24px;
	display: inline-block;
	vertical-align: middle;
	position: relative;
	top: 0;
	margin-right: 5px;
	transition: all .2s linear;
}
.founders-filter__toggle::after {
	content: '';
	background-color: #fff;
	display: inline-block;
	height: 20px;
	width: 20px;
	top: 2px;
	left: 2px;
	border-radius: 20px;
	position: absolute;
	transition: all .2s linear;
}
.founders-filter__toggle:hover::before {
	background-color: #a3a3a3;
}
.founders-filter__toggle-on::before,
.founders-filter__toggle-on:hover::before {
	background-color: #03f;
}
.founders-filter__toggle-on::after {
	transform: translateX(20px);
}

/* .founders-filter__toggle:hover {
	background: var(--wp--preset--color--azul-500, #0033ff);
	color: var(--wp--preset--color--blanco, #ffffff);
} */

.founders-filter__advanced {
	margin-top: var(--wp--preset--spacing--50);
	opacity: 1;
	transition: all linear .35s;
}
.founders-filter__advanced[hidden="hidden"] {
	opacity: 0;
}

.founders-filter__group {
	border: 0;
	padding: 0;
	margin: 0 0 var(--wp--preset--spacing--50);
}

.founders-filter__group legend {
	font-weight: 500;
	margin-bottom: var(--wp--preset--spacing--50);
	color: #5C5C5C;
	text-transform: uppercase;
	font-size: var( --wp--preset--font-size--small );
	margin: 1rem 0 0;
}
.founders-filter__group br {
	display: none;
}
.founders-filter__group > p {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	width: 100%;
	gap: var( --wp--preset--spacing--50 );
}
@media (min-width: 720px) {
	.founders-filter__group > p {
		grid-template-columns: repeat(3, 1fr);
	}
}

.founders-filter__select {
	display: block;
	width: 100%;
	margin-bottom: var(--wp--preset--spacing--50);
	padding: 0.5em 0.75em;
	font-size: var(--wp--preset--font-size--normal);
	border-width: 0;
	border-bottom: 1px solid #E5E5E5;
	background: transparent;
	font-family: var( --wp--preset--font-family--google-sans-flex );
	color: #1A1A1A;
	font-weight: 500;
}
.founders-filter__select:blank,
.founders-filter__select:-moz-placeholder {
	color: #464646;
}

.founders-filter__results-meta {
	margin-top: var(--wp--preset--spacing--50);
	margin-bottom: var(--wp--preset--spacing--50);
}

.founders-filter__count {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--gris-700, #464646);
}

.founders-filter__sort {
	padding: 0.4em 0.75em;
	font-size: var(--wp--preset--font-size--small);
	border: 1px solid var(--wp--preset--color--gris-400, #a3a3a3);
	border-radius: 4px;
}

.htmx-indicator {
	display: none;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--gris-700, #464646);
}
.htmx-indicator {
	display: inline-block;
}
.htmx-indicator::before {
	content: '';
	display: inline-block;
	width: .666em;
	height: .666em;
	border-radius: 1em;
	border: 1px solid #03f;
	border-bottom-width: 0;
	margin-right: .333em;
	animation: forwards infinite spin 300ms linear;
}
@keyframes spin {
	100% {
		transform: rotateX(360deg);
	}
}

.htmx-request .founders-filter__form {
	opacity: 0.6;
	pointer-events: none;
}

@media ( min-width: 600px ) {
	.founders-filter__group {
		display: flex;
		gap: var(--wp--preset--spacing--50);
	}

	.founders-filter__select {
		flex: 1;
	}
}
