.miralents-reviews {
  --mr-gap: 18px;
  --mr-visible: var(--mr-mobile, 1);
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 32px 0;
  color: #233247;
  font-family: inherit;
}

.miralents-reviews *,
.miralents-reviews *::before,
.miralents-reviews *::after { box-sizing: border-box; }

.miralents-reviews__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.miralents-reviews__heading h2 {
  margin: 0 0 4px;
  color: #183f5b;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  line-height: 1.25;
}

.miralents-reviews__heading p {
  margin: 0;
  color: #5b6977;
  font-size: .94rem;
}

.miralents-reviews__heading a,
.miralents-reviews__source {
  color: #245d7c;
  font-size: .85rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.miralents-reviews__heading a { flex: 0 0 auto; }

.miralents-reviews__viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.miralents-reviews__viewport::-webkit-scrollbar { display: none; }
.miralents-reviews__viewport:focus-visible,
.miralents-reviews button:focus-visible,
.miralents-reviews a:focus-visible { outline: 2px solid #245d7c; outline-offset: 3px; }

.miralents-reviews__track {
  display: flex;
  align-items: stretch;
  gap: var(--mr-gap);
}

.miralents-reviews__card {
  display: flex;
  flex: 0 0 calc((100% - (var(--mr-visible) - 1) * var(--mr-gap)) / var(--mr-visible));
  flex-direction: column;
  min-width: 0;
  min-height: 225px;
  padding: 22px;
  border: 1px solid #e4eaf0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 20px rgb(16 55 82 / 7%);
  scroll-snap-align: start;
}

.miralents-reviews__person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.miralents-reviews__avatar {
  display: block;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.miralents-reviews__avatar--fallback {
  display: grid;
  place-items: center;
  background: #e5f2f6;
  color: #21617d;
  font-size: 1.25rem;
  font-weight: 700;
}

.miralents-reviews__name {
  overflow-wrap: anywhere;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.miralents-reviews__stars {
  display: block;
  margin: 15px 0 12px;
  color: #c78616;
  font-size: 1.2rem;
  letter-spacing: .1em;
  line-height: 1;
  white-space: nowrap;
}

.miralents-reviews__comment {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow-wrap: anywhere;
  white-space: pre-line;
  line-height: 1.55;
}

.miralents-reviews__source { align-self: flex-start; margin-top: auto; padding-top: 16px; }

.miralents-reviews__navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  margin-top: 16px;
}

.miralents-reviews__arrow,
.miralents-reviews__dot {
  display: inline-grid;
  place-items: center;
  border: 1px solid #cadbe5;
  background: #fff;
  color: #245d7c;
  cursor: pointer;
}

.miralents-reviews__arrow { width: 40px; height: 40px; border-radius: 50%; font-size: 1.7rem; line-height: 1; }
.miralents-reviews__arrow:hover { background: #eaf4f8; }
.miralents-reviews__arrow:disabled { opacity: .4; cursor: default; }
.miralents-reviews__dots { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.miralents-reviews__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #b5c5cf; }
.miralents-reviews__dot[aria-current="true"] { width: 24px; border-radius: 8px; background: #245d7c; }
.miralents-reviews__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

@media (min-width: 768px) {
  .miralents-reviews { --mr-visible: var(--mr-tablet, 2); }
}

@media (min-width: 1100px) {
  .miralents-reviews { --mr-visible: var(--mr-desktop, 3); }
}

@media (max-width: 600px) {
  .miralents-reviews__heading { align-items: start; flex-direction: column; }
  .miralents-reviews__card { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .miralents-reviews__viewport { scroll-behavior: auto; }
}
