/* ===== NHC Storefront 1.10.6 — product reviews (cream/green) ===== */
/* Theme: #2f4a3c green · #f4efe4 cream · #c6a048 gold · #24382e ink */

/* --- Loop / product cards --- */
.nhc-loop-rating,
ul.products li.product .nhc-loop-rating,
.woocommerce ul.products li.product .star-rating{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  margin:6px 0 4px!important;
  float:none!important;
  clear:both!important;
}
.nhc-loop-rating .star-rating,
ul.products li.product .star-rating{
  float:none!important;
  margin:0!important;
  font-size:13px!important;
  width:5.4em!important;
  height:1em!important;
  line-height:1!important;
  color:#c6a048!important;
}
.nhc-loop-rating .star-rating::before,
ul.products li.product .star-rating::before{
  color:#ddd4c4!important;
}
.nhc-loop-rating .star-rating span::before,
ul.products li.product .star-rating span::before{
  color:#c6a048!important;
}
.nhc-loop-rating__count{
  font:600 12px/1 Figtree,system-ui,sans-serif!important;
  color:#6f675c!important;
}

/* Hide empty / zero-review chrome if theme injects it */
ul.products li.product .star-rating:empty,
.woocommerce .star-rating:not([style*="width"]):empty{
  display:none!important;
}

/* --- Single product rating summary --- */
.woocommerce div.product .woocommerce-product-rating,
.single-product .woocommerce-product-rating{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin:8px 0 12px!important;
}
.woocommerce div.product .woocommerce-product-rating .star-rating,
.single-product .star-rating{
  float:none!important;
  color:#c6a048!important;
  font-size:14px!important;
}
.woocommerce div.product .woocommerce-product-rating .star-rating::before,
.single-product .star-rating::before{
  color:#ddd4c4!important;
}
.woocommerce div.product .woocommerce-product-rating .star-rating span::before,
.single-product .star-rating span::before{
  color:#c6a048!important;
}
.woocommerce-review-link{
  color:#2f4a3c!important;
  font-weight:600!important;
  text-decoration:none!important;
  font-size:13px!important;
}
.woocommerce-review-link:hover{
  color:#c6a048!important;
}

/* Hide product rating row when no reviews (Woo still may output empty) */
body.nhc-no-reviews-yet .woocommerce-product-rating{
  display:none!important;
}

/* --- Reviews tab / section --- */
.woocommerce-Reviews,
#reviews,
#reviews #comments{
  background:#f4efe4!important;
  border:1px solid #ddd4c4!important;
  border-radius:16px!important;
  padding:20px 22px!important;
  margin:16px 0!important;
  box-sizing:border-box!important;
}
.woocommerce-Reviews-title,
#reviews #comments h2{
  color:#24382e!important;
  font-family:Georgia,serif!important;
  font-size:22px!important;
  margin:0 0 14px!important;
}

/* Hide empty “There are no reviews yet” block */
.woocommerce-noreviews,
#reviews .woocommerce-noreviews,
body.nhc-no-reviews-yet #reviews .woocommerce-noreviews{
  display:none!important;
}
/* When no comments, tighten empty comments wrapper */
body.nhc-no-reviews-yet #reviews #comments:not(:has(.commentlist)){
  display:none!important;
}

/* Review list */
#reviews .commentlist,
.woocommerce-Reviews .commentlist{
  list-style:none!important;
  margin:0!important;
  padding:0!important;
}
#reviews .commentlist li,
.woocommerce-Reviews .commentlist li{
  background:#fff!important;
  border:1px solid #ddd4c4!important;
  border-radius:12px!important;
  padding:14px 16px!important;
  margin:0 0 12px!important;
}
#reviews .comment-text .star-rating{
  float:none!important;
  display:inline-block!important;
  margin:0 0 6px!important;
  color:#c6a048!important;
}
.woocommerce-review__author{
  color:#24382e!important;
  font-weight:700!important;
}
.woocommerce-review__dash,
.woocommerce-review__published-date{
  color:#6f675c!important;
  font-size:12px!important;
}
.woocommerce-review__verified,
.woocommerce .woocommerce-review__verified{
  display:inline-block!important;
  margin-left:6px!important;
  padding:2px 8px!important;
  border-radius:999px!important;
  background:#2f4a3c!important;
  color:#f4efe4!important;
  font:700 10px/1.4 Figtree,system-ui,sans-serif!important;
  letter-spacing:.3px!important;
  text-transform:uppercase!important;
}
#reviews .description,
#reviews .comment-text p{
  color:#514a42!important;
  line-height:1.55!important;
}

/* Review form */
#review_form_wrapper,
#review_form{
  margin-top:18px!important;
}
#review_form .comment-reply-title,
#reply-title{
  color:#24382e!important;
  font-family:Georgia,serif!important;
  font-size:18px!important;
}
#review_form .comment-form-rating label,
#review_form label{
  color:#514a42!important;
  font-weight:600!important;
  font-size:13px!important;
}
#review_form .stars a,
p.stars a{
  color:#c6a048!important;
}
#review_form textarea,
#review_form input[type="text"],
#review_form input[type="email"]{
  border:1px solid #ddd4c4!important;
  border-radius:12px!important;
  background:#fff!important;
  color:#24382e!important;
  padding:10px 12px!important;
  width:100%!important;
  box-sizing:border-box!important;
}
#review_form .form-submit input[type="submit"],
#review_form #submit{
  background:#2f4a3c!important;
  color:#f4efe4!important;
  border:0!important;
  border-radius:12px!important;
  font-weight:700!important;
  padding:12px 18px!important;
  cursor:pointer!important;
}
#review_form .form-submit input[type="submit"]:hover,
#review_form #submit:hover{
  filter:brightness(1.06);
}

/* Tabs (reviews) */
.woocommerce-tabs ul.tabs li a{
  color:#514a42!important;
}
.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover{
  color:#2f4a3c!important;
}


/* --- Nuclear show: survive Additional CSS hiding #reviews on nhc-pdp PDPs --- */
body.single-product:has([class*="nhc-pdp"]) #nhc-product-reviews,
body.single-product:has([class*="nhc-pdp"]) #nhc-product-reviews #reviews,
body.single-product:has([class*="nhc-pdp"]) #nhc-product-reviews .woocommerce-Reviews,
body.single-product:has([class*="nhc-pdp"]) #nhc-product-reviews .woocommerce-noreviews,
body.single-product:has([class*="nhc-pdp"]) #nhc-product-reviews #review_form_wrapper{
  display:block!important; visibility:visible!important; height:auto!important; max-height:none!important;
  overflow:visible!important; margin:24px auto!important; padding:20px!important; border:0!important;
  width:100%!important; max-width:920px!important; opacity:1!important;
}
/* Still hide empty list copy; ALWAYS keep the form wrapper visible for verified buyers */
body.single-product.nhc-no-reviews-yet:has([class*="nhc-pdp"]) #nhc-product-reviews .woocommerce-noreviews,
body.single-product.nhc-no-reviews-yet:has([class*="nhc-pdp"]) #nhc-product-reviews #reviews .woocommerce-noreviews{
  display:none!important;
}
body.single-product:has([class*="nhc-pdp"]) #nhc-product-reviews #review_form_wrapper,
body.single-product.nhc-no-reviews-yet:has([class*="nhc-pdp"]) #nhc-product-reviews #review_form_wrapper{
  display:block!important; visibility:visible!important; height:auto!important; max-height:none!important;
  overflow:visible!important; opacity:1!important;
}
