/* TPS: reviews Long Chau */

/* Hide Đánh giá tab in the tabs row (keep Mô tả / Ghi chú / featured aside intact) */
body.single-product li.reviews_tab,
body.single-product #tab-title-reviews {
  display: none !important;
}

/* After JS relocates #reviews, hide the empty tab panel so it never flashes */
body.single-product.tps-lc-reviews-ready #tab-reviews,
body.single-product.tps-lc-reviews-ready .woocommerce-Tabs-panel--reviews {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

/* Long Châu-style block below related products */
body.single-product .tps-lc-reviews {
  max-width: var(--tps-pdp-width, 1240px) !important;
  width: 100% !important;
  margin: 0 auto 24px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body.single-product .tps-lc-reviews__card {
  background: #ffffff !important;
  border-radius: 12px !important;
  border: 1px solid #e8eaed !important;
  box-shadow: none !important;
  /* Match related-products / site ~1240 parent — no 1184 cap */
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 20px 24px 8px !important;
  box-sizing: border-box !important;
}

body.single-product .tps-lc-reviews__title {
  margin: 0 0 16px !important;
  padding: 0 0 12px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #1a1a1a !important;
  font-family: "Be Vietnam Pro", Montserrat, system-ui, sans-serif !important;
  border-bottom: 1px solid #e5e7eb !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

body.single-product .tps-lc-reviews__title-count {
  font-weight: 500 !important;
  color: #6b7280 !important;
  font-size: 16px !important;
}

/* Summary row — overview */
body.single-product .tps-lc-reviews__summary {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 24px 40px !important;
  align-items: center !important;
  min-height: 141px !important;
  padding-bottom: 4px !important;
  margin-bottom: 14px !important;
  border-bottom: 1px solid #eef0f2 !important;
  box-sizing: border-box !important;
}

body.single-product .tps-lc-reviews__avg {
  flex: 0 0 auto !important;
  min-width: 140px !important;
  text-align: left !important;
}

body.single-product .tps-lc-reviews__avg-label {
  display: block !important;
  font-size: 16px !important;
  color: #6b7280 !important;
  margin-bottom: 4px !important;
  line-height: 1.3 !important;
}

body.single-product .tps-lc-reviews__avg-score {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 10px !important;
}

body.single-product .tps-lc-reviews__avg-num {
  font-size: 36px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: #111827 !important;
}

body.single-product .tps-lc-reviews__avg-star {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
  color: #f5a623 !important;
}
body.single-product .tps-lc-reviews__avg-star .tps-lc-star {
  width: 26px !important;
  height: 26px !important;
}

/* 3D soft puffy star images (16×16 default; matte orange-gold, no specular) */
body.single-product .tps-lc-star {
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
  vertical-align: middle !important;
  overflow: visible !important;
  object-fit: contain !important;
  object-position: center !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  image-rendering: -webkit-optimize-contrast !important;
}
body.single-product img.tps-lc-star {
  max-width: none !important;
  max-height: none !important;
}
body.single-product .tps-lc-star--off {
  /* gray 3D asset; slight mute if needed */
  opacity: 0.92 !important;
  filter: none !important;
}
body.single-product .tps-lc-star--on {
  opacity: 1 !important;
  filter: none !important;
}

body.single-product .tps-lc-reviews__send {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  appearance: none !important;
  border: 0 !important;
  border-radius: 35px !important; /* bo viền mềm */
  background: #008b4b !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  padding: 12px 20px !important;
  min-width: 145px !important;
  height: 48px !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  transition: background 0.15s ease !important;
}
body.single-product .tps-lc-reviews__send:hover,
body.single-product .tps-lc-reviews__send:focus {
  background: #007a42 !important;
  color: #ffffff !important;
  outline: none !important;
}

/* Breakdown — ~336×124 star bars panel */
body.single-product .tps-lc-reviews__breakdown {
  flex: 0 0 336px !important;
  width: 336px !important;
  max-width: 336px !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  box-sizing: border-box !important;
}

body.single-product .tps-lc-bar {
  display: grid !important;
  grid-template-columns: auto 231px auto !important;
  align-items: center !important;
  gap: 8px !important;
}

body.single-product .tps-lc-bar__stars {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important; /* small star spacing (was 0) */
  color: #f5a623 !important;
  white-space: nowrap !important;
  min-width: 80px !important;
  line-height: 16px !important;
}
body.single-product .tps-lc-bar__stars > span,
body.single-product .tps-lc-bar__stars > .tps-lc-star {
  display: inline-flex !important;
  width: 16px !important;
  height: 16px !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 16px !important;
}

body.single-product .tps-lc-bar__track {
  width: 231px !important;
  max-width: 231px !important;
  height: 8px !important;
  background: #eef0f2 !important;
  border-radius: 99px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body.single-product .tps-lc-bar__fill {
  height: 100% !important;
  background: #f5a623 !important;
  border-radius: 99px !important;
  width: 0%;
  transition: width 0.25s ease !important;
}

body.single-product .tps-lc-bar__count {
  font-size: 13px !important;
  color: #4b5563 !important;
  min-width: 18px !important;
  text-align: right !important;
}

/* Filters */
body.single-product .tps-lc-reviews__filters {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 0 16px !important;
}

body.single-product .tps-lc-reviews__filters-label {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 16px !important;
  line-height: 32px !important;
  height: 32px !important;
  color: #374151 !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
}

body.single-product .tps-lc-filter {
  appearance: none !important;
  border: 1px solid #d1d5db !important;
  background: #ffffff !important;
  color: #374151 !important;
  border-radius: 999px !important;
  padding: 0 12px !important;
  margin: 0 !important; /* kill theme button margins so flex gap + vertical center work */
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  line-height: 1 !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  min-width: 62px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  position: relative !important;
  overflow: visible !important;
}
body.single-product .tps-lc-filter .tps-lc-star {
  width: 14px !important;
  height: 14px !important;
  flex-basis: 14px !important;
}
body.single-product .tps-lc-filter:hover {
  border-color: #008b4b !important;
  color: #008b4b !important;
}
body.single-product .tps-lc-filter.is-active {
  background: #ffffff !important;
  border-color: #008b4b !important;
  color: #008b4b !important;
}
/* Corner check badge (shop green #008b4b, not LC blue) */
body.single-product .tps-lc-filter.is-active::before {
  content: "" !important;
  position: absolute !important;
  top: -1px !important;
  right: -1px !important;
  width: 0 !important;
  height: 0 !important;
  border-style: solid !important;
  border-width: 0 20px 20px 0 !important;
  border-color: transparent #008b4b transparent transparent !important;
  z-index: 1 !important;
  pointer-events: none !important;
}
body.single-product .tps-lc-filter.is-active::after {
  content: "" !important;
  position: absolute !important;
  top: 1px !important;
  right: 2px !important;
  width: 7px !important;
  height: 4px !important;
  border-left: 1.5px solid #fff !important;
  border-bottom: 1.5px solid #fff !important;
  transform: rotate(-45deg) !important;
  z-index: 2 !important;
  box-sizing: border-box !important;
  pointer-events: none !important;
}

/* Moved Woo reviews */
body.single-product .tps-lc-reviews #reviews {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}
body.single-product .tps-lc-reviews #reviews.row {
  display: block !important;
  margin: 0 !important;
}
body.single-product .tps-lc-reviews #comments,
body.single-product .tps-lc-reviews #review_form_wrapper {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.single-product .tps-lc-reviews .woocommerce-Reviews-title,
body.single-product .tps-lc-reviews #comments > h3 {
  display: none !important;
}

body.single-product .tps-lc-reviews .woocommerce-noreviews,
body.single-product .tps-lc-reviews .woocommerce-noreviews[data-tps-lc-hidden-noreviews] {
  display: none !important;
}

/* Empty state — filter no-match / zero reviews (LC-style stars + glow) */
body.single-product .tps-lc-reviews__empty-filter {
  display: none !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 36px 16px 44px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
}
body.single-product .tps-lc-reviews__empty-filter.is-visible {
  display: flex !important;
}
body.single-product .tps-lc-reviews__empty-art {
  position: relative !important;
  width: 168px !important;
  height: 118px !important;
  margin: 0 auto 10px !important;
}
body.single-product .tps-lc-empty-star {
  position: absolute !important;
  object-fit: contain !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  max-width: none !important;
  pointer-events: none !important;
  user-select: none !important;
}
body.single-product .tps-lc-empty-star--lg {
  left: 50% !important;
  top: 18px !important;
  width: 88px !important;
  height: 88px !important;
  transform: translateX(-50%) !important;
  z-index: 2 !important;
}
body.single-product .tps-lc-empty-star--sm {
  width: 28px !important;
  height: 28px !important;
  z-index: 3 !important;
}
body.single-product .tps-lc-empty-star--xs {
  width: 14px !important;
  height: 14px !important;
  z-index: 3 !important;
  opacity: 0.85 !important;
}
body.single-product .tps-lc-empty-star--a {
  left: 28px !important;
  top: 10px !important;
}
body.single-product .tps-lc-empty-star--b {
  left: 18px !important;
  top: 36px !important;
  width: 16px !important;
  height: 16px !important;
}
body.single-product .tps-lc-empty-star--c {
  right: 36px !important;
  top: 28px !important;
  width: 12px !important;
  height: 12px !important;
  opacity: 0.55 !important;
}
body.single-product .tps-lc-reviews__empty-glow {
  position: absolute !important;
  left: 50% !important;
  bottom: 4px !important;
  transform: translateX(-50%) !important;
  width: 118px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: radial-gradient(
    ellipse at center,
    rgba(245, 198, 80, 0.5) 0%,
    rgba(245, 198, 80, 0.22) 45%,
    rgba(245, 198, 80, 0) 75%
  ) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}
body.single-product .tps-lc-reviews__empty-text {
  margin: 4px 0 0 !important;
  padding: 0 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: #4b5563 !important;
  font-family: "Be Vietnam Pro", Montserrat, system-ui, sans-serif !important;
}

body.single-product .tps-lc-reviews ol.commentlist {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-product .tps-lc-reviews ol.commentlist > li.review,
body.single-product .tps-lc-reviews ol.commentlist > li.comment {
  list-style: none !important;
  margin: 0 0 4px !important;
  padding: 14px 0 !important;
  border-top: 1px solid #eef0f2 !important;
  border-bottom: 0 !important;
  background: transparent !important;
}
body.single-product .tps-lc-reviews ol.commentlist > li.review:first-child {
  border-top: 0 !important;
}

/* Enhanced item layout */
body.single-product .tps-lc-item {
  display: flex !important;
  gap: 12px !important;
  align-items: flex-start !important;
}

body.single-product .tps-lc-avatar {
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: #e5e7eb !important;
  color: #4b5563 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  overflow: hidden !important;
}
body.single-product .tps-lc-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

body.single-product .tps-lc-item__main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

body.single-product .tps-lc-item__head {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px 12px !important;
  margin-bottom: 4px !important;
}

body.single-product .tps-lc-item__name {
  font-weight: 700 !important;
  font-size: 14px !important;
  color: #111827 !important;
}

body.single-product .tps-lc-item__rating {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important; /* slight bump (was 4) for small rating star spacing */
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #f5a623 !important;
  white-space: nowrap !important;
  line-height: 16px !important;
}
body.single-product .tps-lc-item__rating-num {
  color: #f5a623 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  line-height: 16px !important;
}
body.single-product .tps-lc-item__rating .tps-lc-star {
  width: 14px !important;
  height: 14px !important;
  flex-basis: 14px !important;
}
body.single-product .tps-lc-item__rating .tps-lc-star + .tps-lc-star {
  margin-left: 2px !important; /* tiny extra between consecutive small stars */
}

body.single-product .tps-lc-item__badge {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #008b4b !important;
  background: #e8f7ef !important;
  border-radius: 4px !important;
  padding: 2px 6px !important;
}

body.single-product .tps-lc-item__body {
  font-size: 14px !important;
  color: #374151 !important;
  line-height: 1.55 !important;
  margin: 0 0 6px !important;
}
body.single-product .tps-lc-item__body p {
  margin: 0 0 0.4em !important;
}
body.single-product .tps-lc-item__body p:last-child {
  margin-bottom: 0 !important;
}

body.single-product .tps-lc-item__foot {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px 14px !important;
  font-size: 13px !important;
  color: #9ca3af !important;
}

body.single-product .tps-lc-item__reply {
  color: #008b4b !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
}
body.single-product .tps-lc-item__reply:hover {
  text-decoration: underline !important;
}

/* Hide original WC chrome inside enhanced items */
body.single-product .tps-lc-reviews li.review[data-tps-lc-enhanced] > .comment_container > .flex-col:first-child,
body.single-product .tps-lc-reviews li.review[data-tps-lc-enhanced] > .comment_container > .flex-col:first-child img.avatar,
body.single-product .tps-lc-reviews li.review[data-tps-lc-enhanced] img.avatar,
body.single-product .tps-lc-reviews li.review[data-tps-lc-enhanced] .star-rating,
body.single-product .tps-lc-reviews li.review[data-tps-lc-enhanced] > .comment_container > .comment-text > .meta,
body.single-product .tps-lc-reviews li.comment[data-tps-lc-enhanced] > .comment_container > .flex-col:first-child,
body.single-product .tps-lc-reviews li.comment[data-tps-lc-enhanced] img.avatar,
body.single-product .tps-lc-reviews li.comment[data-tps-lc-enhanced] .star-rating,
body.single-product .tps-lc-reviews li.comment[data-tps-lc-enhanced] > .comment_container > .comment-text > .meta {
  display: none !important;
}
body.single-product .tps-lc-reviews .tps-lc-item ~ .flex-col {
  display: none !important;
}
body.single-product .tps-lc-reviews li.review[data-tps-lc-enhanced] > .comment_container {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
body.single-product .tps-lc-reviews li.review[data-tps-lc-enhanced] > .comment_container > .comment-text {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

/* Nested children (staff replies) */
body.single-product .tps-lc-reviews ol.commentlist .children {
  list-style: none !important;
  margin: 10px 0 0 52px !important;
  padding: 0 0 0 14px !important;
  border-left: 2px solid #e5e7eb !important;
  position: relative !important;
}
body.single-product .tps-lc-reviews ol.commentlist .children > li {
  margin: 0 !important;
  padding: 8px 0 !important;
  border: 0 !important;
  list-style: none !important;
}

/* Review form inside card */
body.single-product .tps-lc-reviews #review_form_wrapper {
  margin-top: 8px !important;
  padding-top: 12px !important;
  border-top: 1px solid #eef0f2 !important;
}
body.single-product .tps-lc-reviews #review_form_wrapper.is-collapsed {
  display: none !important;
}
body.single-product .tps-lc-reviews #review_form_wrapper.is-open {
  display: block !important;
}
body.single-product .tps-lc-reviews .review-form-inner {
  border: 1px solid #e8eaed !important;
  border-radius: 10px !important;
  padding: 14px !important;
  margin-bottom: 12px !important;
}
body.single-product .tps-lc-reviews #reply-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  margin: 0 0 10px !important;
}
body.single-product .tps-lc-reviews .comment-form .form-submit .submit,
body.single-product .tps-lc-reviews .comment-form input#submit {
  background: #008b4b !important;
  border-color: #008b4b !important;
  color: #fff !important;
  border-radius: 8px !important;
}

body.single-product .tps-lc-reviews li.review.is-filtered-out {
  display: none !important;
}

/* Mobile — scale down; keep full parent width */
@media (max-width: 767px) {
  body.single-product .tps-lc-reviews__card {
    max-width: 100% !important;
    padding: 16px 14px 6px !important;
    border-radius: 10px !important;
  }
  body.single-product .tps-lc-reviews__summary {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
    min-height: 0 !important;
  }
  body.single-product .tps-lc-reviews__breakdown {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  body.single-product .tps-lc-bar {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
  }
  body.single-product .tps-lc-bar__track {
    width: 100% !important;
    max-width: none !important;
  }
  body.single-product .tps-lc-reviews__avg-num {
    font-size: 32px !important;
  }
  body.single-product .tps-lc-reviews__send {
    min-width: 0 !important;
    height: 44px !important;
    padding: 10px 18px !important;
    font-size: 15px !important;
  }
  body.single-product .tps-lc-reviews__title {
    font-size: 17px !important;
  }
  body.single-product .tps-lc-reviews__title-count {
    font-size: 14px !important;
  }
  body.single-product .tps-lc-reviews ol.commentlist .children {
    margin-left: 20px !important;
  }
  body.single-product .tps-lc-reviews__filters {
    gap: 6px !important;
  }
}
