.snoeten-friendly-error-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(18, 30, 48, .38);
    backdrop-filter: blur(2px);
}

.snoeten-friendly-error-overlay[hidden] {
    display: none !important;
}

.snoeten-friendly-error-dialog {
    width: min(500px, calc(100vw - 40px));
    overflow: hidden;
    background: #fff;
    border: 1px solid #000;
    border-radius: 10px;
    box-shadow: 0 18px 48px rgba(27, 42, 74, .22);
    color: #111;
    font: inherit;
}

.snoeten-friendly-error-head {
    padding: 14px 18px;
    background: linear-gradient(180deg, #E86464 0%, #C94444 100%);
    color: #111;
    border-bottom: 1px solid #000;
}

.snoeten-friendly-error-head strong {
    display: block;
    margin: 0;
    color: #111;
    font: inherit;
    font-weight: 700;
}

.snoeten-friendly-error-body {
    padding: 18px;
    background: #fff;
    color: #111;
    font: inherit;
}

.snoeten-friendly-error-body p {
    margin: 12px 0 0;
    color: #111;
    font: inherit;
    line-height: 1.55;
}

.snoeten-friendly-error-body p:first-child {
    margin-top: 0;
}

.snoeten-friendly-error-info strong {
    font-weight: 700;
}

.snoeten-friendly-error-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 18px 18px;
    background: #fff;
}

.snoeten-friendly-error-actions .button {
    font: inherit;
}

@media (max-width: 560px) {
    .snoeten-friendly-error-overlay {
        padding: 12px;
    }

    .snoeten-friendly-error-dialog {
        width: calc(100vw - 24px);
    }

    .snoeten-friendly-error-actions {
        flex-wrap: wrap;
    }
}
