.error {
    color: red;
    border: thin solid red;
    background-image: linear-gradient(#ff00002e, #ff00002e);

    & p,
    span {
        color: red;
    }
}

.warm {
    color: darkgoldenrod;
    border: thin solid darkgoldenrod;
    background-image: linear-gradient(#ffee002e, #ffee002e);

    & p,
    span {
        color: darkgoldenrod;
    }
}

.success {
    font-weight: bold;
    color: #00b900;
    border: thin solid #00b900;
    background-image: linear-gradient(#66ff0048, #66ff0048);

    & p,
    span {
        font-weight: bold;
    }
}


.alert {
    max-width: 300px;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}


.alert-message {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin: auto;
    margin-bottom: .5rem;
    background-color: whitesmoke;
    padding: .5rem 1rem;
    border-radius: 3px;
    box-shadow: var(--shadow-ligth);
    overflow: hidden;
    text-wrap: wrap;

    & * {
        text-align: center;
        font-size: 12px;
    }
}

.alert-close {
    max-width: 30px;
    padding-left: 1rem;

    & span {
        position: absolute;
        display: block;
        top: 1ch;
        right: 1ch;
        letter-spacing: 0;
        font-size: 14px;
        line-height: 1ch;
        cursor: pointer;
    }
}