/* Zentra Labs: product reviews (the theme dequeues WooCommerce's own CSS, so this styles it) */

#reviews.woocommerce-Reviews { font-family: Poppins, sans-serif; color: #2A3447; max-width: 760px; }

#reviews .woocommerce-Reviews-title {
  font-size: 24px; line-height: 1.3; font-weight: 700; color: #0A2540; margin: 0 0 18px;
}
#reviews .woocommerce-noreviews {
  margin: 0 0 26px; padding: 14px 18px; background: #F5F8FC; border: 1px solid #E6EAF1;
  border-radius: 10px; color: #6B7689; font-size: 15px;
}

/* Form card */
#review_form_wrapper {
  background: #fff; border: 1px solid #E6EAF1; border-radius: 14px; padding: 26px 28px;
  box-shadow: 0 2px 10px rgba(10, 37, 64, .05);
}
#review_form .comment-reply-title {
  display: block; font-size: 18px; font-weight: 600; color: #0A2540; margin: 0 0 18px; line-height: 1.4;
}
#review_form .comment-form label {
  display: block; font-size: 14px; font-weight: 600; color: #0A2540; margin: 0 0 8px;
}
#review_form .required { color: #d6293e; }
#review_form .comment-form-rating { margin: 0 0 20px; }
#review_form .comment-form p { margin: 0 0 18px; }

/* Star picker: text hidden, stars drawn with CSS */
#review_form p.stars { margin: 0; line-height: 1; }
#review_form p.stars > span { display: inline-flex; gap: 4px; }
#review_form p.stars a {
  display: inline-block; width: 38px; height: 38px; font-size: 0; line-height: 0;
  text-decoration: none; color: #c9d3e0; cursor: pointer; transition: color .15s, transform .15s;
}
#review_form p.stars a::before {
  content: "\2605"; font-size: 38px; line-height: 38px; display: block; text-align: center;
}
#review_form p.stars a:hover,
#review_form p.stars a:has(~ a:hover),
#review_form p.stars.selected a.active,
#review_form p.stars.selected a:has(~ a.active) { color: #f5a623; }
#review_form p.stars a:hover { transform: scale(1.1); }
#review_form p.stars a:focus-visible { outline: 2px solid #0794db; outline-offset: 2px; border-radius: 4px; }

/* Textarea */
#review_form textarea#comment {
  width: 100%; box-sizing: border-box; min-height: 130px; padding: 14px 16px;
  font: inherit; font-size: 15px; color: #2A3447; background: #fff;
  border: 1px solid #d5dce8; border-radius: 10px; resize: vertical; transition: border-color .15s, box-shadow .15s;
}
#review_form textarea#comment:focus {
  outline: none; border-color: #0794db; box-shadow: 0 0 0 3px rgba(7, 148, 219, .15);
}

/* Submit */
#review_form .form-submit { margin: 4px 0 0; }
#review_form .form-submit .submit {
  display: inline-block; padding: 14px 34px; background: #0794db; color: #fff; border: 0;
  border-radius: 8px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s;
}
#review_form .form-submit .submit:hover { background: #0A2540; }

/* Published reviews */
#reviews ol.commentlist { list-style: none; margin: 0 0 28px; padding: 0; }
#reviews ol.commentlist li.review { margin: 0 0 14px; padding: 0; }
#reviews .comment_container {
  display: flex; gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid #E6EAF1;
  border-radius: 12px; box-shadow: 0 1px 6px rgba(10, 37, 64, .04);
}
#reviews .comment_container img.avatar { width: 48px; height: 48px; border-radius: 50%; flex: 0 0 48px; }
#reviews .comment-text { flex: 1; min-width: 0; }
#reviews .comment-text .meta { margin: 0 0 8px; font-size: 13px; color: #6B7689; }
#reviews .woocommerce-review__author { font-weight: 700; color: #0A2540; font-size: 15px; }
#reviews .woocommerce-review__verified { color: #1a8f4c; font-size: 12px; font-weight: 600; }
#reviews .woocommerce-review__dash { display: none; }
#reviews .comment-text .description p { margin: 6px 0 0; font-size: 15px; line-height: 1.6; }

/* Star display (rating on published reviews) */
.woocommerce-Reviews .star-rating {
  display: inline-block; position: relative; font-size: 16px; line-height: 1; letter-spacing: 2px; margin: 0 0 6px;
}
.woocommerce-Reviews .star-rating::before { content: "\2605\2605\2605\2605\2605"; color: #d5dce8; }
.woocommerce-Reviews .star-rating span {
  position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; font-size: 0; white-space: nowrap;
}
.woocommerce-Reviews .star-rating span::before {
  content: "\2605\2605\2605\2605\2605"; font-size: 16px; letter-spacing: 2px; color: #f5a623;
}

@media (max-width: 600px) {
  #review_form_wrapper { padding: 20px 16px; }
  #reviews .comment_container { padding: 14px; gap: 12px; }
  #review_form p.stars a { width: 44px; height: 44px; }
  #review_form p.stars a::before { font-size: 40px; line-height: 44px; }
}
