

@keyframes showLeft{
    0%{
        left: -50%;
    }100%{
        left: 0;
    }
}

@keyframes widthToZero{
    0%{
        width: 100%;
    }100%{
        width: 0;
    }
}

.notify {
    position: fixed;
    z-index: 999999;
    height: 0;
    left: 50px;
    bottom: 25px;
}

.notify__item {
    position: absolute;
    bottom: 0;
    left: 0;
    opacity: 0;
}

.notify__item.success .notify__item-wrap{
    background: var(--background-green);
    border: 1px solid var(--background-green);
}

.notify__item.error .notify__item-wrap{
    background: var(--background-red);
    border: 1px solid var(--background-red);

}

.notify__item.info {
    color: #42a5f5
}

.notify__item.default {
    color: #bdbdbd
}

.notify__item.show {
    opacity: 1
}

.notify__item:not(.show) {
    z-index: 0;
    animation: showLeft .2s reverse;
    transition: .2s ease-in-out;
    opacity: 0;
}

.notify__item-wrap {
    transition: .2s ease-in-out;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-sizing: border-box;
    width: 347px;
    min-height: 50px;
    padding: 16px 24px;
    -webkit-animation: showLeft .2s;
    animation: showLeft .2s;
    border-radius: 15px;
    backdrop-filter: blur(17px);
}

.notify__aside,.notify__item-wrap {
    display: -webkit-flex;
    display: flex;
    align-items: center;
    gap: 14px;
}

.notify__aside {
    width: 12px;
    height: 12px;
    position: relative;
    text-align: center;
    -webkit-align-items: center;
    align-items: center
}

.notify__aside img{
    width: 100%;
    height: 100%;
}

.notify__aside img {
    -webkit-animation: showIcon .5s;
    animation: showIcon .5s
}

.notify__title {
    padding-bottom: 5px;
    color: #616161;
    font-size: 15px
}

.notify__message {
    text-overflow: ellipsis;
    text-wrap: nowrap;
    overflow: hidden;
    max-width: 280px;
}

.notify__item.success .notify__message {
    color: var(--green)
}

.notify__item-wrap::before{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    border-radius: 15px;
    width: 100%;
    height: 2px;
    animation: widthToZero 3s linear forwards;
}

.notify__item.error .notify__item-wrap::before{
    background: var(--red);
}

.notify__item.success .notify__item-wrap::before{
    background: var(--green);
}

.notify__item.error .notify__message {
    color: var(--red)
}