.babel-language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid rgba(15, 23, 42, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
}

/* El propio display:inline-flex de arriba le gana por especificidad al
   display:none por defecto del atributo hidden — sin esto, ocultar este
   switcher embebido (ver static/i18n.js, data-standalone-language) no
   ocultaba nada visualmente. */
.babel-language-switcher[hidden] {
    display: none;
}

.babel-language-switcher__label {
    padding-left: 5px;
    font-weight: 650;
}

.babel-language-switcher button {
    min-width: 42px;
    min-height: 32px;
    padding: 5px 8px;
    border: 1px solid #64748b;
    border-radius: 6px;
    background: #f8fafc;
    color: #0f172a;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.babel-language-switcher button.active {
    border-color: #0f172a;
    background: #dbeafe;
    box-shadow: inset 0 0 0 1px #0f172a;
}

@media (pointer: coarse), (max-width: 760px) {
    .babel-language-switcher button {
        min-width: 44px;
        min-height: 44px;
    }

    .babel-language-switcher__label {
        display: none;
    }
}
