.flash {
    position: fixed;
    display: flex;
    z-index: 12000000000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: var(--boxShadow);
    border-radius: var(--radius);
    max-width: min(90vw, 700px);
    width: max-content;
    overflow: hidden;

    .flash-text {
        padding: 0.75rem 1rem;
        display: flex;
        align-items: center;
        white-space: pre-line;
        color: black;
    }

    .flash-close {
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem 0.85rem;
        background: transparent;
        color: inherit;
        border-top-right-radius: var(--radius);
        border-bottom-right-radius: var(--radius);
        color: black;
    }
}

.flash.flash-success {
    background: #e6ffed;
    border: 1px solid #2ecc71;
    color: #145a32;
}

.flash.flash-warning {
    background: #ff9100;
    border: 1px solid #f0b35a;
    color: black;
}

.flash.flash-error {
    background: #ffe6e6;
    border: 1px solid #e74c3c;
    color: #7a1f1f;
}