/**
 * ServiTotal — Selector de instancia (país) del footer.
 * Botón compacto (bandera + nombre + flecha) que despliega las demás
 * instancias del multisitio. Ver inc/selector-pais-footer.php.
 */

.st-footer-country {
	position: relative;
	flex: 0 0 auto;
}

.st-footer-country__btn {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	color: var(--wp--preset--color--navy);
	border: 0;
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}

.st-footer-country__flag {
	font-size: 18px;
	line-height: 1;
}

.st-footer-country__chev {
	margin-left: 2px;
	flex: 0 0 auto;
	transition: transform 0.15s ease;
}

.st-footer-country[data-open] .st-footer-country__chev {
	transform: rotate(180deg);
}

.st-footer-country__menu {
	list-style: none;
	margin: 0;
	padding: 8px;
	position: absolute;
	right: 0;
	bottom: calc(100% + 10px);
	min-width: 200px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
	z-index: 20;
}

.st-footer-country__menu[hidden] {
	display: none;
}

.st-footer-country__menu a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 8px;
	color: var(--wp--preset--color--navy);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
}

.st-footer-country__menu a:hover {
	background: #f4f4f6;
}

@media (max-width: 767.98px) {

	/* Sin esto, al envolver a una segunda línea el selector queda pegado al
	   borde izquierdo (el "space-between" del contenedor reparte una sola
	   línea con un solo elemento hacia el inicio): se apila centrado, igual
	   que ya hace el nav en este mismo punto de quiebre. */
	.st-footer-row {
		flex-direction: column;
		align-items: center;
		gap: 20px;
	}

	.st-footer-country__menu {
		right: auto;
		left: 50%;
		transform: translateX(-50%);
	}
}
