.fts-language-switcher {
    position: relative;
    display: inline-block;
    min-width: 56px;
}

.fts-language-switcher__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 10px;
    color: #333;
    cursor: pointer;
    font: inherit;
    background:#f8f9fb;
}

.fts-language-switcher__toggle:hover {
    background: #f8f9fb;
}

.fts-language-switcher__toggle:focus {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

.fts-language-switcher__current-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fts-language-switcher__arrow {
    color: #333;
    font-size: 15px;
    line-height: 1;
    transition: transform .2s ease;
}

.fts-language-switcher.is-open .fts-language-switcher__arrow {
    transform: rotate(180deg);
}

.fts-language-switcher__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 9999;
    min-width: 100%;
    width: max-content;
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
}

.fts-language-switcher__link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.fts-language-switcher__link:hover {
    background: #f8f9fb;
}

.fts-language-switcher__link.is-current {
    background: #f3f4f6;
    cursor: default;
}

.fts-language-switcher__flag {
    display: block;
    width: 30px;
    height: 20px;
    border-radius: 2px;
    object-fit: cover;
    flex: 0 0 auto;
}

.fts-language-switcher.is-open .fts-language-switcher__menu {
    display: block;
}
