.language-options {
    padding: 3px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
}

[dir='rtl'] .language-options {
    right: 0;
    left: auto;
}

[dir='ltr'] .language-options {
    left: 0;
    right: auto;
}

.language-options.show{
    opacity: 1;
    visibility: visible;
}

.language-box {
    width: 44px;
    height: 44px;
    background-color: var(--item-bg);
    border: 1px solid var(--item-bg);  
    border-radius: 50rem;
    transition: width 0.3s ease, height 0.3s ease;
    overflow: hidden;
    position: relative;
    justify-content: center;
}

.language-box.expanded {
    width: 80px;
    min-width: fit-content;
    height: auto;
    min-height: 44px;
    justify-content: end;
}

.language-icon {
    opacity: 0.7;
}

@media (max-width: 575.98px) {
    .language-box {
        width: 38px;
        height: 38px;
    }
    .language-box.expanded {
        width: 100px;
    }
    .language-icon {
        font-size: 30px !important;
    }
    .language-item img {
        width: 24px;
        height: 24px;
    }
}