#reviews.tbdc-reviews,
.single-product .product-page-sections .product-section:has(#reviews) {
  min-width: 0;
}

.single-product .product-page-sections .product-section:has(#reviews) > .row > .large-2 {
  display: none;
}

.single-product .product-page-sections .product-section:has(#reviews) > .row > .large-10 {
  flex-basis: 100%;
  max-width: 100%;
}

#reviews.tbdc-reviews {
  display: block;
  width: 100%;
  margin: 18px 0 28px;
  padding: 22px 24px 0;
  color: #344054;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  box-shadow: 0 2px 12px rgb(16 24 40 / 10%);
}

.tbdc-reviews-heading {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 18px;
}

#reviews .tbdc-reviews-heading .woocommerce-Reviews-title {
  min-width: 0;
  margin: 0;
  color: #243247;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
}

.tbdc-reviews-count {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 34px;
  padding: 5px 10px;
  border-radius: 6px;
  color: #fff;
  background: var(--tbdcr-accent, #d7190f);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.tbdc-reviews-overview {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(250px, 1.5fr) minmax(200px, 1fr);
  align-items: center;
  gap: 20px 28px;
  padding: 0 5px 26px;
}

.tbdc-reviews-overview--no-ratings {
  grid-template-columns: 1fr;
}

.tbdc-reviews-average {
  text-align: center;
}

.tbdc-reviews-average > span {
  display: block;
  font-size: 17px;
  line-height: 1.4;
}

.tbdc-reviews-average strong {
  display: block;
  margin-top: 8px;
  color: var(--tbdcr-accent, #d7190f);
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
}

.tbdc-reviews-average small {
  font-size: .75em;
}

.tbdc-reviews-breakdown {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.tbdc-reviews-breakdown-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  font-size: 16px;
}

.tbdc-reviews-stars {
  white-space: nowrap;
}

.tbdc-reviews-stars span {
  color: #f2a000;
}

.tbdc-reviews-track {
  display: block;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ebee;
}

.tbdc-reviews-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #f2a000;
}

.tbdc-reviews-rating-count {
  text-align: right;
}

.tbdc-reviews-action {
  text-align: center;
}

.tbdc-reviews-action p {
  margin: 0 0 15px;
  font-size: 17px;
}

#reviews .tbdc-reviews-toggle {
  min-height: 44px;
  margin: 0;
  padding: 11px 18px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--tbdcr-accent, #d7190f);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
  cursor: pointer;
}

#reviews .tbdc-reviews-toggle:hover,
#reviews .tbdc-reviews-toggle:focus-visible {
  background: var(--tbdcr-accent, #d7190f);
  filter: brightness(.88);
}

#reviews .tbdc-reviews-toggle:focus-visible {
  outline: 2px solid #243247;
  outline-offset: 3px;
}

#reviews .tbdc-reviews-form[hidden] {
  display: none !important;
}

.tbdc-reviews-form {
  padding: 20px 0 28px;
  border-top: 1px solid #e8ebee;
  scroll-margin-top: 85px;
}

#reviews .tbdc-reviews-form .review-form-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  box-shadow: none;
}

#reviews .tbdc-reviews-form .comment-reply-title {
  display: block;
  margin: 0 0 18px;
  color: #243247;
  font-size: 20px;
  font-weight: 700;
}

#reviews .tbdc-reviews-form textarea,
#reviews .tbdc-reviews-form input[type="text"],
#reviews .tbdc-reviews-form input[type="email"],
#reviews .tbdc-reviews-form select {
  width: 100%;
  max-width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 5px;
  font-size: 16px;
}

#reviews .tbdc-reviews-form textarea {
  min-height: 120px;
}

#reviews .tbdc-reviews-form .form-submit input[type="submit"] {
  min-height: 44px;
  margin: 0;
  border-radius: 6px;
  background: var(--tbdcr-accent, #d7190f);
  text-transform: none;
}

#reviews .tbdc-reviews-list {
  width: 100%;
  padding: 22px 0;
  border-top: 1px solid #e8ebee;
}

#reviews .tbdc-reviews-list .woocommerce-noreviews {
  margin: 0;
  font-size: 16px;
}

#reviews .tbdc-reviews-list .commentlist {
  margin: 0;
}

#reviews .tbdcr-editorial {
  padding: 20px 0 24px;
  border-top: 1px solid #e8ebee;
}

#reviews .tbdcr-editorial h3 {
  margin: 0 0 14px;
  color: #243247;
  font-size: 18px;
  text-transform: none;
}

#reviews .tbdcr-editorial h3 small {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
  font-weight: 400;
}

#reviews .tbdcr-editorial-note {
  margin-top: 10px;
  padding: 12px 14px;
  background: #f9fafb;
  border: 1px solid #e8ebee;
  border-radius: 7px;
}

#reviews .tbdcr-editorial-stars {
  color: #f2a000;
  letter-spacing: 2px;
}

#reviews .tbdcr-editorial-note p {
  margin: 6px 0 0;
}

@media (max-width: 849px) {
  .tbdc-reviews-overview {
    grid-template-columns: minmax(145px, .85fr) minmax(0, 1.5fr);
    gap: 18px;
  }

  .tbdc-reviews-action {
    grid-column: 1 / -1;
    padding-top: 8px;
  }
}

@media (max-width: 599px) {
  #reviews.tbdc-reviews {
    margin: 12px 0 22px;
    padding: 18px 15px 0;
  }

  .tbdc-reviews-heading {
    margin-bottom: 16px;
  }

  #reviews .tbdc-reviews-heading .woocommerce-Reviews-title {
    font-size: 18px;
  }

  .tbdc-reviews-overview {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 0 0 22px;
  }

  .tbdc-reviews-action {
    grid-column: auto;
    padding-top: 0;
  }

  .tbdc-reviews-action p {
    margin-bottom: 10px;
    font-size: 16px;
  }

  #reviews .tbdc-reviews-toggle {
    width: 100%;
  }

  .tbdc-reviews-breakdown-row {
    grid-template-columns: 40px minmax(0, 1fr) 30px;
    gap: 8px;
    font-size: 15px;
  }

  .tbdc-reviews-form {
    padding: 18px 0 24px;
  }

  #reviews .tbdc-reviews-list {
    padding: 18px 0;
  }
}
