/* Scoped overrides also replace the legacy mobile !important rules. */
#testimonials {
  padding-block: clamp(48px, 6vw, 80px) !important;
}

#testimonials .google-reviews {
  max-width: 1120px;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px !important;
  margin-top: 28px !important;
}

#testimonials .google-review {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 20px !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

#testimonials .google-review .testimonial-card__stars {
  margin-bottom: 12px !important;
  font-size: 14px !important;
  line-height: 1;
  letter-spacing: 3px;
}

#testimonials .google-review .testimonial-card__quote {
  flex: 1;
  margin: 0;
  padding: 0 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  overflow-wrap: anywhere;
}

#testimonials .google-review .testimonial-card__quote::before,
#testimonials .google-review .testimonial-card__quote::after {
  display: none;
}

#testimonials .google-review__author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px !important;
  padding-top: 14px;
}

#testimonials .google-review__avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
  font-size: 12px;
  font-weight: var(--fw-bold);
  box-shadow: none;
}

#testimonials .google-review__author > div:last-child {
  min-width: 0;
}

#testimonials .google-review__author .google-review__name {
  font-size: 13px;
  line-height: 1.4;
  font-weight: var(--fw-bold);
  overflow-wrap: anywhere;
}

#testimonials .google-review__author .google-review__date {
  margin-top: 3px;
  color: #aeb4bf !important;
  font-size: 11px !important;
  font-weight: 400;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
}

@media (min-width: 640px) {
  #testimonials .google-reviews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px !important;
  }
}

@media (min-width: 1100px) {
  #testimonials .google-reviews {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
