/* Customer Reviews page ("Our Satisfied Brands").
   Loaded only on the Customer Reviews template — see
   elixirpackaging_reviews_page_assets() in functions.php. */

/* --- the wall of emails ------------------------------------------------ */
.rv-wall { padding: 40px 0 10px; }

/* Masonry. The screenshots run from 92px to 445px tall, so a row-aligned grid
   left big gaps under the short ones; CSS columns let each card sit directly
   under the one above it. Cards read down column one, then column two. */
.rv-grid {
  column-count: 2;
  column-gap: 26px;
}
.rv-card {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 26px;
  border: 1px solid #e6e8ef;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(20, 24, 40, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.rv-card:hover {
  border-color: #cfd6e6;
  box-shadow: 0 14px 34px rgba(20, 24, 40, 0.1);
  transform: translateY(-2px);
}

/* the screenshot, dressed as a small mail window */
.rv-card__shot {
  position: relative;
  display: block;
  padding: 30px 0 0;
  background: #f6f7fb;
  border-bottom: 1px solid #eef0f6;
}
.rv-card__shot img {
  display: block;
  width: 100%;
  height: auto;
  border-top: 1px solid #eef0f6;
}
.rv-card__chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 14px;
}
.rv-card__chrome i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d8dce8;
}
.rv-card__chrome i:first-child { background: #f0b9b0; }
.rv-card__chrome i:nth-child(2) { background: #f2d9a8; }
.rv-card__chrome i:nth-child(3) { background: #bcdcb4; }

.rv-card__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(35, 32, 88, 0.88);
  color: #fff;
  font-size: 0.85rem;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.rv-card:hover .rv-card__zoom,
.rv-card__shot:focus-visible .rv-card__zoom { opacity: 1; transform: scale(1); }

/* caption */
.rv-card__foot { padding: 16px 18px 18px; }
.rv-card__quote {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #2a2f3a;
  font-style: italic;
}
.rv-card__who {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: #232058;
}
.rv-card__avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef0fa;
  color: #232058;
  font-size: 0.78rem;
  font-weight: 700;
}

/* privacy note */
.rv-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 26px 0 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #6b7280;
}
.rv-note i { margin-top: 2px; color: #6bbc44; }

@media (max-width: 991.98px) {
  .rv-grid { column-count: 1; column-gap: 0; }
  .rv-card { margin-bottom: 20px; }
}
@media (max-width: 575.98px) {
  .rv-card__shot { padding-top: 26px; }
  .rv-card__chrome { height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .rv-card,
  .rv-card__zoom { transition: none; }
  .rv-card:hover { transform: none; }
}
