/* Report widget */
.cwp-report-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.cwp-report-modal-content {
    max-width: 520px;
    width: 92%;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

.cwp-report-modal--page-content .cwp-report-modal-content {
    max-width: 720px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.cwp-report-page-content {
    flex: 1 1 auto;
    max-height: min(65vh, 560px);
    overflow-x: hidden;
    overflow-y: auto;
    margin: 10px 0 16px;
}

.cwp-report-page-content-empty {
    margin: 0;
    color: #646970;
}

.cwp-report-modal-actions--page {
    justify-content: flex-end;
    flex-shrink: 0;
}

.cwp-report-reason {
    width: 100%;
    min-height: 120px;
    margin: 10px 0;
}

.cwp-report-modal-actions {
    display: flex;
    gap: 10px;
}

.cwp-report-submit,
.cwp-report-cancel {
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.2;
}

.cwp-report-submit {
    background: #2271b1;
    color: #fff;
    position: relative;
    min-width: 130px;
}

.cwp-report-cancel {
    background: #f0f0f1;
    color: #2c3338;
}

.cwp-report-msg {
    margin-top: 10px;
    font-size: 14px;
}

.cwp-report-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: none;
    background: #d63638;
    color: #fff;
    border-radius: 8px;
    padding: 12px 20px;
    transition: all 0.2s ease;
}

.cwp-report-btn:hover {
    opacity: 0.9;
}

.cwp-report-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cwp-report-submit.is-loading {
    color: transparent !important;
    pointer-events: none;
}

.cwp-report-submit.is-loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
    animation: cwp-report-spin 0.8s linear infinite;
}

@keyframes cwp-report-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
