.toast-message {
    position: fixed;
    z-index: 2000;
    top: 10%;
    left: 50%;
    display: flex;
    align-items: center;
    width: 80%;
    max-width: 380px;
    padding: 15px 15px 15px 20px;
    transition: top .3s ease-out opacity .3s ease-out;
    transform: translateX(-50%);
    border: 1px solid #ebeef5;
}

.toast-icon {
    font: normal normal normal FontAwesome;
    line-height: 1;
    position: relative;
    display: inline-block;
    margin-right: 10px;
    -webkit-font-smoothing: antialiased;
    text-rendering: auto;
}

.toast-message__closeBtn {
    font-size: 16px;
    line-height: 26px;
    position: absolute;
    top: 50%;
    right: 15px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    transform: translateY(-50%);
    text-align: center;
    color: #c0c4cc;
}

.toast-message .toast-message__content {
    padding-right: 10px;
}

.toast-message__closeBtn:before {
    font-size: 16px;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    content: '×';
}

.toast-message--info {
    border-color: #ebeef5;
    background-color: #edf2fc;
}

.toast-message--info .toast-icon {
    margin-right: 18px;
}

.toast-message--info .toast-message__content {
    color: #909399;
}

.toast-icon--info:before {
    content: 'i';
    color: #fff;
}

.toast-icon--info:after {
    line-height: 20px;
    position: absolute;
    z-index: -1;
    top: -3px;
    left: -8px;
    display: block;
    width: 20px;
    height: 20px;
    content: '';
    text-align: center;
    border-radius: 50%;
    background: #909399;
}

.toast-message--success {
    border-color: #e1f3d8;
    background-color: #f0f9eb;
}

.toast-message--success .toast-icon {
    margin-right: 15px;
}

.toast-message--success .toast-message__content {
    color: #67c23a;
}

.toast-icon--success:before {
    content: '✔';
    color: #fff;
}

.toast-icon--success:after {
    line-height: 20px;
    position: absolute;
    z-index: -1;
    top: -3px;
    left: -5px;
    display: block;
    width: 20px;
    height: 20px;
    content: '';
    text-align: center;
    border-radius: 50%;
    background: #67c23a;
}

.toast-message--warning {
    border-color: #faecd8;
    background-color: #fdf6ec;
}

.toast-message--warning .toast-icon {
    margin-right: 16px;
}

.toast-message--warning .toast-message__content {
    color: #e6a23c;
}

.toast-icon--warning:before {

    content: '!';
    color: #fff;
}

.toast-icon--warning:after {
    line-height: 20px;
    position: absolute;
    z-index: -1;
    top: -3px;
    left: -8px;
    display: block;
    width: 20px;
    height: 20px;
    content: '';
    text-align: center;
    border-radius: 50%;
    background: #e6a23c;
}

.toast-message--error {

    border-color: #fde2e2;
    background-color: #fef0f0;
}

.toast-message--error .toast-icon {
    margin-right: 15px;
}

.toast-message--error .toast-message__content {
    color: #f56c6c;
}

.toast-icon--error:before {
    content: '×';
    color: #fff;
}

.toast-icon--error:after {
    line-height: 20px;
    position: absolute;
    z-index: -1;
    top: -3px;
    left: -5px;
    display: block;
    width: 20px;
    height: 20px;
    content: '';
    text-align: center;
    border-radius: 50%;
    background: #f56c6c;
}