/* MoreGoodReviews Display Styles */
.mgr-reviews {
  margin: 2em 0;
}

.mgr-review {
  margin-bottom: 2em;
  padding: 1.5em;
  border-radius: 6px;
  background-color: #f9f9f9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mgr-review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5em;
  flex-wrap: wrap;
}

.mgr-review-author {
  font-weight: bold;
}

.mgr-review-date {
  color: #777;
  font-size: 0.9em;
}

.mgr-review-rating {
  margin-bottom: 0.5em;
}

.mgr-star {
  color: #ddd;
  font-size: 1.2em;
}

.mgr-star-full {
  color: #ffb900;
}

.mgr-star-half {
  color: #ffb900;
  position: relative;
  transform: rotateY(180deg);
  transform-origin: center;
}

.mgr-star-half::before {
  content: '★';
  position: absolute;
  color: #ddd;
  width: 50%;
  overflow: hidden;
}

.mgr-review-title {
  margin: 0.5em 0;
  font-weight: bold;
}

.mgr-review-content {
  line-height: 1.5;
}

.mgr-review-reply {
  margin-top: 1em;
  padding: 1em;
  background-color: #f0f0f0;
  border-left: 3px solid #ddd;
}

/* Grid Style */
.mgr-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: 1.5em;
}

/* Carousel Style */
.mgr-reviews-carousel .mgr-review {
  margin: 0 10px;
}

/* Badge Style */
.mgr-reviews-badge {
  display: block;
  margin: 1rem auto;
}

.mgr-badge {
  display: block;
  margin: 0 auto;
  padding: 1em;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 300px;
}

.mgr-badge-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5em;
}

.mgr-badge-score {
  font-size: 1.5em;
  font-weight: bold;
  margin-right: 0.5em;
}

.mgr-badge-stars .mgr-star {
  font-size: 1.2em;
}

.mgr-badge-count {
  color: #666;
  font-size: 0.9em;
}

.mgr-star-full {
  color: #ffb900;
  /* Filled star color */
}

.mgr-star-empty {
  color: #ddd;
  /* Empty star color */
}

.mgr-star-half {
  font-size: 1.2em;
  color: #ffb900;
  /* Filled star color for left half */
  position: relative;
  display: inline-block;
}

.mgr-star-half::before {
  content: '★';
  position: absolute;
  color: #ddd;
  /* Empty star color for right half */
  width: 50%;
  left: 0%;
  /* Cover right half */
  overflow: hidden;
}

/* Slick Slider Overrides */
.mgr-reviews-carousel .slick-prev,
.mgr-reviews-carousel .slick-next {
  z-index: 1;
}

.mgr-reviews-carousel .slick-prev {
  left: 10px;
}

.mgr-reviews-carousel .slick-next {
  right: 10px;
}

.mgr-reviews-carousel .slick-dots {
  margin-top: 1em;
}

@media (max-width: 768px) {
  .slick-dots {
    margin-top: 1em;
  }
  .mgr-reviews-grid {
    grid-template-columns: 1fr;
  }

  .mgr-review-header {
    flex-direction: column;
  }

  .mgr-review-date {
    margin-top: 0.3em;
  }
}

/* CTA Button */
.mgr-cta {
    margin-top: 1em;
    text-align: center;
}

.mgr-cta-button {
    display: inline-block;
    padding: 0.8em 1.5em;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.mgr-cta-button:hover {
    background-color: #005177;
}
