/* container stays as responsive grid */
.rwe-reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: 4rem 1.5rem;
  width: 100%;
}

/* review box */
.rwe-review {
  position: relative;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  padding-top: 5rem; /* space for the pop-out pic */
  display: flex;
  flex-direction: column;
}

/* profile picture pop-out */
.rwe-profile-pic {
  position: absolute;
  top: -40px;
  left: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  width: 80px;
  height: 80px;
  border: 3px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  background: #eee;
}
.rwe-profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* review text */
.rwe-review-content {
  flex: 1;
  margin-bottom: 1rem;
}

/* divider */
.rwe-divider {
  display: block !important;
  width: 100% !important;
  margin: 1rem 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-top: 1px solid #eee !important;
  height: 0 !important;
}

/* footer row */
.rwe-review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* reviewer details on left */
.rwe-reviewer-details {
  display: flex;
  flex-direction: column;
}

/* source line: text + icon */
.rwe-source-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}
.rwe-source-icon {
  height: 20px !important;
  width: auto !important;
  max-width: none !important;
}

/* stars icon on right */
.rwe-stars {
  width: auto;
  height: 24px;
}

/* mobile tweaks */
@media (max-width: 600px) {
  .rwe-review {
    padding: 0.75rem;
    padding-top: 2.5rem;
  }
  .rwe-profile-pic {
    top: -18px;
    left: 1rem !important;
    transform: none !important;
    width: 50px;
    height: 50px;
  }
  .rwe-stars {
    height: 20px;
  }
}