.mycred-popup-alert {
    position: fixed;
    bottom: -50%; /* Initially hidden outside the viewport */
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: none; /* Ensure it's hidden initially */
    width: auto;
    max-width: 90%; /* Limit width on smaller screens */
    margin: 0;
}

.mpa-alert {
    border-radius: 40px;
    background-color: white;
    box-shadow: 0px 0px 12px #CCCC;
    padding: 10px 25px;
    display: flex; /* Use flexbox to handle layout */
    align-items: center;
}

.mpa-alert .mpa-left, .mpa-alert .mpa-right {
    margin-top: 5px;
}

.mpa-avatar {
    width: 40px;
    height: 40px; /* Ensure avatar is round */
    border-radius: 50%; /* Ensure the image is circular */
}

.mpa-left {
    margin-right: 20px;
}

.mpa-description {
    color: gray;
    font-size: 12px;
    margin-top: 4px;
}

.mpa-title {
    font-weight: bold;
}

.mpa-alert.dark_theme .mpa-description {
    color: #dadada;
}

.mpa-alert.dark_theme {
    background-color: #313131;
    color: white;
}

.mpa-alert.square {
    border-radius: 6px;
}

@media only screen and (max-width: 425px) {
    .mycred-popup-alert {
        max-width: calc(100% - 10px);
        left: 0;
        right: 0;
        margin: auto;
    }
    
    .mpa-alert {
        margin: auto;
    }
}
