/* ============================================================
   RCN Reviews
   ============================================================ */

/* ---- Star primitives (CSS-mask, scalable) ---- */
.rcn-stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.rcn-star {
	width: var(--rcn-star-size, 16px);
	height: var(--rcn-star-size, 16px);
	background: #cbd5e1;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26'/></svg>") center / contain no-repeat;
	flex-shrink: 0;
}
.rcn-star.is-full { background: #f59e0b; }
.rcn-star.is-half { background: linear-gradient(90deg, #f59e0b 50%, #cbd5e1 50%); }

/* ---- Inline rating chip (hero / seller card) ---- */
.rcn-rating-inline { display: inline-flex; align-items: center; gap: 8px; }
.rcn-rating-inline__num { font-weight: 800; color: #0f172a; font-size: 15px; }
.rcn-rating-inline__count { color: #64748b; font-size: 13px; }
.rcn-rating-inline--empty { color: #94a3b8; font-size: 13px; }

/* rating wrappers in hero + seller card (keep links un-underlined) */
.rcn-public-profile__rating { text-decoration: none; display: inline-flex; align-items: center; }
.rcn-public-profile__rating:hover .rcn-rating-inline__num { text-decoration: underline; }
.rcn-seller-card__rating { margin-top: 4px; }

/* ---- Reviews section ---- */
.rcn-reviews { max-width: 860px; margin: 40px auto 0; }
.rcn-reviews__head {
	display: flex; align-items: center; justify-content: space-between;
	flex-wrap: wrap; gap: 16px; margin-bottom: 20px;
}
.rcn-reviews__title { font-size: 22px; font-weight: 800; color: #0f172a; margin: 0; display: flex; align-items: center; gap: 10px; }
.rcn-reviews__summary { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
	background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 22px 26px; margin-bottom: 28px; }
.rcn-reviews__big { text-align: center; }
.rcn-reviews__big-num { font-size: 44px; font-weight: 900; color: #0f172a; line-height: 1; }
.rcn-reviews__big-count { color: #64748b; font-size: 13px; margin-top: 6px; }
.rcn-reviews__dist { display: flex; flex-direction: column; gap: 6px; }
.rcn-reviews__dist-row { display: grid; grid-template-columns: 42px 1fr 34px; align-items: center; gap: 10px; font-size: 12px; color: #64748b; }
.rcn-reviews__bar { height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.rcn-reviews__bar i { display: block; height: 100%; background: #f59e0b; border-radius: 999px; }

.rcn-review { border-top: 1px solid #e5e7eb; padding: 20px 0; }
.rcn-review:first-of-type { border-top: 0; }
.rcn-review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.rcn-review__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.rcn-review__who { flex: 1; min-width: 0; }
.rcn-review__name { font-weight: 700; color: #0f172a; font-size: 14px; }
.rcn-review__meta { color: #94a3b8; font-size: 12px; }
.rcn-review__title { font-weight: 700; color: #0f172a; margin: 6px 0 4px; }
.rcn-review__body { color: #334155; line-height: 1.6; font-size: 14px; white-space: pre-line; }
.rcn-review__sub { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 0; font-size: 12px; color: #64748b; }
.rcn-review__sub span { display: inline-flex; align-items: center; gap: 5px; }
.rcn-review__ctx { font-size: 12px; color: #94a3b8; margin-top: 8px; }
.rcn-review__ctx a { color: #b91c1c; text-decoration: none; }
.rcn-review__resp { margin: 12px 0 0 20px; padding: 12px 16px; background: #f8fafc; border-left: 3px solid #dc2626; border-radius: 0 8px 8px 0; }
.rcn-review__resp-label { font-weight: 700; color: #0f172a; font-size: 12px; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.rcn-review__resp-body { color: #475569; font-size: 13px; line-height: 1.55; white-space: pre-line; }
.rcn-review__actions { display: flex; gap: 14px; margin-top: 12px; }
.rcn-review__act { background: none; border: none; cursor: pointer; color: #64748b; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; padding: 4px 0; }
.rcn-review__act:hover { color: #0f172a; }
.rcn-review__act.is-done { color: #16a34a; cursor: default; }

/* ---- Write button / eligibility ---- */
.rcn-reviews__cta { display: inline-flex; }
.rcn-reviews__gate { color: #94a3b8; font-size: 13px; font-style: italic; }

/* ---- Modal ---- */
.rcn-rv-modal-overlay {
	position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 99999;
	display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(2px);
}
.rcn-rv-modal {
	background: #fff; border-radius: 16px; width: 100%; max-width: 520px;
	max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.rcn-rv-modal__head { padding: 20px 24px; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: space-between; }
.rcn-rv-modal__head h3 { margin: 0; font-size: 18px; color: #0f172a; }
.rcn-rv-modal__close { background: none; border: none; cursor: pointer; color: #94a3b8; font-size: 22px; line-height: 1; }
.rcn-rv-modal__body { padding: 22px 24px; }
.rcn-rv-field { margin-bottom: 18px; }
.rcn-rv-field > label { display: block; font-weight: 700; font-size: 13px; color: #0f172a; margin-bottom: 8px; }
.rcn-rv-pick { display: inline-flex; gap: 4px; }
.rcn-rv-pick button { background: none; border: none; cursor: pointer; padding: 0; width: 30px; height: 30px;
	background: #e2e8f0;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26'/></svg>") center / contain no-repeat;
	transition: background .12s;
}
.rcn-rv-pick button.on { background: #f59e0b; }
.rcn-rv-pick--sm button { width: 22px; height: 22px; }
.rcn-rv-field input[type=text], .rcn-rv-field textarea {
	width: 100%; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; box-sizing: border-box;
}
.rcn-rv-field textarea { min-height: 110px; resize: vertical; }
.rcn-rv-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.rcn-rv-sub__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rcn-rv-sub__row span { font-size: 12px; color: #475569; }
.rcn-rv-modal__foot { padding: 16px 24px 22px; display: flex; gap: 10px; justify-content: flex-end; }
.rcn-rv-err { color: #dc2626; font-size: 13px; margin: 0 0 12px; }

@media (max-width: 600px) {
	.rcn-reviews__summary { grid-template-columns: 1fr; gap: 18px; text-align: center; }
	.rcn-rv-sub { grid-template-columns: 1fr; }
}
