.switch-component {
    border-radius: 32px;
    border: transparent solid 3px;
    background-color: transparent;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.switch-language-text {
    font-weight: 500;
}

.switch-component .is-desktop.switch-language-text {
    display: none;
}

.select-group-option {
    display: block;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease-in-out;
}

.select-group-option.active {
    opacity: 1 !important;
    pointer-events: all;
}

.switch-language-background {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: rgba(11 11 11 / 50%);
}

.switch-language-content {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 8px 10px -5px rgb(0 0 0 / 20%), 0 16px 24px 2px rgb(0 0 0 / 14%), 0 6px 30px 5px rgb(0 0 0 / 10%);
    padding-bottom: 16px;
}

.close-switch {
    cursor: pointer;
    user-select: none;
    color: var(--gray);
    position: absolute;
    top: 10px;
    right: 10px;
}

.close-switch:hover {
    color: var(--primary)
}

.switch-language-heading {
    padding: 16px 32px;
    font-weight: 500;
    position: relative;
    font-size: 16px;
    color: var(--primary);
    user-select: none;
    margin-bottom: 12px;;
}

.switch-language-row {
    padding: 10px 32px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.switch-language-label {
    font-weight: 500;
    color: var(--primary);
    min-width: 150px;
}

.switch-item {
    width: 100%;
    position: relative;
}

.switch-item-selected  {
    padding: 8px 16px;
    min-height: 50px;
    border-radius: 24px;
    border: 2px solid var(--flash);
    transition: border-color 200ms ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    cursor: pointer;
}

.switch-item-selected:hover {
    border-color: var(--primary-lt);
}

.language-selected span {
    margin-right: 6px;
}

.switch-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 2px solid var(--flash);
    border-top: none;
    z-index: 2;
    display: none;
    max-height: 510px;
    overflow-y: auto;
}


.switch-item.active .switch-list {
    display: block;
    border-color: var(--primary-lt);
}

.switch-link {
    padding: 8px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    user-select: none;
    cursor: pointer;
}

.switch-link:hover {
    color: var(--secondary);
}

.update-locale-update {
    border-radius: 24px;
    color: #fff;
    background-color: #6071ec;
    border: 2px solid #6071ec;
    margin-left: 10px;
    font-weight: 500;
}
.switch-item.active .switch-language-text {
    color: #6071ec;
}

.update-locale-cancel {
    border: 2px solid var(--primary-lt);
    cursor: pointer;
    user-select: none;
    padding: 10px 20px;
    border-radius: 24px;
    outline: none;
}

@media (min-width: 760px) {
    .switch-language-content {
        width: 90%;
        max-width: 500px;
        position: absolute;
        z-index: 2;
        top: 30%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding-bottom: 16px;
    }

    .switch-list {
        list-style: none;
        margin: 0;
        padding: 0;
        position: absolute;
        top:  calc(100% - 1px);
        left: 0;
        width: 100%;
        background-color: #fff;
        border: 2px solid var(--flash);
        border-top: none;
        border-radius: 0 0 24px 24px;
        z-index: 2;
        display: none;
    }

    .switch-link {
        padding: 8px 24px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .switch-item.active .switch-list {
        display: block;
        border-color: var(--primary-lt);
    }

    .switch-item.active .switch-item-selected {
        border-radius: 24px 24px 0 0;
        border-color: var(--primary-lt)
    }
}
@media (max-width: 760px) {
    .switch-language-content {
        width: 100%;
        position: fixed;
        z-index: 2;
        bottom: 0;
        left: 0;
        padding-bottom: 16px;
        transform: translateY(110%);
        transition: transform 300ms ease-in-out;
    }

    .select-group-option.active .switch-language-content {
        transform: translateY(0%);
    }

    .switch-language-row {
        flex-flow: wrap;
    }

    .switch-list {
        bottom:  calc(100% - 1px);
        border-radius: 24px 24px 0 0 ;
        display: none;
        bottom: calc(100% - 1px)
    }

    .switch-item.active .switch-item-selected {
        border-radius: 0 0 24px 24px ;
        border-color: var(--primary-lt)
    }

    .switch-item.active .switch-list {
        max-height: 420px;
        overflow-y: auto;
        overflow-x: hidden;
    }
}