.language-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 40px;
    min-width: 170px;
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 24px rgba(0, 0, 0, 0.12);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.language-control:hover,
.language-control:focus-within {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(125, 211, 252, 0.65) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 28px rgba(0, 0, 0, 0.18);
}

.language-control .bi-translate {
    position: absolute;
    left: 13px;
    color: #7dd3fc;
    font-size: 1rem;
    pointer-events: none;
}

.language-select {
    width: 100%;
    min-width: 170px;
    height: 100%;
    padding: 0 38px;
    color: #ffffff !important;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: none !important;
}

.language-select option {
    color: #0a2647;
    background: #ffffff;
}

.language-caret {
    position: absolute;
    right: 13px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    pointer-events: none;
}

.ui-language-menu-item {
    min-width: 220px;
}

.ui-language-menu-item .language-control {
    width: 100%;
}

.ui-language-floating {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10;
}

@media (max-width: 575.98px) {
    .language-control,
    .language-select {
        min-width: 0;
    }

    .ui-language-floating {
        left: auto;
        right: 16px;
        width: auto;
    }
}
