.seletor-idioma-wrapper {
    margin: -3px 14px 14px;
}

.seletor-idioma {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.seletor-idioma-botao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 32px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    line-height: 1;
    filter: grayscale(0.55);
    opacity: 0.68;
    transition: transform 140ms ease, opacity 140ms ease, filter 140ms ease,
        border-color 140ms ease, background 140ms ease;
}

.seletor-idioma-botao img {
    display: block;
    width: 26px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
    pointer-events: none;
    user-select: none;
}

.seletor-idioma-botao:hover,
.seletor-idioma-botao:focus-visible {
    filter: none;
    opacity: 1;
    transform: translateY(-1px);
    outline: none;
    border-color: rgba(167, 139, 250, 0.45);
}

.seletor-idioma-botao.ativo {
    filter: none;
    opacity: 1;
    border-color: var(--accent-purple);
    background: rgba(167, 139, 250, 0.14);
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.16);
}

.idioma-status {
    display: none;
    margin: 6px 2px 0;
    color: var(--text-muted);
    font-family: var(--font-code);
    font-size: 0.65rem;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
}

.idioma-status.visivel {
    display: block;
}

.idioma-status.erro {
    color: var(--accent-yellow);
}

/* O KRONOS usa as próprias bandeiras e não exibe a barra/seletor do widget. */
#google_translate_element,
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget,
.goog-te-balloon-frame,
#goog-gt-tt {
    display: none !important;
}

html,
body {
    top: 0 !important;
}

@media (max-width: 700px) {
    .seletor-idioma-wrapper {
        margin-inline: 8px;
    }
}
