.success, .error {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    width: 320px;
    padding: 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    border-radius: 8px;
    box-shadow: 0px 0px 5px -3px #111;
    position: fixed;
    z-index: 9999;
    opacity: 0;
    animation-duration: 0.5s;
}

.success {
    background: #24d600;
    top: 5%;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    animation-name: fadeIn, slideIn;
    animation-fill-mode: forwards;
}

.error {
    background: #EF665B;
    top: 5%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    animation-name: fadeIn, slideIn;
    animation-fill-mode: forwards;
}

.success-hide, .error-hide {
    animation-name: fadeOut, slideOut;
    animation-fill-mode: forwards;
}

.success__icon, .error__icon {
    width: 20px;
    height: 20px;
    transform: translateY(-2px);
    margin-right: 8px;
    margin-bottom: -8px;
}

.success__icon path, .error__icon path {
    fill: #fff;
}

.success__title, .error__title {
    font-weight: 500;
    font-size: 14px;
    color: #fff;
}

.success__close {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-left: auto;
}

.error__close {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-bottom: auto;
    margin-left: auto;
}

.success__close path, .error__close path {
    fill: #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}