/* =============================================================
   product-reviews.css
   Styles voor de reviews-sectie op productpagina.
   ============================================================= */

.pr-section {
  background: #fff;
  padding: 40px 0 48px;
  border-top: 1px solid var(--border, #EAE8E1);
}

/* --- Samenvatting (avg + count) --- */
.pr-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #FFF9E0;
  border: 1px solid #F4E4A6;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.pr-avg {
  font-size: 42px;
  font-weight: 700;
  color: #5C4A0F;
  line-height: 1;
}
.pr-avg-stars {
  font-size: 22px;
  letter-spacing: 2px;
  color: #D85A30;
}
.pr-avg-count {
  color: #6B6A66;
  font-size: 14px;
}

/* --- Sterren --- */
.pr-star {
  color: #E2DFD5;
}
.pr-star.is-full {
  color: #D85A30;
}

/* --- Lege state --- */
.pr-empty {
  color: #6B6A66;
  font-size: 14px;
  font-style: italic;
  margin: 0 0 22px;
}

/* --- Toast na submit --- */
.pr-toast {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.55;
}
.pr-toast-ok {
  background: #D7F5D3;
  border: 1px solid #AED9A8;
  color: #1B5E20;
}

/* --- Review-lijst --- */
.pr-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.pr-item {
  border: 1px solid #EAE8E1;
  border-radius: 12px;
  padding: 16px 20px;
  background: #FAF9F4;
}
.pr-item-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.pr-item-stars {
  font-size: 16px;
  letter-spacing: 2px;
}
.pr-item-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: #1F1F1D;
}
.pr-item-body {
  font-size: 14px;
  line-height: 1.65;
  color: #333;
  margin: 0 0 10px;
  white-space: pre-wrap;
}
.pr-item-meta {
  font-size: 12px;
  color: #8A8980;
}

/* --- Review-form --- */
.pr-form {
  background: #FAF9F4;
  border: 1px solid #EAE8E1;
  border-radius: 12px;
  padding: 22px 24px;
  margin-top: 12px;
}
.pr-form-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #1F1F1D;
}
.pr-form-sub {
  font-size: 13px;
  color: #6B6A66;
  margin: 0 0 14px;
}

/* --- Star-rating input (CSS trick: 5..1 radios, hover werkt) --- */
.pr-rating-input {
  direction: rtl;
  display: inline-flex;
  margin-bottom: 14px;
  gap: 2px;
}
.pr-rating-input input[type="radio"] {
  display: none;
}
.pr-rating-input label {
  font-size: 28px;
  color: #E2DFD5;
  cursor: pointer;
  transition: color 0.15s;
}
.pr-rating-input input[type="radio"]:checked ~ label,
.pr-rating-input label:hover,
.pr-rating-input label:hover ~ label {
  color: #D85A30;
}

/* --- Input + textarea --- */
.pr-input,
.pr-textarea {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #DDD;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 10px;
  font-family: inherit;
  background: #fff;
}
.pr-input:focus,
.pr-textarea:focus {
  outline: none;
  border-color: #D85A30;
}
.pr-textarea {
  resize: vertical;
  min-height: 90px;
}

/* --- Submit button --- */
.pr-submit-btn {
  background: #D85A30;
  color: #fff;
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.pr-submit-btn:hover {
  background: #B94721;
}

/* --- Fallback-meldingen --- */
.pr-already,
.pr-cta-login,
.pr-cta-rent {
  background: #F7F7F3;
  border: 1px solid #EAE8E1;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  color: #444;
  margin-top: 12px;
}
.pr-cta-login a {
  color: #D85A30;
  font-weight: 600;
  text-decoration: underline;
}

/* --- Mobile tweaks --- */
@media (max-width: 640px) {
  .pr-section { padding: 28px 0 36px; }
  .pr-avg { font-size: 34px; }
  .pr-summary { padding: 14px 16px; gap: 12px; }
  .pr-form { padding: 18px; }
}
