/* Tradutor em cima; Minha UFOP e SEI! embaixo */
.piq-top-links {
    display: grid;
    grid-template-columns: max-content max-content;
    justify-content: end;
    align-items: center;
    gap: 6px 10px;
}

.piq-top-links > a {
    grid-row: 2;
}

/* Posição e tamanho do tradutor */
#google_translate_element {
    display: block !important;

    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: end;

    position: static !important;
    inset: auto !important;
    transform: none !important;
    float: none !important;

    width: 120px;
    margin: 0;
}

#google_translate_element .goog-te-gadget {
    font-size: 0 !important;
}

/* Botão de seleção de idioma */
#google_translate_element .goog-te-combo {
    appearance: none;
    box-sizing: border-box;

    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 7px 12px !important;

    background: linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    ) !important;

    color: white !important;
    border: none !important;
    border-radius: 16px !important;

    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.3;

    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37, 99, 235, .15);
}

/* Destaque ao navegar pelo teclado */
#google_translate_element .goog-te-combo:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 2px;
}

/* Opções do menu */
#google_translate_element .goog-te-combo option {
    color: black;
    background: white;
}

/* Versão compacta para celular */
@media (max-width: 767px) {
    .piq-top-links {
        gap: 4px 8px;
    }

    #google_translate_element {
        width: 110px;
    }

    #google_translate_element .goog-te-combo {
        min-height: 28px;
        padding: 5px 8px !important;

        font-size: 11px !important;
        line-height: 1.2;

        border-radius: 14px !important;
        box-shadow: none;
    }
}