/* ===== Universal Report Modal ===== */
.report-modal {
    max-width: 560px;
    padding: 36px;
}

@media (max-width: 600px) {
    .report-modal {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        padding: 24px 20px 28px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .report-modal:not(.active) {
        transform: translateY(100%);
        opacity: 0;
    }
    .report-modal.active {
        transform: translateY(0);
        opacity: 1;
    }
    .report-modal::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: #e2e8f0;
        border-radius: 2px;
        margin: 0 auto 16px;
    }
}

.report-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 18px;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color .15s;
}
.report-modal-close:hover { color: #0f172a; }

.report-modal-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 18px;
}
.report-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.report-modal-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}
.report-modal-subtitle {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.report-modal-form {
    display: block;
}

.report-reasons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.report-reason {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s, background .15s;
}
.report-reason:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.report-reason input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.report-reason:has(input[type="radio"]:checked) {
    border-color: #dc2626;
    background: #fef2f2;
}
.report-reason-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.report-reason:has(input[type="radio"]:checked) .report-reason-icon {
    background: #fee2e2;
    color: #dc2626;
}
.report-reason-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.report-reason-title {
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
}
.report-reason-text {
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.report-comment {
    margin-bottom: 12px;
}
.report-comment-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 6px;
}
.report-comment-hint {
    color: #94a3b8;
    font-weight: 400;
    font-size: 13px;
}
.report-comment-input {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 14px;
    color: #0f172a;
    background: #fff;
    resize: vertical;
    min-height: 72px;
    outline: none;
    transition: border-color .15s;
}
.report-comment-input:focus {
    border-color: #dc2626;
}

.report-modal-feedback {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 12px;
}
.report-modal-feedback.is-success {
    background: #f0fdf4;
    color: #16a34a;
}
.report-modal-feedback.is-error {
    background: #fef2f2;
    color: #dc2626;
}

.report-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.report-modal-actions .btn {
    min-width: 140px;
}
@media (max-width: 600px) {
    .report-modal-actions {
        flex-direction: column-reverse;
    }
    .report-modal-actions .btn {
        width: 100%;
        min-width: 0;
    }
    .report-modal-title { font-size: 19px; }
    .report-reason { padding: 10px 12px; }
    .report-reason-title { font-size: 14px; }
    .report-reason-text { font-size: 12px; }
}

/* Кнопка-ссылка «Пожаловаться» в интерфейсе */
.js-report-btn {
    cursor: pointer;
}
.js-report-btn[disabled],
.js-report-btn.is-disabled {
    opacity: .6;
    pointer-events: none;
}

/* ──────────────────────────────────────────────────────────────────────
   Универсальная standalone-кнопка «пожаловаться».
   Используется там, где нужна отдельная иконка без подписи (напр. карточка
   продукта). Визуально идентична .share-btn-icon, чтобы пары «флажок +
   поделиться» смотрелись цельно.
   Разметка:
     <button class="report-btn-icon js-report-btn" data-report-type="…" data-report-id="…">
         <img src="/assets/images/report-btn.svg" alt="">
     </button>
   ────────────────────────────────────────────────────────────────────── */
.report-btn-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
}
.report-btn-icon:hover,
.report-btn-icon:focus-visible {
    background: rgba(10, 67, 255, 0.06);
    outline: none;
}
.report-btn-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    pointer-events: none;
}

/* Позиционирование в правом верхнем углу карточки продукта (.content-product-info). */
.report-btn-icon--product {
    position: absolute;
    top: 16px;
    right: 68px;
}

/* Текстовый inline-вариант — для пункта «Пожаловаться» в выпадающих меню
   (профиль, чат) и в действиях под комментарием. FontAwesome
   fa-triangle-exclamation используется как иконка, чтобы совпадать визуально
   с report-btn.svg (та же треугольная семантика). */
.report-link {
    cursor: pointer;
    color: #94a3b8;
    font-size: 13px;
    transition: color .15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.report-link:hover { color: #dc2626; }

/* Ссылка «Пожаловаться» в комментариях */
.comment-report {
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
    transition: color .15s;
}
.comment-report:hover {
    color: #dc2626;
}

/* ──────────────────────────────────────────────────────────────────────
   Оптическая центровка fa-triangle-exclamation рядом с текстом
   «Пожаловаться». Иконка имеет «тяжёлое» основание и пустое место сверху,
   из-за чего при align-items:center визуально кажется сдвинутой вниз.
   Приводим размер к тексту и компенсируем оптикой через translateY.
   Для .q3f9-menuitem размер задаётся родителем — тут только оптический сдвиг.
   ────────────────────────────────────────────────────────────────────── */
.prx-card-menu__item .fa-triangle-exclamation,
.report-link .fa-triangle-exclamation,
.comment-report .fa-triangle-exclamation {
    font-size: 13px;
    line-height: 1;
    width: 13px;
    text-align: center;
    flex-shrink: 0;
    transform: translateY(-1px);
}
.q3f9-menuitem .fa-triangle-exclamation {
    transform: translateY(-1px);
}
