/* Balnecroft product reviews: scoped to single product pages. */
body.single-product #reviews {
  --bc-review-gold: #ad7818;
  clear: both; display: block !important; float: none !important;
  width: 100% !important; max-width: none !important; box-sizing: border-box;
  margin: 3rem 0 1.5rem; padding: clamp(20px, 3vw, 44px);
  background: #f8f8f5; border: 1px solid #e4e7df; border-radius: 16px;
}
body.single-product #reviews #comments,
body.single-product #reviews #review_form_wrapper {
  float: none !important; width: 100% !important; max-width: none !important;
  margin: 0; padding: 0; min-width: 0;
}
body.single-product #reviews .woocommerce-Reviews-title {
  margin: 0 0 28px; padding: 0; font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.25; letter-spacing: normal; text-transform: none;
}
body.single-product #reviews .bc-review-heading { display: block; }
body.single-product #reviews .bc-review-overview {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin-top: 16px; font-family: inherit; font-size: 16px; font-weight: 400;
}
body.single-product #reviews .bc-review-score { color: #26312b; font-weight: 700; font-size: 23px; }
body.single-product #reviews .bc-review-count { color: #566158; font-size: 15px; }
body.single-product #reviews ol.commentlist {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px;
  width: 100%; max-width: none; margin: 0 !important; padding: 0 !important; list-style: none;
}
body.single-product #reviews ol.commentlist > li {
  width: 100%; margin: 0 !important; padding: 0 !important; list-style: none;
}
body.single-product #reviews ol.commentlist .comment_container { width: 100%; margin: 0; }
body.single-product #reviews ol.commentlist .comment-text {
  display: flow-root; box-sizing: border-box; margin: 0 !important;
  padding: clamp(18px, 2.4vw, 28px) !important; border: 1px solid #e0e5db !important;
  border-radius: 12px !important; background: #fff; box-shadow: 0 2px 8px rgb(36 48 39 / 3%);
}
body.single-product #reviews ol.commentlist img.avatar { display: none; }
body.single-product #reviews .star-rating {
  color: var(--bc-review-gold) !important; font-size: 23px !important;
  line-height: 1; height: 1em; flex-shrink: 0;
}
body.single-product #reviews .star-rating::before { color: #ded5c1 !important; }
body.single-product #reviews .star-rating span::before { color: var(--bc-review-gold) !important; }
body.single-product #reviews .bc-review-overview .star-rating { float: none; margin: 0; font-size: 27px !important; }
body.single-product #reviews .comment-text > .star-rating { float: right; margin: 0 0 14px 20px; }
body.single-product #reviews .comment-text p.meta {
  color: #687169; font-size: 14px; line-height: 1.7; margin: 0 0 16px;
}
body.single-product #reviews .woocommerce-review__author { color: #29372e; font-size: 16px; font-weight: 700; }
body.single-product #reviews .woocommerce-review__verified { color: #526044; font-size: 12px; }
body.single-product #reviews .description { clear: both; color: #364239; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
body.single-product #reviews .description p { margin: 0 0 12px; }
body.single-product #reviews .description p:last-child { margin-bottom: 0; }
body.single-product:not(.logged-in) #reviews #review_form_wrapper { display: none !important; }
body.single-product.logged-in #reviews #review_form_wrapper {
  margin-top: 28px; padding-top: 28px; border-top: 1px solid #dce2d5;
}
body.single-product #reviews #reply-title { text-transform: none; letter-spacing: normal; font-size: 23px; }
body.single-product #reviews textarea { min-height: 150px; border-radius: 8px; }
body.single-product #reviews p.stars a { color: var(--bc-review-gold) !important; font-size: 25px; }
body.single-product #reviews .woocommerce-pagination { margin-top: 24px; }
@media (max-width: 600px) {
  body.single-product #reviews { margin-top: 28px; padding: 16px; border-radius: 12px; }
  body.single-product #reviews .comment-text > .star-rating { float: none; margin: 0 0 12px; }
  body.single-product #reviews .comment-text p.meta { margin-bottom: 12px; }
  body.single-product #reviews .comment-text p.meta time { display: inline; }
  body.single-product #reviews .description { font-size: 15px; line-height: 1.7; }
}
body.single-product .summary .woocommerce-product-rating .star-rating { color: #ad7818; font-size: 20px; }
body.single-product .summary .woocommerce-product-rating .star-rating::before { color: #ded5c1; }
body.single-product .summary .woocommerce-product-rating .star-rating span::before { color: #ad7818; }
body.single-product #reviews { scroll-margin-top: 120px; }
/* Convertivo purchased variation and structured review answers. */
body.single-product #reviews .comment-text .cvr-variation {
  clear: both; margin: 16px 0 0 !important; font-size: 13px !important;
  line-height: 1.6; color: #657063; opacity: 1 !important;
}
body.single-product #reviews .comment-text ul.cvr-answers {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px;
  width: 100%; margin: 12px 0 0 !important; padding: 0 !important;
  list-style: none; font-size: 13px; line-height: 1.5;
}
body.single-product #reviews .comment-text ul.cvr-answers > li {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 5px;
  flex: 0 1 auto; width: auto; max-width: 100%; min-height: 0;
  box-sizing: border-box; margin: 0 !important; padding: 7px 11px !important;
  background: #f2f5ee !important; border: 1px solid #e3e8dc !important; border-radius: 8px !important;
  color: #33432e; list-style: none; overflow-wrap: anywhere;
}
body.single-product #reviews .cvr-answers__q { color: #606d5b; opacity: 1; }
body.single-product #reviews .cvr-answers__a { color: #30412a; font-weight: 600; }
/* Keep the product-summary review link centred alongside its stars. */
body.single-product .summary .woocommerce-product-rating {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
}
body.single-product .summary .woocommerce-product-rating .star-rating {
  float: none !important; margin: 0 !important; flex: 0 0 auto;
}
body.single-product .summary .woocommerce-product-rating .woocommerce-review-link {
  display: block; margin: 0; line-height: 1.25;
}
body.single-product .summary .product-brand-image-wrapper {
  float: none !important; display: block; margin-bottom: 12px;
}
body.single-product .summary .woocommerce-product-rating { clear: both; margin-bottom: 14px; }
body.single-product .summary .product_title { clear: both; }
body.single-product .summary h1.product_title {
  font-weight: 700; line-height: 1.15;
}
/* Quattrocento's bold face is already 700; subtly strengthen its strokes. */
body.single-product .summary h1.product_title {
  -webkit-text-stroke: 0.3px currentColor;
}
body.single-product .summary .product-brand-image-wrapper img.product-brand-image {
  width: auto !important; max-width: 85px !important; height: auto !important;
}
body.single-product .summary .woocommerce-product-rating {
  justify-content: flex-start !important; padding-left: 0 !important;
  margin-left: 0 !important; text-indent: 0;
}
body.single-product .summary .woocommerce-product-rating .star-rating {
  padding: 0 !important; margin-left: 0 !important;
}
/* Legacy clearfix pseudo-elements otherwise become empty flex items. */
body.single-product .summary .woocommerce-product-rating::before,
body.single-product .summary .woocommerce-product-rating::after {
  content: none !important; display: none !important;
}
body.single-product .summary .bc-product-social-proof {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0;
  clear: both; margin: 0 0 14px; padding: 0;
}
body.single-product .summary .bc-product-social-proof .woocommerce-product-rating {
  margin: 0 !important;
}
body.single-product .summary .bc-product-sold {
  display: flex; align-items: center; gap: 6px; margin: 0; padding: 0;
}
body.single-product .summary .bc-product-sold .convertivo-product-badges {
  display: inline-flex; margin: 0 !important; padding: 0 !important;
}
body.single-product .summary .bc-social-comma { margin-right: 2px; }
/* Brand now has its own row: release the theme's reserved title width. */
body.single-product .summary h1.product_title {
  width: 100% !important; max-width: none !important; padding-right: 0 !important;
  box-sizing: border-box;
}
body.single-product .summary .bc-product-social-proof .woocommerce-product-rating { gap: 6px; }
body.single-product .summary .bc-product-sold { gap: 4px; }
body.single-product .summary .bc-social-comma { margin: 0; }
body.single-product .summary .bc-product-sold .convertivo-badge--sales_count {
  gap: 4px !important; padding: 0 !important; border: 0 !important;
}
/* Keep the size-guide dismiss control clearly visible. */
body.single-product .kt-size-modal button.close,
body.single-product .kt-size-modal button.close:hover,
body.single-product .kt-size-modal button.close:focus {
  color: #000 !important; opacity: 1 !important;
}
body.single-product .kt-size-modal button.close::before,
body.single-product .kt-size-modal button.close::after {
  background-color: #000 !important; border-color: #000 !important;
}
body.single-product .summary > .convertivo-product-badges {
  row-gap: 4px;
}
body.single-product .summary > .convertivo-product-badges > .convertivo-badge--free_shipping,
body.single-product .summary > .convertivo-product-badges > .convertivo-badge--guarantee {
  padding-top: 4px !important; padding-bottom: 4px !important;
}
body.single-product .summary .kt-size-btn { font-size: 16px !important; }
body.single-product .summary .kt-size-btn::before {
  width: 32px !important; height: 32px !important;
  background-size: 32px 32px !important;
}
/* Product availability: retain WooCommerce's live variation status and wording. */
body.single-product .summary p.stock {
  --bc-stock-colour: #526044;
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: none;
  box-sizing: border-box; padding: 14px 18px; margin: 12px 0 18px;
  background: #f8f8f5; border: 1px solid #e4e7df; border-radius: 10px;
  color: #33412d !important; font-size: 17px !important; font-weight: 700;
  line-height: 1.4;
}
body.single-product .summary p.stock::before {
  content: ''; display: block; flex: 0 0 9px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--bc-stock-colour);
}
body.single-product .summary p.stock.in-stock:not(.available-on-backorder)::before {
  animation: bc-stock-pulse 2s ease-out infinite;
}
body.single-product .summary p.stock.out-of-stock {
  --bc-stock-colour: #a24c49; color: #88413f !important;
}
body.single-product .summary p.stock.available-on-backorder {
  --bc-stock-colour: #8a7445; color: #6e5c35 !important;
}
body.single-product .summary p.stock.available-on-backorder::before,
body.single-product .summary p.stock.out-of-stock::before { animation: none; }
@keyframes bc-stock-pulse {
  0% { box-shadow: 0 0 0 0 rgb(82 96 68 / 30%); }
  75%, 100% { box-shadow: 0 0 0 7px rgb(82 96 68 / 0%); }
}
@media (prefers-reduced-motion: reduce) {
  body.single-product .summary p.stock::before { animation: none !important; }
}
body.single-product .summary p.stock.in-stock.bc-low-stock {
  --bc-stock-colour: #b58a28;
}
body.single-product .summary p.stock.in-stock.bc-low-stock:not(.available-on-backorder)::before {
  animation-name: bc-low-stock-pulse;
}
@keyframes bc-low-stock-pulse {
  0% { box-shadow: 0 0 0 0 rgb(181 138 40 / 30%); }
  75%, 100% { box-shadow: 0 0 0 7px rgb(181 138 40 / 0%); }
}
body.single-product .summary > .convertivo-product-badges {
  flex-direction: row; flex-wrap: wrap; align-items: center;
  column-gap: 24px; row-gap: 8px;
}
body.single-product .summary > .convertivo-product-badges > .convertivo-badge {
  flex: 0 1 auto; max-width: 100%; min-width: 0;
}
/* Compact availability panel while retaining clear status indicators. */
body.single-product .summary p.stock {
  font-size: 15px !important; padding: 10px 14px; gap: 10px;
}
