/* "Zgłoś opinię" under a review on the pages of investments, developers and on /opinie/: the button and its window
   (js/reviews.js). */
.report-button {
    position: relative;
    z-index: 2;
    border: 0;
    background: none;
    padding: 0;
    font: 700 12.5px/1 var(--font-body);
    color: var(--muted);
    cursor: pointer;
    transition: color 0.15s ease;
}

.report-button:hover {
    color: var(--ink);
}

.report-button:disabled {
    color: var(--muted);
    cursor: default;
}

.review-card__report {
    margin-right: auto;
}

.report-dialog {
    box-sizing: border-box;
    width: min(480px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    padding: 24px;
    border: 0;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 24px 60px -20px rgba(13, 14, 17, 0.5);
    color: var(--ink);
    font: 400 15px/1.5 var(--font-body);
}

.report-dialog::backdrop {
    background: rgba(13, 14, 17, 0.45);
}

.report-dialog form {
    display: grid;
    gap: 14px;
}

.report-dialog h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    text-align: left;
}

.report-dialog fieldset {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.report-dialog fieldset[hidden] {
    display: none;
}

.report-dialog legend {
    margin-bottom: 8px;
    padding: 0;
    font-weight: 700;
}

.report-dialog__reason {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.report-dialog__reason input {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--red);
}

.report-dialog__other {
    display: grid;
    gap: 6px;
}

.report-dialog__other[hidden] {
    display: none;
}

.report-dialog__other label {
    font-size: 14px;
    font-weight: 700;
}

.report-dialog textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 96px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    resize: vertical;
}

.report-dialog__message {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.report-dialog__message:empty {
    display: none;
}

.report-dialog__message.is-error {
    color: var(--red);
}

.report-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.report-dialog__actions button {
    min-height: 42px;
    padding: 8px 18px;
    border: 1.5px solid var(--red);
    border-radius: var(--radius);
    background: var(--red);
    color: #fff;
    font: 700 14px/1 var(--font-body);
    cursor: pointer;
}

.report-dialog__actions button[data-report-close] {
    border-color: var(--line);
    background: var(--paper);
    color: var(--ink);
}

.report-dialog__actions button:disabled {
    opacity: 0.6;
    cursor: default;
}
