.app-error {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid #efc5c9;
    border-left: 3px solid #bd3d49;
    border-radius: 4px;
    background: #fff5f5;
    color: #842029;
    text-align: left;
    overflow-wrap: anywhere;
}

/* Keep the reCAPTCHA notice hidden until its existing script reveals it. */
.app-error:not([hidden]) {
    display: flex;
}

.app-error-icon {
    flex-shrink: 0;
    margin-top: 1px;
    color: #b02a37;
    font-size: 18px;
    line-height: 1.3;
}

.app-error-content {
    flex: 1;
    min-width: 0;
    color: #842029;
}

.app-error-title {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.app-error-content p,
.app-error-messages,
.app-error-message,
.app-error-detail {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
}

.app-error .app-error-messages ul,
.app-error ul.app-error-messages {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.app-error-detail {
    margin-top: 10px;
}

.app-error--warning {
    border-color: #efdfbd;
    border-left-color: #bc8523;
    background: #fff7e8;
}

.app-error--warning .app-error-content,
.app-error--warning .app-error-icon {
    color: #805412;
}

.app-error > .close {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    float: none;
    width: 24px;
    height: 24px;
    margin: -2px -2px 0 0;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #842029;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    text-shadow: none;
    opacity: 0.7;
}

.app-error > .close:hover {
    background: #fce4e6;
    color: #842029;
    opacity: 1;
}

.app-error > .close:focus-visible {
    outline: 2px solid #b02a37;
    outline-offset: 2px;
    opacity: 1;
}

.error {
    max-width: 100%;
}

.error img {
    max-width: 100%;
    height: auto;
}

.error .request-id {
    font-size: 12px;
    overflow-wrap: anywhere;
}
