/* ── Report an issue (order form flag button + modal) ───────────── */
.report-issue-wrap { display: flex; justify-content: flex-end; margin: 8px 0 0; }
.report-issue-trigger {
    margin-right: -10px; /* align icon text with the card edge despite the hover padding */
    display: inline-flex; align-items: center; gap: 7px;
    background: none; border: 0; padding: 6px 10px; border-radius: 8px;
    color: #71717a; font: 500 13px/1 inherit; font-family: inherit; cursor: pointer;
    transition: color .2s, background .2s;
}
.report-issue-trigger:hover, .report-issue-trigger:focus-visible { color: #f87171; background: rgba(220,38,38,.08); outline: none; }
.report-issue-trigger svg { width: 15px; height: 15px; flex-shrink: 0; }

.report-issue-modal { max-width: 460px; text-align: left; align-items: stretch; gap: 14px; padding: 32px 28px; position: relative; }
.report-issue-close {
    position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: 0; border-radius: 8px; color: #71717a; cursor: pointer;
}
.report-issue-close:hover { color: #f4f4f5; background: rgba(255,255,255,.06); }
.report-issue-close svg { width: 18px; height: 18px; }
.report-issue-form { display: flex; flex-direction: column; gap: 14px; }
.report-issue-head { display: flex; align-items: center; gap: 12px; }
.report-issue-head .script-short-icon { width: 40px; height: 40px; }
.report-issue-head .script-short-icon svg { width: 19px; height: 19px; }
.report-issue-desc { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.6; margin: 0; }

.report-issue-field { display: flex; flex-direction: column; gap: 6px; }
.report-issue-field label { font-size: 12px; font-weight: 600; color: #a1a1aa; letter-spacing: .02em; }
.report-issue-field label span { font-weight: 400; color: #71717a; }
.report-issue-input {
    width: 100%; box-sizing: border-box; padding: 10px 12px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
    color: #f4f4f5; font-size: 15px; font-family: inherit; outline: none; transition: border-color .2s;
}
.report-issue-input:focus { border-color: #dc2626; }
textarea.report-issue-input { min-height: 130px; resize: vertical; line-height: 1.5; }
.report-issue-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .report-issue-row { grid-template-columns: 1fr; } .report-issue-modal { padding: 28px 18px; } }

.report-issue-counter { font-size: 12px; color: #71717a; text-align: right; font-variant-numeric: tabular-nums; }
.report-issue-counter.is-near { color: #fbbf24; }
.report-issue-counter.is-max  { color: #f87171; }
.report-issue-error { display: none; font-size: 13px; color: #f87171; margin: 0; }
.report-issue-error.active { display: block; }
.report-issue-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.report-issue-submit {
    width: 100%; padding: 12px 16px; border: 0; border-radius: 8px;
    background: #dc2626; color: #fff; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer;
    transition: background .2s, opacity .2s;
}
.report-issue-submit:hover { background: #b91c1c; }
.report-issue-submit:disabled { opacity: .55; cursor: not-allowed; }

.report-issue-done { display: none; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.report-issue-modal.is-done .report-issue-form { display: none; }
.report-issue-modal.is-done .report-issue-done { display: flex; }
.report-issue-done .script-short-icon { background: rgba(34,197,94,.12); }
.report-issue-done .script-short-icon svg { stroke: #4ade80; }
.report-issue-done strong { color: #f4f4f5; }

/* Modal is portalled to <body>; lock page scroll while open, and let the
   overlay itself scroll if the modal is taller than a small phone screen. */
html.report-issue-open, html.report-issue-open body { overflow: hidden; }
#reportIssueModal { overflow-y: auto; overscroll-behavior: contain; z-index: 2147483000; }
#reportIssueModal.active { align-items: safe center; }
