.competa-lang-switcher {
    position: fixed;
    right: 24px;
    bottom: 18px;
    z-index: 99999;
    font-family: "Segoe UI", Tahoma, sans-serif;
    padding-bottom: 6px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.competa-lang-switcher__bar {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
}

.competa-lang-switcher__current,
.competa-lang-switcher__item {
    text-decoration: none;
}

.competa-lang-switcher__current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    height: 46px;
    padding: 0 14px;
    border-radius: 11px;
    background: #ffffff;
    color: #1f2730;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(19, 28, 39, 0.08);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.competa-lang-switcher__menu {
    position: absolute;
    right: 22px;
    bottom: calc(100% + 8px);
    min-width: 170px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(19, 28, 39, 0.08);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    backdrop-filter: blur(10px);
}

.competa-lang-switcher__menu::after {
    content: "";
    position: absolute;
    right: 28px;
    bottom: -10px;
    width: 120px;
    height: 12px;
}

.competa-lang-switcher.is-open .competa-lang-switcher__menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.competa-lang-switcher__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    color: #202833;
    transition: background 0.16s ease, color 0.16s ease;
}

.competa-lang-switcher__item:hover {
    background: #eef3f7;
    color: #111820;
}

.competa-lang-switcher__item.is-current {
    background: #f4f6f8;
    font-weight: 700;
}

.competa-lang-switcher__flag {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
    flex: 0 0 auto;
    display: block;
    align-self: center;
}

.competa-lang-switcher__label {
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    min-height: 16px;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.competa-lang-switcher--transform-uppercase .competa-lang-switcher__label {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.competa-lang-switcher--weight-bold .competa-lang-switcher__label {
    font-weight: 700;
}

.competa-lang-switcher--font-segoe {
    font-family: "Segoe UI", Tahoma, sans-serif;
}

.competa-lang-switcher--font-arial {
    font-family: Arial, Helvetica, sans-serif;
}

.competa-lang-switcher--font-trebuchet {
    font-family: "Trebuchet MS", Tahoma, sans-serif;
}

.competa-lang-switcher--docked {
    right: 54px;
    bottom: -1px;
    padding-bottom: 0;
}

.competa-lang-switcher--docked .competa-lang-switcher__current {
    min-width: 92px;
    height: 32px;
    padding: 0 8px;
    margin-right: 74px;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.18);
    border-bottom: 0;
    align-items: center;
}

.competa-lang-switcher--docked .competa-lang-switcher__menu {
    bottom: calc(100% + 6px);
}

.competa-lang-switcher--docked .competa-lang-switcher__menu::after {
    bottom: -8px;
}

.competa-lang-switcher--side-docked {
    right: -6px;
    bottom: 30%;
    padding-bottom: 0;
    align-items: flex-end;
}


.competa-lang-switcher--side-docked .competa-lang-switcher__current {
    min-width: 124px;
    height: 42px;
    padding: 0 12px;
    padding-right: 22px;
    border-radius: 14px 14px 0 0;
    transform: rotate(-90deg);
    transform-origin: bottom right;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.competa-lang-switcher--side-docked .competa-lang-switcher__menu {
    right: 54px;
    bottom: -118px;
}

.competa-lang-switcher--side-docked .competa-lang-switcher__menu::after {
    right: 0;
    bottom: 0;
    width: 0;
    height: 0;
}

@media (max-width: 767px) {
    .competa-lang-switcher {
        right: 14px;
        bottom: 14px;
    }

    .competa-lang-switcher__current {
        min-width: 136px;
        height: 42px;
        padding: 0 12px;
    }

    .competa-lang-switcher__menu {
        min-width: 160px;
        bottom: calc(100% + 6px);
    }

    .competa-lang-switcher--docked {
        right: 44px;
        bottom: -1px;
    }

    .competa-lang-switcher--docked .competa-lang-switcher__current {
        min-width: 84px;
        height: 30px;
        padding: 0 7px;
        margin-right: 62px;
        border-radius: 13px 13px 0 0;
    }

    .competa-lang-switcher--side-docked {
        right: 0;
        bottom: 26%;
    }

.competa-lang-switcher--side-docked .competa-lang-switcher__current {
        min-width: 112px;
        height: 38px;
        padding: 0 10px;
        padding-right: 20px;
    }

    .competa-lang-switcher--side-docked .competa-lang-switcher__menu {
        right: 48px;
        bottom: -92px;
    }
}
