:root {
    --rbm-ls-btn-bg: #6b7a8f;
    --rbm-ls-btn-text: #ffffff;
    --rbm-ls-menu-bg: rgba(58, 70, 82, 0.85);
    --rbm-ls-menu-text: #e9eef3;
    --rbm-ls-menu-hover: rgba(47, 57, 67, 0.9);
    --rbm-ls-menu-active: rgba(63, 76, 89, 0.95);
}

.rbm-lang-switcher-wrap {
    display: flex;
    width: 100%;
}

.rbm-lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.rbm-lang-switcher__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 14px;
    height: 44px;
    min-width: 112px;
    border-radius: 14px;
    border: none;
    background: var(--rbm-ls-btn-bg);
    color: var(--rbm-ls-btn-text);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
}

.rbm-lang-switcher__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rbm-lang-switcher__chevron {
    opacity: 0.8;
}

.rbm-lang-switcher__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    width: max-content;
    background: var(--rbm-ls-menu-bg);
    color: var(--rbm-ls-menu-text);
    border-radius: 16px;
    padding: 12px 0;
    list-style: none;
    margin: 0;
    box-shadow: 0 14px 28px rgba(0,0,0,0.25);
    display: none;
    z-index: 1000;
    max-height: 60vh;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.rbm-lang-switcher.is-open .rbm-lang-switcher__menu {
    display: block;
}

.rbm-lang-switcher__item {
    display: block;
    padding: 10px 20px;
    color: var(--rbm-ls-menu-text);
    text-decoration: none;
    font-size: 15px;
    white-space: nowrap;
}

.rbm-lang-switcher__item:hover {
    background: var(--rbm-ls-menu-hover);
}

.rbm-lang-switcher__item.is-active {
    background: var(--rbm-ls-menu-active);
}

@media (max-width: 767px) {
    .rbm-lang-switcher__toggle {
        height: 44px;
        min-width: 112px;
        font-size: 14px;
    }

    .rbm-lang-switcher__menu {
        min-width: 240px;
        max-height: 70vh;
    }
}
