.mrs-reviews {
  --mrs-border: #eef0f4;
  --mrs-card: #ffffff;
  --mrs-muted: #667085;
  --mrs-soft: #f7f7f8;
  --mrs-star: #f5bd25;
  color: #111827;
}

.mrs-summary {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.mrs-summary strong {
  font-size: 18px;
}

.mrs-all-reviews {
  color: #d1182b;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mrs-stars {
    color: var(--mrs-star);
    letter-spacing: 0;
    white-space: nowrap;
    font-size: 1.5em;
    line-height: 1em;
    position: relative;
    top: -2px;
}

.mrs-items {
  display: grid;
  gap: 16px;
}

.mrs-layout-grid .mrs-items {
  grid-template-columns: repeat(var(--mrs-columns, 2), minmax(0, 1fr));
}

.mrs-layout-list .mrs-items {
  grid-template-columns: 1fr;
}

.mrs-layout-slider .mrs-items {
  display: flex;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.mrs-layout-slider .mrs-review {
  flex: 0 0 min(86vw, 420px);
  scroll-snap-align: start;
}

.mrs-review {
  background: var(--mrs-card);
  border: 1px solid var(--mrs-border);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.04);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 164px;
  padding: 22px 24px;
}

.mrs-rating {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.mrs-badge {
  background: var(--mrs-soft);
  border-radius: 999px;
  color: var(--mrs-muted);
  font-size: 12px;
  padding: 4px 9px;
  text-transform: capitalize;
}

.mrs-review-text {
  color: var(--mrs-muted);
  font-size: 14px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.7;
  margin: 0;
}

.mrs-review footer {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.mrs-avatar {
  align-items: center;
  background: #fff4df;
  border-radius: 999px;
  color: #d39222;
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 13px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.mrs-person {
  display: grid;
  gap: 3px;
}

.mrs-author {
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.mrs-person time {
  color: var(--mrs-muted);
  font-size: 12px;
}

.mrs-empty {
  color: var(--mrs-muted);
}

.mrs-trust-summary {
  align-items: stretch;
  border-radius: 0;
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  max-width: 520px;
  overflow: hidden;
}

.mrs-trust-dark {
  background: #102144;
  color: #ffffff;
}

.mrs-trust-light {
  background: #ffffff;
  border: 1px solid #eef0f4;
  color: #102144;
}

.mrs-trust-item {
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  position: relative;
}

.mrs-trust-item + .mrs-trust-item::before {
  background: rgba(255, 255, 255, 0.12);
  bottom: 14px;
  content: "";
  left: 0;
  position: absolute;
  top: 14px;
  width: 1px;
}

.mrs-trust-light .mrs-trust-item + .mrs-trust-item::before {
  background: #eef0f4;
}

.mrs-trust-item strong {
  font-size: 30px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.mrs-trust-item small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.2;
}

.mrs-trust-light .mrs-trust-item small {
  color: #667085;
}

@media (max-width: 900px) {
  .mrs-layout-grid .mrs-items {
    grid-template-columns: repeat(min(var(--mrs-columns, 2), 2), minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .mrs-trust-summary {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .mrs-trust-item + .mrs-trust-item::before {
    bottom: auto;
    height: 1px;
    left: 18px;
    right: 18px;
    top: 0;
    width: auto;
  }
}

@media (max-width: 640px) {
  .mrs-layout-grid .mrs-items {
    grid-template-columns: 1fr;
  }

  .mrs-review {
    border-radius: 14px;
    padding: 18px;
  }
}
