.ajax-error-notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1090;
    display: block;
    width: min(27rem, calc(100vw - 2rem));
    max-height: min(40vh, 18rem);
    margin: 0;
    padding: 0.875rem;
    overflow: hidden;
    border: 1px solid #f1c3c9;
    border-left: 4px solid #cf4050;
    border-radius: 0.5rem;
    background-color: #fff8f8;
    color: #752231;
    box-shadow: 0 0.5rem 1.5rem rgba(52, 29, 34, 0.18);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.ajax-error-notification::before {
    content: '';
    position: absolute;
    top: 0.875rem;
    left: 0.875rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #fbe4e7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23b32f40'%3E%3Cpath d='M8 3a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-4.5A.75.75 0 0 1 8 3Zm0 8a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z'/%3E%3C/svg%3E") center / 1rem 1rem no-repeat;
}

.ajax-error-message {
    display: block;
    min-width: 0;
    margin-right: -0.875rem;
    padding-right: 2.5rem;
    padding-left: 2.25rem;
    max-height: calc(min(40vh, 18rem) - 1.75rem - 2px);
    overflow-y: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.ajax-error-message:focus-visible {
    outline: 2px solid #b32f40;
    outline-offset: -2px;
}

.ajax-error-notification .btn-close {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    padding: 0.375rem;
    font-size: 0.75rem;
}

@media (max-width: 575.98px) {
    .ajax-error-notification {
        top: 0.75rem;
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
    }
}
