/* Product reviews carousel — loaded separately so FTP/cache always picks it up */
.testimonials--reviews .testimonials__slide--review {
  width: 360px !important;
  max-width: calc(100vw - 48px);
  height: auto !important;
  flex-shrink: 0;
  box-sizing: border-box;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(76, 48, 111, 0.08);
  overflow: hidden;
  opacity: 1 !important;
}

.product-review-card {
  height: 100%;
  min-height: 180px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  box-sizing: border-box;
  color: #212121;
}

.product-review-card__header,
.product-review-card__top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-review-card__author {
  font-family: "Oswald", sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  color: #7248aa;
}

.product-review-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-review-card__star {
  width: 18px;
  height: 18px;
  display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e8e8e8'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.product-review-card__star.is-active {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237248aa'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
}

.product-review-card__text {
  margin: 0;
  flex: 1;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #212121;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-review-card__date {
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  line-height: 1.3;
  color: #787878;
}

.product-review-card__replies {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid #e8e8e8;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-review-card__reply {
  position: relative;
  padding: 14px 16px 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(213, 194, 250, 0.35), rgba(253, 249, 175, 0.25));
  border-left: 3px solid #7248aa;
}

.product-review-card__reply-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #7248aa;
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.product-review-card__reply-author {
  margin-bottom: 6px;
  font-family: "Oswald", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: #4c306f;
}

.product-review-card__reply-text {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: #212121;
}

.product-review-card__reply-date {
  display: block;
  margin-top: 8px;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  color: #787878;
}

.testimonials--reviews .testimonials__empty,
.testimonials--reviews .testimonials__note {
  margin: 0;
  text-align: center;
  color: #787878;
  font-size: 16px;
}

.testimonials__form:not(.is-open) {
  display: none !important;
}

.testimonials__form.is-open,
.testimonials__form.is-open[hidden] {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  margin-top: 32px !important;
  padding: 32px !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(76, 48, 111, 0.06);
}

/* Star rating picker in review form */
.fgs-star-rating__select,
.testimonials__form #rating,
.testimonials__form p.stars {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.fgs-star-rating {
  position: relative;
  width: 100%;
}

.fgs-star-rating__stars {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.fgs-star-rating__btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e8e8e8'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.fgs-star-rating__btn:hover,
.fgs-star-rating__btn.is-active {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237248aa'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
}

.fgs-star-rating__btn:hover {
  transform: scale(1.08);
}
