.language-select {

    .language-toggle {
        .language-toggle-flag {
            width: 15px;
            min-width: 15px;
            height: 15px;
        }
    }

    &:not(:hover) > .language-dropdown {
        visibility: hidden;
        opacity: 0;
        -webkit-transform: translateY(15px);
        -moz-transform: translateY(15px);
        -ms-transform: translateY(15px);
        -o-transform: translateY(15px);
        transform: translateY(15px);
    }

    .language-dropdown {
        position: absolute;
        top: 40px;
        left: 0;
        min-width: 280px;
        background: var(--white);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        border-radius: 24px;
        transition: all 0.3s ease;
        z-index: 46;

        .rtl & {
            left: auto;
            right: 0;
        }

        &__notifications {
            left: auto;
            right: 0;
        }

        &__item {
            color: var(--dark);
            border-left: 2px solid transparent;

            & > div {
                transition: all .3s ease;
            }

            &.active {
                border-left: 2px solid var(--primary);
                font-weight: bold;
            }

            .rtl & {
                border-left: none;
                border-right: 2px solid transparent;

                &.active {
                    border-left: none;
                    border-right: 2px solid var(--primary);
                }
            }

            &:hover {
                background-color: var(--gray-100);

                & > div {
                    transform: translateX(8px);
                }

                .language-dropdown__item-sign-box {
                    background-color: var(--gray-200);
                }
            }

            &-sign-box {
                min-width: 32px;
                height: 32px;
                background-color: var(--gray-100);
                color: var(--gray-500);
                font-weight: normal !important;
            }
        }

        &__flag {
            width: 32px;
            min-width: 32px;
            height: 32px;

            &, & img {
                border-radius: 8px;
            }
        }

        @media (max-width: $screen-sm-max) {
            right: -50%;
            left: auto;
            width: 220px;
            min-width: 220px;
        }
    }
}

.panel-header {
    .language-dropdown {
        top: 32px;
    }
}

.create-product-language {
    margin-right: 30px;

    .rtl & {
        margin-right: 0;
        margin-left: 30px;
    }

    .language-toggle {
        height: 44px;
        border: 1px solid var(--gray-300);
        border-radius: 22px;
        padding: 8px;

        .language-toggle-flag {
            width: 28px;
            min-width: 28px;
            height: 28px;
            border-radius: 50%;

            img {
                border-radius: 50%;
            }
        }
    }

    .language-dropdown {
        top: 48px;
    }
}
