.avatar-text{
    display: flex;
    justify-content: center;
    align-items: center;
    width:30px;
    height: 30px;
    border-radius: 50%;
    border:solid 1px #8d8b8b;
    color: #8d8b8b;
    
}
.vm-user-entity .avatar, .vm-user-entity .avatar-text{
    margin-right:0.5rem;
}
/* Ensure the dropdown toggle (top bar) is always visible */
.user-entity-selector {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* The box (visible at all times) */
.current-user-entity {
    display: flex;
    align-items: center;
    padding: 5px;
    transition: 0.3s;
}
.current-user-entity::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    bottom: 0.2rem;
    left: 40px;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: inherit;
    transition: transform 0.3s ease;
    background-color: rgba(255,255,255,0.8);
    color: #000;
    border-radius: 50%;
    padding: 0.1rem;
    border: solid 0.1rem #fff;
}

/* User avatar */
.vm-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}
.vm-current-user .avatar{
    border-radius: 50%;
    margin-right:0.5rem;
    width:40px;
    height:40px;
}
.vm-current-user .avatar-text{
    margin-right:0.5rem;
}
/* Dropdown menu (hidden by default) */
.user-entity-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: #ffffff;
    color: #000;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 220px;
    list-style: none;
    padding: 0;
    margin: 0;
    display: none; /* Only the menu should be hidden */
    font-size: 14px;
}
.user-entity-dropdown i {
    margin-right: 10px;
}
.social-details-buttons .user-entity-dropdown, #vm-checkout .user-entity-dropdown, #messenger .user-entity-dropdown{
    left:0;
}
/* Show when active */
.user-entity-dropdown.active {
    display: block;
}

/* Style dropdown items */
.user-entity-dropdown li {
    position: relative;
    padding: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}
.user-entity-dropdown ul.vm-current-user{
    border-bottom: 1px solid #ddd;
    background: #f5f5f5;
}
.user-entity-dropdown ul.vm-current-user i{ 
    color: inherit;
}
.user-entity-dropdown li:hover {
    background: #e6e6e6;
}
.vm-user-logout{
    border-top: 1px solid #ddd;
    font-size: 14px;
}
.vm-user-logout i{
    margin-right:10px;
}
.social-details-buttons .current-user-entity img{
    width:25px;
    height:25px;
    margin-right:0;
}
#vm-address-form-wrapper{
    display:none;
}
#vm-form-user-slug-username, #vm-form-vendor-slug-username{
    font-weight:600;
}
.vm-login-form #vm-register-optional{
    display: none;
}
.user-search-results {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    z-index: 1000;
    display: none;
  }

  .user-search-results li{
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-search-results li:hover{
    background: #f0f0f0;
}
.user-search-results li div{
    display: flex;
    align-items: center;
    gap: 10px;
}
@media (max-width: 1024px) {
    #market-community-profile{
        flex-direction: column-reverse;
    }
}