﻿.toastBox {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    overflow: hidden;
    padding: 20px;
    bottom: 0;
    left: 0;
    z-index: 9999;
}

#toast-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    overflow: hidden;
    padding: 0px 20px;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    border-left: 32px;
    border-color: #3A7936;
    z-index: 11;
}

    #toast-wrapper .toast-v2 {
        background: #fff;
        font-weight: 500;
        box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.06), 0px 4px 6px 0px rgba(0, 0, 0, 0.10);
        display: flex;
        align-items: center;
        position: relative;
        transform: translateY(-100%);
        animation: moveTopToBottom 0.3s linear forwards;
        padding: 16px;
        padding-left: 8px;
        border-radius: 8px;
        width: 100%;
        border-left-width: 8px;
        border-left-color: #3A7936;
    }

        #toast-wrapper .toast-v2.success {
            border-left-color: #3A7936;
            color: #3A7936
        }

        #toast-wrapper .toast-v2.error {
            border-left-color: #E13119;
            color: #E13119;
        }

.toast {
    width: 300px;
    background: #fff;
    font-weight: 500;
    margin: 15px 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    position: relative;
    transform: translateX(-100%);
    animation: moveleft 0.3s linear forwards;
    padding: 15px;
    border-radius: 8px;
}

@keyframes moveTopToBottom {
    100% {
        transform: translateY(0);
    }
}

@keyframes moveleft {
    100% {
        transform: translateX(0);
    }
}

.toast i {
    margin: 0 20px;
    font-size: 35px;
}

.toast.success i {
    color: green;
}

.toast.error i {
    color: red;
}

.toast.invalid i {
    color: orange;
}

.toast::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    animation: anim 3s linear forwards;
}

@keyframes anim {
    100% {
        width: 0;
    }
}

.toast.success::after {
    background: green;
}

.toast.error::after {
    background: red;
}

.toast.invalid::after {
    background: orange;
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

    .close-btn i {
        color: #666;
    }

.toast.error .close-btn i,
.toast.invalid .close-btn i {
    color: #666;
}
