/* Fast WPML Switcher — estilos mejorados y modo compacto móvil */
.fws-wrap{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans';
}

/* Posición flotante */
.fws-floating{
  position: fixed;
  z-index: 9999;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  padding: 10px 12px;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,.22);
  color: #fff;
}
.fws-pos-bottom-right{ right: 14px; bottom: 14px; }
.fws-pos-bottom-left{ left: 14px; bottom: 14px; }

.fws-items {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.fws-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  transition: transform .12s ease, background .2s ease, opacity .2s ease;
}
.fws-chip:hover { transform: translateY(-1px); background: rgba(255,255,255,.20); }
.fws-chip.is-current { background: #2563eb; }
.fws-chip .fws-code { font-weight: 700; letter-spacing: .5px; }
.fws-flag { width: 14px; height: 10px; object-fit: cover; border-radius: 2px; }

/* Dropdown */
.fws-layout-dropdown .fws-select{
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.2);
  color:#fff;
}

/* Botón cerrar */
.fws-close{
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: none;
  background: #111;
  color: #fff;
  line-height: 24px;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

/* ====== Modo compacto móvil ====== */
.fws-toggle{
  display: none;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 700;
  letter-spacing: .4px;
  cursor: pointer;
  margin-right: 6px;
}
.fws-panel{ display: block; }

/* Se activa el modo compacto vía JS si mobile_compact=1 y viewport < breakpoint */
.fws--compact .fws-toggle{
  display: inline-block;
}
.fws--compact .fws-panel{
  display: none;
  margin-top: 8px;
}
.fws--compact .fws-panel.is-open{
  display: block;
}
/* Chips algo más pequeñas en móvil */
@media (max-width: 480px){
  .fws-chip{ padding: 5px 8px; font-size: 12px; }
  .fws-floating{ padding: 8px 10px; }
}
