.elmm-language-switcher {
    position: fixed;
    top: 28px;
    right: 18px;
    z-index: 999999;
    font-family: inherit;
    transition: transform .22s ease, opacity .22s ease, visibility .22s ease;
}

.admin-bar .elmm-language-switcher {
    top: 60px;
}

.elmm-language-switcher.elmm-is-hidden {
    transform: translateY(-18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.elmm-language-switcher__button {
    min-width: 154px;
    min-height: 38px;
    border: 1px solid rgba(13, 71, 161, .16);
    border-radius: 999px;
    padding: 7px 12px;
    background: #ffffff;
    color: #0b3d91;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-shadow: 0 8px 22px rgba(10, 49, 105, .12);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.elmm-language-switcher__button:hover,
.elmm-language-switcher.elmm-is-open .elmm-language-switcher__button {
    border-color: rgba(0, 149, 255, .38);
    box-shadow: 0 10px 28px rgba(10, 49, 105, .18);
}

.elmm-language-switcher__flag {
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.elmm-language-switcher__label {
    flex: 1;
    text-align: left;
    white-space: nowrap;
}

.elmm-language-switcher__chevron {
    font-size: 12px;
    opacity: .75;
}

.elmm-language-switcher__menu {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    width: 190px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 7px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(13, 71, 161, .14);
    box-shadow: 0 18px 45px rgba(10, 49, 105, .20);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
}

.elmm-language-switcher.elmm-is-open .elmm-language-switcher__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.elmm-language-switcher__item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 11px;
    border-radius: 10px;
    color: #123f82;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.elmm-language-switcher__item:hover,
.elmm-language-switcher__item.is-active {
    background: #eef7ff;
    color: #0095ff;
}

.elmm-language-switcher__item-text {
    white-space: nowrap;
}

@media (max-width: 782px) {
    .elmm-language-switcher {
        top: 36px;
        right: 10px;
    }
    .admin-bar .elmm-language-switcher {
        top: 82px;
    }
    .elmm-language-switcher__button {
        min-width: 126px;
        min-height: 34px;
        padding: 6px 10px;
        font-size: 12px;
    }
    .elmm-language-switcher__menu {
        width: 176px;
    }
}
