/* FRITTENEDGE v1.8.3 — editorial two-column WooCommerce customer reviews.
   Based on the supplied layout: reviews left, review form right.
   Scope everything to the actual product review section. */
body.single-product .fe-customer-reviews {
  display: block;
  clear: both;
  width: min(1200px, calc(100% - 48px));
  max-width: 1200px;
  margin: 48px auto 65px;
  padding: 30px;
  box-sizing: border-box;
  background: #faf8f5;
  border: 1px solid #e7ded2;
  border-radius: 5px;
  color: #292720;
}
body.single-product .fe-customer-reviews .fe-reviews-heading { margin: 0 0 24px; }
body.single-product .fe-customer-reviews .fe-reviews-kicker {
  display: block; color: #a58a68; letter-spacing: .18em;
  text-transform: uppercase; font-size: 10px; font-weight: 700; margin-bottom: 7px;
}
body.single-product .fe-customer-reviews .fe-reviews-heading h2 {
  margin: 0 0 5px; font: 400 clamp(27px, 3vw, 35px)/1.2 'Playfair Display', Georgia, serif;
  color: #292720;
}
body.single-product .fe-customer-reviews .fe-reviews-heading p { margin: 0; color: #766d62; font-size: 13px; }
/* When ratings exist, retain the real WooCommerce rating overview above both columns. */
body.single-product .fe-customer-reviews .fe-reviews-score {
  display: grid; grid-template-columns: minmax(145px, .65fr) minmax(0, 1.35fr);
  gap: 26px; align-items: center; margin-bottom: 24px; padding: 18px 22px;
  background: #fff; border: 1px solid #e7ded2;
}
body.single-product .fe-customer-reviews .fe-reviews-average { display: flex; flex-direction: column; gap: 6px; }
body.single-product .fe-customer-reviews .fe-reviews-average strong { font: 400 42px/1 Georgia, serif; }
body.single-product .fe-customer-reviews .fe-reviews-average small,
body.single-product .fe-customer-reviews .fe-reviews-bar small { color: #766d62; font-size: 12px; }
body.single-product .fe-customer-reviews .fe-reviews-summary-stars .star-rating { float: none !important; margin: 0; color: #b9955e !important; }
body.single-product .fe-customer-reviews .fe-reviews-bars { display: grid; gap: 8px; }
body.single-product .fe-customer-reviews .fe-reviews-bar { display: grid; grid-template-columns: 32px minmax(0, 1fr) 25px; gap: 10px; align-items: center; font-size: 12px; color: #9c8059; }
body.single-product .fe-customer-reviews .fe-reviews-track { height: 7px; border-radius: 10px; background: #efeae2; overflow: hidden; }
body.single-product .fe-customer-reviews .fe-reviews-track > span { display: block; height: 100%; background: #b9955e; }
/* WooCommerce native #reviews contains the list and the form as direct children. */
body.single-product .fe-customer-reviews #reviews {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start; gap: 26px;
  width: 100% !important; max-width: none !important;
  padding: 0 !important; margin: 0 !important; border: 0 !important;
}
body.single-product .fe-customer-reviews #reviews::before,
body.single-product .fe-customer-reviews #reviews::after { display: none !important; content: none !important; }
body.single-product .fe-customer-reviews #reviews > #comments,
body.single-product .fe-customer-reviews #reviews > #review_form_wrapper {
  display: block !important; float: none !important; clear: none !important;
  width: 100% !important; min-width: 0; max-width: none !important;
  margin: 0 !important; box-sizing: border-box;
}
body.single-product .fe-customer-reviews #reviews > #comments { padding: 20px; background: #fff; border: 1px solid #e7ded2; border-radius: 4px; }
body.single-product .fe-customer-reviews #reviews #comments h2 {
  font: 400 25px/1.3 'Playfair Display', Georgia, serif; color: #292720;
  margin: 0 0 19px; padding: 0;
}
body.single-product .fe-customer-reviews #reviews #comments .woocommerce-noreviews { padding: 20px; background: #faf8f5; border: 1px dashed #ded2c2; font-size: 13px; color: #6f675e; }
body.single-product .fe-customer-reviews #reviews ol.commentlist { list-style: none !important; padding: 0 !important; margin: 0 !important; }
body.single-product .fe-customer-reviews #reviews ol.commentlist li { padding: 16px 0 !important; margin: 0 !important; background: transparent; border-bottom: 1px solid #eee7de; }
body.single-product .fe-customer-reviews #reviews ol.commentlist li:last-child { border-bottom: 0; }
body.single-product .fe-customer-reviews #reviews ol.commentlist .comment_container { display: flex; align-items: flex-start; gap: 13px; }
body.single-product .fe-customer-reviews #reviews ol.commentlist img.avatar {
  position: static !important; float: none !important; flex: 0 0 38px;
  width: 38px !important; height: 38px !important; border: 0 !important; padding: 0 !important;
  border-radius: 50%; object-fit: cover;
}
body.single-product .fe-customer-reviews #reviews ol.commentlist .comment-text { flex: 1; min-width: 0; float: none; margin: 0 !important; padding: 0 !important; border: 0 !important; }
body.single-product .fe-customer-reviews #reviews .comment-text .meta { font-size: 12px; color: #766d62; }
body.single-product .fe-customer-reviews #reviews .comment-text .description { font-size: 13px; line-height: 1.7; color: #504a43; }
body.single-product .fe-customer-reviews #reviews .star-rating { color: #b9955e !important; }
/* Form stays visible on the right, like the supplied reference. */
body.single-product .fe-customer-reviews #reviews > #review_form_wrapper {
  padding: 24px !important; background: #f4eee6 !important;
  border: 1px solid #e1d3c0 !important; border-radius: 4px;
}
body.single-product .fe-customer-reviews #review_form { width: 100%; }
body.single-product .fe-customer-reviews #review_form #reply-title {
  display: block; margin: 0 0 12px; color: #292720;
  font: 400 24px/1.35 'Playfair Display', Georgia, serif;
  overflow-wrap: anywhere;
}
body.single-product .fe-customer-reviews #review_form .comment-notes,
body.single-product .fe-customer-reviews #review_form .logged-in-as { color: #766d62; font-size: 12px; line-height: 1.6; }
body.single-product .fe-customer-reviews #review_form label { display: block; font-size: 12px; font-weight: 600; color: #292720; margin-bottom: 7px; }
body.single-product .fe-customer-reviews #review_form p { margin: 0 0 16px; }
body.single-product .fe-customer-reviews #review_form .comment-form-rating .stars { margin: 6px 0 19px; }
body.single-product .fe-customer-reviews #review_form .stars a { color: #b9955e !important; font-size: 18px; }
body.single-product .fe-customer-reviews #review_form :is(textarea,input[type="text"],input[type="email"]) {
  display: block; width: 100% !important; max-width: none !important; box-sizing: border-box;
  padding: 12px 13px !important; font-size: 13px; line-height: 1.5; font-family: inherit; color: #292720;
  background: #fff; border: 1px solid #dcd0c2; border-radius: 3px;
}
body.single-product .fe-customer-reviews #review_form textarea { min-height: 145px; resize: vertical; }
body.single-product .fe-customer-reviews #review_form :is(textarea,input):focus-visible { outline: 2px solid #b9955e; outline-offset: 1px; }
body.single-product .fe-customer-reviews #review_form input[type="submit"] {
  display: inline-block; padding: 13px 25px !important; border: 1px solid #292720 !important;
  border-radius: 2px; background: #292720 !important; color: #fff !important;
  font-size: 12px; line-height: 1.4; font-weight: 600; font-family: inherit; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
body.single-product .fe-customer-reviews #review_form input[type="submit"]:hover { background: #987a54 !important; border-color: #987a54 !important; }
body.single-product .fe-customer-reviews #review_form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
/* Mobile: reviews first, form second */
@media (max-width: 800px) {
  body.single-product .fe-customer-reviews { width: calc(100% - 30px); padding: 18px; margin: 30px auto 45px; }
  body.single-product .fe-customer-reviews #reviews { grid-template-columns: 1fr; gap: 16px; }
  body.single-product .fe-customer-reviews .fe-reviews-score { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  body.single-product .fe-customer-reviews #reviews > #review_form_wrapper { padding: 18px !important; }
  body.single-product .fe-customer-reviews #reviews > #comments { padding: 18px; }
}

/* v1.8.4 full-width placement: review section follows the closing product grid. */
body.single-product .woocommerce > .fe-customer-reviews,
body.single-product .fe-customer-reviews {
  display: block !important;
  position: relative !important;
  float: none !important;
  clear: both !important;
  grid-column: 1 / -1 !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 48px auto 55px !important;
  box-sizing: border-box !important;
}
body.single-product .fe-customer-reviews #reviews {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}
body.single-product .fe-customer-reviews #reviews > #comments,
body.single-product .fe-customer-reviews #reviews > #review_form_wrapper {
  overflow-wrap: anywhere;
}
body.single-product .fe-customer-reviews #review_form #reply-title {
  font-size: clamp(19px, 2.1vw, 26px) !important;
}
body.single-product .woocommerce > section.related,
body.single-product .woocommerce > .related,
body.single-product section.related.products {
  display: block;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto 70px !important;
}
@media (max-width: 767px) {
  body.single-product .fe-customer-reviews {
    width: 100% !important;
    margin: 26px auto 35px !important;
    padding: 18px !important;
  }
  body.single-product .fe-customer-reviews #reviews {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* v1.8.5 login-only review action */
body.single-product .fe-customer-reviews .fe-review-login-prompt { padding: 12px 0; }
body.single-product .fe-customer-reviews .fe-review-login-prompt p { font-size: 13px; line-height: 1.7; color: #62594d; margin: 0 0 18px; }
body.single-product .fe-customer-reviews .fe-review-login-button {
  display: inline-block; text-decoration: none; background: #292720; color: #fff !important;
  border: 1px solid #292720; padding: 12px 20px; font-size: 12px;
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
body.single-product .fe-customer-reviews .fe-review-login-button:hover,
body.single-product .fe-customer-reviews .fe-review-login-button:focus-visible {
  background: #a58a68; border-color: #a58a68; color: #fff !important;
}
