.user-menu-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%; /* Stretches to the height of the parent */
    width: auto;  /* The width will adapt to the contents (icon) */
    padding: 5px;
}

.user-menu-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Menu Close Icon / Button */
#menu-close-icon {
    cursor: pointer;
    padding: 5px;
}
#menu-close-icon svg {
    height: 30px;
}
#menu-close-icon .elementor-icon{
    font-size: 25px;
}


.user-menu-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    position: relative; /* Ensure button positioning is relative */
}





.user-menu-popup {
    position: absolute;
    top: calc(100% + 0px); /* Slightly below the button */
    right: 0;

    width: 300px; /* Set a fixed width */
    padding: 10px;


    background-color: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 10px;

    opacity: 0;
    visibility: hidden; /* Keeps the element in the flow but hidden */
    /* transition: opacity 0.3s ease, transform 0.3s ease; */
    transform: translateY(10px); /* Starting position for the dropdown */

    will-change: opacity, transform;
}

.user-menu-popup.active {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;

    visibility: visible;
    opacity: 1;
    transform: translateY(0); /* Final position for the dropdown */

    will-change: opacity, transform;
}

.user-menu-popup.closing {
    transition: opacity 0.3s ease, transform 0.3s ease;

    opacity: 0;
    transform: translateY(10px); /* Starting position for the dropdown */

    will-change: opacity, transform;
}

.user-menu-popup .elementor-icon svg {
    transition: opacity 0.1s ease, transform 0.3s ease; /* Syncing with the container */
}



@media (max-width: 768px) {
    .user-menu-button {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        overflow: hidden;
        cursor: pointer;
        position: relative; /* Ensure button positioning is relative */
    }

    .user-menu-popup {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 1000;
        background-color: #fff;
        padding: 20px;
        box-shadow: none;
        opacity: 1;

        /* transition: transform 3s ease-in-out; */
        transform: translateX(100%); /* Fully off-screen initially */
        visibility: hidden; /* Hide the element when inactive */
    }

    .user-menu-popup.active {
        transition: transform 0.3s ease-in-out, opacity 0.3s ease; /* Ensure the opacity transition is included */

        visibility: visible;
        transform: translateX(0); /* Final position for the dropdown */
        opacity: 1;

        overflow: hidden;
    }

    .user-menu-popup.closing {
        transition: transform 0.3s ease-in-out, opacity 0.3s ease; /* Ensure the opacity transition is included */
        transform: translateX(100%); /* Slide out */
        opacity: 1;
    }

    .user-menu-popup.has-admin {
        margin: 46px 0 0 0;    
    }

    #menu-close-icon {
        display: inline-block;
    }
}

@media (max-width: 400px) {
    .site-logo-text.base-name-text {
        display: none;
    }
}
