/* Contenedor */
.mll-lang-switcher{
  position: relative;
  display: inline-block;
  font-family: sans-serif;
  z-index: 9999;
}

/* Botón seleccionado (abajo) — mismo fondo que el desplegable */
.mll-lang-selected{
  background: #f5f6f7;                 /* igual que el menú */
  border-radius: 25px;
  padding: 10px 16px ;
  font-weight: 700;
  font-size: 14px;
  color: #2f2f2f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 64px;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
}

.mll-arrow{ font-size: 11px; line-height: 1; }

/* Panel de opciones (ahora abajo) */
.mll-lang-options{
  display: none;
  position: absolute;
  top: 100%;                          /* pegado al botón hacia abajo */
  left: 50%;
  transform: translateX(-50%);        /* centrado respecto al botón */
  background: #f5f6f7;                /* igual que el botón */
  border-radius: 16px;
  padding: 10px 8px;
  min-width: 64px;
  text-align: center;
  overflow: hidden;
}

/* Mostrar cuando está abierto */
.mll-lang-switcher.open .mll-lang-options{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mll-lang-switcher.open .mll-lang-selected {
  border-top-left-radius: 14px;       /* esquinas superiores redondeadas */
  border-top-right-radius: 14px;
  border-bottom-left-radius: 0;       /* esquinas inferiores cuadradas */
  border-bottom-right-radius: 0;
  border-bottom: none;                /* evita borde doble con el menú */
  padding: 10px 16px;   
}

.mll-lang-switcher.open .mll-lang-options {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Ítems */
.mll-lang-option{
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #2f2f2f;
  border-radius: 10px;
}

/* Separación vertical entre ítems (sin líneas) */
.mll-lang-option + .mll-lang-option{ margin-top: 12px; }

/* Idioma activo en el menú: sin fondo extra */
.mll-lang-option.active,
.mll-lang-option[aria-selected="true"]{
  background: transparent !important;
  color: #2f2f2f; /* color normal */
}

/* Hover en cualquier idioma: texto gris claro y cursor */
.mll-lang-option:hover{
  background: transparent !important;
  color: #888888; /* gris más claro */
  cursor: pointer;
}

/* Flecha rota cuando está abierto */
.mll-lang-switcher.open .mll-arrow{ transform: rotate(180deg); }
