.AnajProfile {
    display: flex;
    align-items: center;
    justify-content: center;
}

.AnajProfile .UserProfileMenu {
    padding: 0.7rem 0.5rem;
    transition: all ease-in-out 0.3s;
    cursor: pointer;
}

.AnajProfile .UserProfileMenu svg {
    height: 1.5rem;
    width: 1.5rem;
}

.AnajProfile .UserProfileMenu:hover {
    background: var(--Gray-G99);
}

.AnajProfile .UserProfileMenu .UserProfileIcon:after {
    content: "";
    mask: url("../assets/images/icons/chevron.svg") no-repeat center;
    background: var(--Gray-G40);
    height: 6px;
    width: 6px;
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.AnajProfile .UserProfileMenu .UserMenu {
    max-height: 0;
    overflow: hidden;
    transition: all ease-in-out 0.3s;
    width: 16rem;
    background: var(--Gray-G100);
    box-shadow: 0 4px 56px 0 rgba(18, 18, 18, 0.10);
    text-align: right;
    z-index: 555;
    left: 0;
    top: 100%;
    position: absolute;
}

body:not(.rtl) .AnajProfile .UserProfileMenu .UserMenu {
    left: unset;
    right: -50px;
}

.AnajProfile .UserProfileMenu .UserMenu.active {
    max-height: 30rem;
    overflow: auto;
}

.smartprofile-buttons > a{
    padding-inline-end: 24px;
}

.AnajProfile .UserProfileMenu {
    margin-inline-end: 24px;
}



.AnajProfile .UserProfileMenu .UserMenu ul {
    list-style: none;
    padding: 0.5rem;
}

.AnajProfile .UserProfileMenu .UserMenu ul li {
    padding: 0.5rem 1rem;
    border-bottom: 0.1rem solid var(--silver);
    transition: all ease-in-out 0.3s;
}

.AnajProfile .UserProfileMenu .UserMenu ul li.UserProfile span {
    flex: 1 0 auto
}

.AnajProfile .UserProfileMenu .UserMenu ul li.UserProfile:after {
    content: '';
    border: solid var(--dsilver);
    border-width: 0 0.2rem 0.2rem 0;
    display: inline-block;
    padding: 0.2rem;
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
}

.AnajProfile .UserProfileMenu .UserMenu ul li:hover {
    background: rgba(0, 0, 0, 0.1);
}

.AnajProfile .UserProfileMenu .UserMenu li:not(.UserProfile) :where(img, svg) {
    max-width: 1.5rem;
    max-height: 1.5rem
}

body:has(.AnajProfile .UserProfileMenu .UserMenu.active) .dng-main:after {
    opacity: 1;
    z-index: 49;
}

.UserProfile span {
    font-family: "IranSans" , "BMWType";
}
