/* Toast common styling */
#toast-container>div {
    /*
    padding: 16px 20px !important; */
    /* max-width: 90vw;
  min-width: 280px; */
    /* word-break: break-word; */
    /* box-shadow: 0 4px 10px rgba(0,0,0,0.15); */
    /* margin-bottom: 10px; */

    /* custom */
    width: 450px !important;
    max-width: 90vw !important;
    box-sizing: border-box;
    /* min-width: 280px !important; */
    position: relative !important;
    word-break: break-word !important;
    z-index: 1000 !important;
    font-family: 'Lexend', sans-serif !important;
    border-radius: 7px !important;
    padding: 16px 20px !important;
    /* transition: right 0.6s ease-in-out !important; */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;

    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;

}



/* Separate title & message */
#toast-container .toast-title {
    /* font-weight: bold; */
    font-size: 18px !important;
    /* display: block; */
    margin-bottom: 4px;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
}

#toast-container .toast-message {
    margin: 5px 0 0 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    /* adjust  */
    display: block !important;
    width: 100% !important;
    word-break: break-word !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
}

/* mobile responsivenesss */
@media (max-width: 760px) {
    #toast-container>div {
        width: 90vw !important;
        padding: 14px 16px !important;
    }

    #toast-container .toast-title {
        font-size: 16px !important;
    }

    #toast-container .toast-message {
        font-size: 15px !important;
        display: block !important;
        width: 100% !important;
        word-break: break-word !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
    }
}



/* scenes */

.toast-close-button {
    position: absolute !important;
    top: 8px !important;
    right: 10px !important;
    color: #666 !important;
    font-size: 29px !important;
    opacity: 0.8 !important;
}

/* Disable default toastr icons */
#toast-container>.toast-success,
#toast-container>.toast-error,
#toast-container>.toast-info,
#toast-container>.toast-warning {
    background-image: none !important;
}


#toast-container>div:before {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-size: 20px !important;
    margin-right: 12px !important;
    margin-top: 4px !important;
    flex-shrink: 0 !important;
}

.toast-success {
    background: #d8f8e6 !important;
    color: #048e24 !important;
    border: 2px solid #38c172 !important;
    /* border-left: 8px solid #38c172 !important; */
}

/* Add FontAwesome icon next to title */
#toast-container>.toast-success .toast-title::before {
    content: "\f05a";
    /* Font Awesome check-circle */
    font-family: "Font Awesome 5 Free";
    font-weight: 900 !important;
    color: #28a745 !important;
    margin-right: 10px !important;
    font-size: 17px !important;
}

.toast-error {
    background-color: #f9d1d1 !important;
    color: #721c24 !important;
    border: 2px solid #e3342f !important;
}

#toast-container>.toast-error .toast-title::before {
    content: "\f057";
    /* times-circle */
    font-family: "Font Awesome 5 Free";
    font-weight: 900 !important;
    color: #e3342f !important;
    margin-right: 10px !important;
    font-size: 18px !important;
}

.toast-info {
    background-color: #e7f3ff !important;
    color: #0c5460 !important;
    border: 2px solid #3490dc !important;
}

#toast-container>.toast-info .toast-title::before {
    content: "\f05a";
    /* info-circle */
    font-family: "Font Awesome 5 Free";
    font-weight: 900 !important;
    color: #3490dc !important;
    margin-right: 10px !important;
    font-size: 18px !important;
}


.toast-warning {
    background-color: #fffbe6 !important;
    color: #856404 !important;
    border: 2px solid #ffc107 !important;
}

#toast-container>.toast-warning .toast-title::before {
    content: "\f071";
    /* exclamation-triangle */
    font-family: "Font Awesome 5 Free";
    font-weight: 900 !important;
    color: #ffc107 !important;
    margin-right: 10px !important;
    font-size: 18px !important;
}



/* Position & animation */
#toast-container.toast-top-left {
    top: 20px;
    left: 20px;
    transform: translateX(-400px);
    animation: slideIn 0.6s forwards;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

@media (max-width: 600px) {
    #toast-container>div {
        font-size: 14px;
    }
}




/* =============== SLIDE IN & OUT FROM RIGHT ============= */
/* slide in from right animation */
.toast-slide-in {
    animation: slideInRight 0.6s ease-out forwards !important;
}

.toast-slide-out {
    animation: slideOutRight 0.4s ease-in forwards !important;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Slide Out To Right */
@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}