.comment-form-rating {
  margin-bottom: 2.6rem;
}

.comment-form-rating label {
  display: block;
  margin-bottom: 1rem;
  color: #1c1c1c;
  font-size: 1.6rem;
  font-weight: 700;
}

.comment-form-rating p.stars {
  margin-bottom: 0;
}

.comment-form-rating p.stars span {
  display: inline-flex;
  gap: 0.4rem;
}

.comment-form-rating p.stars a {
  position: relative;
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: transparent;
  font-size: 0;
  text-decoration: none;
}

.comment-form-rating p.stars a::before {
  content: "\2605";
  color: #d1d5db;
  font-family: Arial, sans-serif;
  font-size: 2.8rem;
  line-height: 1;
  transition: color 0.2s linear;
}

.comment-form-rating p.stars span:has(.star-1:hover) .star-1::before,
.comment-form-rating p.stars span:has(.star-2:hover) :is(.star-1, .star-2)::before,
.comment-form-rating p.stars span:has(.star-3:hover) :is(.star-1, .star-2, .star-3)::before,
.comment-form-rating p.stars span:has(.star-4:hover) :is(.star-1, .star-2, .star-3, .star-4)::before,
.comment-form-rating p.stars span:has(.star-5:hover) a::before,
.comment-form-rating p.stars span:has(.star-1.active) .star-1::before,
.comment-form-rating p.stars span:has(.star-2.active) :is(.star-1, .star-2)::before,
.comment-form-rating p.stars span:has(.star-3.active) :is(.star-1, .star-2, .star-3)::before,
.comment-form-rating p.stars span:has(.star-4.active) :is(.star-1, .star-2, .star-3, .star-4)::before,
.comment-form-rating p.stars span:has(.star-5.active) a::before {
  color: #fbb515;
}

.single-product-rating .stars-wrapper .dynamic-product-stars {
  position: relative;
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: 0.1rem;
}

.single-product-rating .stars-wrapper .dynamic-product-stars-empty {
  color: #d1d5db;
}

.single-product-rating .stars-wrapper .dynamic-product-stars-filled {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  color: #fbb515;
  white-space: nowrap;
}

.single-product-rating .stars-wrapper > .star {
  display: none;
}
