/* ─── 리뷰 작성 모달 ─── */
.rv-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(26, 23, 20, 0.45);
}

.rv-modal {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--beige-dark);
}

.rv-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--beige-dark);
}

.rv-modal-head h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--charcoal);
}

.rv-modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--taupe);
  cursor: pointer;
}

.rv-modal-body { padding: 22px; }

.rv-product-name {
  font-size: 0.82rem;
  color: var(--taupe);
  margin-bottom: 16px;
  word-break: keep-all;
}

.rv-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.rv-star {
  background: none;
  border: none;
  padding: 0 2px;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--gold);
  cursor: pointer;
}

.rv-star:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.rv-body {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--cream);
  border: 1px solid var(--beige-dark);
  outline: none;
  resize: vertical;
  box-sizing: border-box;
}

.rv-body:focus { border-color: var(--gold); background: var(--white); }

.rv-count {
  display: block;
  margin-top: 6px;
  text-align: right;
  font-size: 0.7rem;
  color: var(--taupe);
  font-variant-numeric: tabular-nums;
}

.rv-message {
  margin-top: 12px;
  font-size: 0.78rem;
  line-height: 1.6;
}

.rv-message--error { color: var(--rose); }

.rv-modal-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 22px;
  border-top: 1px solid var(--beige-dark);
}
