#google-reviews {
     margin-top:0;
}
.review-item {
     margin-bottom:10px;
}
.review-stars ul {
     display: inline-block;
     list-style: none;
     margin-bottom:0;
     margin-top:8px;
     line-height:22px;
}
.review-stars ul li {
     float: left;
     margin-right: 0;
}
.review-stars ul li i {
     color: #E4B248;
     font-size: 20px;
     font-style:normal;
}
.review-stars ul li i.inactive {
     color: #c6c6c6;
}
.star:after {
     content: "\2605";
}
.review-date {
     padding-left:10px;
}
.review-meta {
     font-size:1.2rem;
     float:left;
     font-weight:bold;
}
.review-stars {
     float:none;
}
.review-text {
     clear:both;
}

.review-card {
  background: #f6f7f8;       /* light grey panel */
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Header layout */
.review-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* Avatar */
.avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: white;
  background: #6b7280; /* fallback color */
  flex-shrink: 0;
  font-size: 16px;
}

/* Image inside avatar if available */
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fallback initials: we'll populate via JS from data-author */
.avatar-fallback {
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
}

/* meta (author + stars) */
.meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.author {
  font-weight: 700;
  font-size: 15px;
  color: #111827;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stars (two-layer technique for partial stars) */
.stars {
  position: relative;
  width: 110px; /* 5 * 22px star width roughly */
  height: 20px;
  display: block;
}

/* Review body */
.review-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Truncate to approx 3 lines */
.review-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #374151;
  overflow: hidden;
}

/* collapsed state: use line-clamp for modern browsers */
.review-text.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
}

/* subtle gradient at bottom when collapsed to indicate more text */
.review-text.collapsed::after {
  content: "";
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  background: linear-gradient(180deg, rgba(246,247,248,0) 0%, rgba(246,247,248,1) 60%);
}

/* Read toggle button */
.read-toggle {
  align-self: flex-start;
  background: transparent;
  border: none;
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin: 0;
  font-size: 13px;
}

/* When expanded, remove gradient */
.review-text.expanded {
  display: block;
}

/* small screens minor adjustments */
@media (max-width: 420px) {
  .star { width: 18px; height: 18px; }
  .stars { width: 100px; }
}