.rpt-report-post {
    margin-block: 2rem;
}

.rpt-report-button {
    appearance: none;
    border: 1px solid #c91414;
    border-radius: 4px;
    background: #c91414;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    line-height: 1.2;
    padding: 0.7rem 1rem;
    text-decoration: none;
}

.rpt-report-button:hover,
.rpt-report-button:focus-visible {
    background: #a80f0f;
    border-color: #a80f0f;
    color: #ffffff;
    opacity: 1;
}

.rpt-report-button--primary {
    background: #c91414;
    border-color: #c91414;
    color: #ffffff;
}

.rpt-report-button--secondary {
    background: transparent;
    border-color: currentColor;
    color: inherit;
}

.rpt-report-button--secondary:hover,
.rpt-report-button--secondary:focus-visible {
    background: transparent;
    border-color: currentColor;
    color: inherit;
    opacity: 0.82;
}

.rpt-modal[hidden] {
    display: none;
}

.rpt-modal {
    align-items: start;
    display: grid;
    inset: 0;
    justify-items: center;
    overflow: auto;
    padding: min(8vh, 4rem) 1rem;
    position: fixed;
    z-index: 999999;
}

.rpt-modal__backdrop {
    background: rgba(0, 0, 0, 0.58);
    inset: 0;
    position: fixed;
}

.rpt-modal__panel {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
    border-radius: 8px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
    color: CanvasText;
    display: grid;
    gap: 1rem;
    max-width: min(100%, 560px);
    padding: clamp(1rem, 3vw, 1.5rem);
    position: relative;
    width: 100%;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.rpt-modal__panel.is-shaking {
    animation: rpt-shake 0.12s linear 3;
}

.rpt-modal__panel.is-sent > :not(.rpt-modal__sent) {
    filter: blur(4px);
    opacity: 0.5;
    pointer-events: none;
}

.rpt-modal__title {
    font: inherit;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.rpt-field {
    display: grid;
    gap: 0.35rem;
}

.rpt-field span {
    font-size: 0.95rem;
    font-weight: 600;
}

.rpt-field input,
.rpt-field select,
.rpt-field textarea {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
    border-radius: 4px;
    color: CanvasText;
    font: inherit;
    padding: 0.65rem 0.75rem;
    width: 100%;
}

.rpt-field textarea {
    resize: vertical;
}

.rpt-field small {
    opacity: 0.72;
    text-align: right;
}

.rpt-field.is-required input,
.rpt-field.is-required select,
.rpt-field.is-required textarea {
    border-color: #c91414;
    box-shadow: 0 0 0 2px rgba(201, 20, 20, 0.16);
}

.rpt-required-note {
    color: #c91414;
    font-size: 0.86rem;
    font-weight: 700;
}

.rpt-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.rpt-modal__message {
    min-height: 1.4rem;
}

.rpt-modal__message.is-error {
    color: #b00020;
}

.rpt-modal__message.is-success {
    color: #087443;
}

.rpt-modal__sent {
    color: #087443;
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 800;
    inset: 50% auto auto 50%;
    line-height: 1.1;
    position: absolute;
    text-align: center;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.rpt-modal__sent[hidden] {
    display: none !important;
}

body.rpt-modal-open {
    overflow: hidden;
}

@keyframes rpt-shake {
    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}
