/* نظرهای گنجه: مؤلفه مستقل با هویت آبی انجمن، RTL و کنترل‌های عادی فرم. */
.ganje-reviews { --review-muted: #53617c; --review-line: #dce2ef; color: var(--text,#26304d); min-inline-size: 0; overflow-wrap: anywhere; }
.ganje-review-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; margin-block-end: 18px; }
.ganje-review-heading h2 { font-size: 1.3rem; font-weight: 750; line-height: 1.7; color: var(--ink,#12205e); margin: 0; }
.ganje-review-heading p { max-inline-size: 68ch; margin: 5px 0 0; font-size: 13px; color: var(--review-muted); line-height: 1.85; }
.ganje-review-heading > a, .ganje-review-subject a, .ganje-review-item footer a { color: #334b96; text-decoration: underline; text-underline-offset: .25em; }
.ganje-review-heading > a { display: inline-flex; align-items: center; min-block-size: 44px; font-size: 13px; }
.ganje-review-summary { display: flex; align-items: center; gap: 9px; margin-block: 12px 18px; font-size: 14px; color: var(--ink,#12205e); }
.ganje-review-icon { inline-size: 18px; block-size: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; flex-shrink: 0; }
.ganje-review-empty { margin-block: 12px; font-size: 13px; line-height: 1.85; color: var(--review-muted); }
.ganje-review-subject { font-size: 13px; color: var(--review-muted); margin: 6px 0; }
.ganje-published-reviews { margin-block: 12px 20px; }
.ganje-review-item { padding-block: 16px; border-block-start: 1px solid var(--review-line); }
.ganje-review-item > header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.ganje-review-item > header strong { font-size: 14px; font-weight: 700; color: var(--ink,#12205e); }
.ganje-review-own-label { font-size: 11px; color: var(--review-muted); font-weight: 450; margin-inline-start: 8px; }
.ganje-review-score { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #263c79; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ganje-review-comment { white-space: pre-wrap; line-height: 1.9; max-inline-size: 72ch; font-size: 14px; margin-block: 10px; }
.ganje-review-comment:empty { display: none; }
.ganje-review-item > footer { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 16px; font-size: 12px; color: var(--review-muted); }
.ganje-review-item > footer a { display: inline-flex; align-items: center; min-block-size: 44px; }
.ganje-review-state { color: #334b96; }
.ganje-review-form { border-block-start: 1px solid var(--review-line); padding-block: 18px 0; margin-block-start: 18px; }
.ganje-review-form h3, .ganje-review-member-name { font-size: 16px; line-height: 1.75; color: var(--ink,#12205e); margin-block: 0 16px; }
.ganje-rating-options { margin: 0 0 16px; padding: 0; border: 0; min-inline-size: 0; }
.ganje-rating-options legend { font-size: 14px; font-weight: 650; margin-block-end: 9px; }
.ganje-rating-options > div { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; max-inline-size: 650px; }
.ganje-rating-options label { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 8px; min-block-size: 72px; padding: 11px 10px; background: #fff; border: 1px solid var(--review-line); border-radius: 8px; cursor: pointer; color: #263c79; }
.ganje-rating-options input { inline-size: 17px; block-size: 17px; margin: 4px 0 0; accent-color: #334b96; }
.ganje-rating-options strong, .ganje-rating-options small { display: block; }
.ganje-rating-options strong { font-size: 16px; line-height: 1.6; }
.ganje-rating-options small { font-size: 11px; color: var(--review-muted); line-height: 1.65; margin-block-start: 3px; }
.ganje-rating-options label:hover { background: #f1f4fc; border-color: #bac6e1; }
.ganje-rating-options label:has(input:checked) { border-color: #334b96; background: #edf1fc; }
.ganje-rating-options label:has(input:focus-visible) { outline: 3px solid #4563ac; outline-offset: 3px; }
.ganje-review-field { display: grid; gap: 8px; max-inline-size: 72ch; margin-block: 14px; font-size: 14px; font-weight: 600; }
.ganje-review-field textarea, .ganje-review-field select { inline-size: 100%; min-inline-size: 0; max-inline-size: 100%; border: 1px solid #c7d0e3; border-radius: 8px; background: #fff; color: #26304d; padding: 10px 12px; font: inherit; font-weight: 450; min-block-size: 44px; caret-color: #233f9d; }
.ganje-review-field textarea { resize: vertical; min-block-size: 110px; line-height: 1.85; }
.ganje-review-field small { font-size: 12px; font-weight: 450; color: var(--review-muted); font-variant-numeric: tabular-nums; }
.ganje-review-form-note { font-size: 12px; color: var(--review-muted); line-height: 1.85; max-inline-size: 72ch; margin-block: 12px; }
.ganje-review-form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-block-start: 16px; }
.ganje-review-feedback { margin-block: 12px; background: #edf4f0; color: #245f48; padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.85; }
.ganje-review-feedback.is-error { background: #fff0ef; color: #8b302e; }
.ganje-review-feedback p { margin: 0 0 10px; }
.ganje-review-tools { display: flex; align-items: center; gap: 10px; padding-block-start: 18px; }
.ganje-review-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block-start: 16px; }
.ganje-review-pagination > span { font-size: 13px; color: var(--review-muted); }
.ganje-review-moderation-row { border-block-end: 1px solid var(--review-line); padding-block: 4px 22px; margin-block-end: 20px; }
.ganje-review-moderation-form { padding: 0; }
.ganje-review-moderation-form .ganje-review-field:first-child { max-inline-size: 320px; }
.ganje-reviews :is(a,button,input,select,textarea):focus-visible { outline: 3px solid #4563ac; outline-offset: 3px; }
.ganje-reviews :is(button,input,textarea,select):disabled { opacity: .7; cursor: default; }
.ganje-reviews .button { min-block-size: 44px; font-size: 13px; }
.ganje-review-loading { display: grid; gap: 12px; padding-block: 10px; min-block-size: 70px; }
.ganje-review-loading > span[aria-hidden] { block-size: 14px; border-radius: 4px; background: #e3e8f2; }
.ganje-review-loading > span[aria-hidden]:last-child { inline-size: 68%; }
.ganje-reviews ::selection { background: #d9e3ff; color: #142360; }
@media (max-width: 599px) {
  .ganje-review-heading h2 { font-size: 1.15rem; }
  .ganje-review-heading { gap: 3px; margin-block-end: 14px; }
  .ganje-review-heading > div { flex-basis: 100%; }
  .ganje-rating-options > div { gap: 5px; }
  .ganje-rating-options label { grid-template-columns: 1fr; gap: 5px; min-block-size: 100px; padding: 9px 5px; justify-items: center; text-align: center; }
  .ganje-rating-options input { margin: 0; }
  .ganje-rating-options small { font-size: 10px; }
  .ganje-review-field { font-size: 13px; }
  .ganje-review-comment { font-size: 13px; }
  .ganje-review-tools .button, .ganje-review-form-actions .button { inline-size: 100%; justify-content: center; }
  .ganje-review-pagination { gap: 9px; }
  .ganje-review-pagination .button { flex: 1 1 110px; padding-inline: 9px; }
  .ganje-review-pagination > span { order: -1; flex-basis: 100%; text-align: center; }
}
@media (forced-colors: active) { .ganje-rating-options label:has(input:checked) { outline: 2px solid Highlight; } }
@media print { .ganje-review-form, .ganje-review-moderation-form, .ganje-review-tools, .ganje-review-pagination { display: none; } }