.emoh-reviews {
  --emoh-green: #245b49;
  --emoh-green-dark: #173f33;
  --emoh-green-soft: #f4f8f6;
  --emoh-border: #d7e3dd;
  --emoh-rating: #805800;
  max-width: 100%;
  margin: 2rem auto;
  color: #23342d;
}

.emoh-reviews,
.emoh-reviews * {
  box-sizing: border-box;
}

.emoh-reviews__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.emoh-reviews__header h2 {
  margin: 0;
  color: var(--emoh-green-dark);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.2;
}

.emoh-reviews__controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .5rem;
}

.emoh-reviews__position {
  margin-right: .25rem;
  color: #43564d;
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.emoh-reviews__controls button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: .55rem;
  place-items: center;
  border: 1px solid var(--emoh-green);
  border-radius: 50%;
  background: #fff;
  color: var(--emoh-green-dark);
  font: inherit;
  cursor: pointer;
}

.emoh-reviews__controls button:hover:not(:disabled) {
  background: var(--emoh-green-soft);
}

.emoh-reviews__controls button:disabled {
  border-color: #aebbb4;
  background: #f0f2f1;
  color: #66756d;
  cursor: not-allowed;
  opacity: .72;
}

.emoh-reviews__controls svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.emoh-reviews__viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.emoh-reviews__viewport::-webkit-scrollbar {
  display: none;
}

.emoh-reviews__track {
  display: grid;
  grid-auto-columns: calc((100% - 1rem) / 2);
  grid-auto-flow: column;
  gap: 1rem;
  align-items: stretch;
}

.emoh-review {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--emoh-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgb(23 63 51 / 7%);
  color: #23342d;
  scroll-snap-align: start;
}

.emoh-review__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

.emoh-review__author {
  margin: 0;
  color: var(--emoh-green-dark);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.emoh-review__rating {
  display: flex;
  flex: 0 0 auto;
  gap: .35rem;
  margin: 0;
  color: var(--emoh-rating);
  font-size: 1.05rem;
  letter-spacing: .04em;
  line-height: 1.3;
}

.emoh-review__rating-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.emoh-review__text {
  max-height: none;
  margin: 1.15rem 0 0;
  padding: 0;
  overflow: visible;
  border: 0;
  color: #394a42;
  font-size: 1rem;
  font-style: normal;
  line-height: 1.6;
  overflow-wrap: anywhere;
  quotes: none;
}

.emoh-review__text--collapsed {
  max-height: 9.6em;
  overflow: hidden;
}

.emoh-review__expand {
  align-self: flex-start;
  min-height: 2.75rem;
  margin: .25rem 0 0 -.5rem;
  padding: .5rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--emoh-green-dark);
  font: inherit;
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .15em;
  cursor: pointer;
}

.emoh-review__expand:hover {
  color: var(--emoh-green);
}

.emoh-review__meta {
  margin-top: auto;
  padding-top: 1.25rem;
}

.emoh-review__meta time,
.emoh-review__source {
  display: block;
  margin: 0;
  color: #596960;
  font-size: .875rem;
  line-height: 1.4;
}

.emoh-review__source {
  margin-top: .3rem;
  color: var(--emoh-green);
  font-weight: 600;
}

.emoh-reviews__google {
  margin: 1.25rem 0 0;
  font-size: .9375rem;
}

.emoh-reviews__google a {
  color: var(--emoh-green-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.emoh-reviews__google a:hover {
  color: var(--emoh-green);
}

.emoh-reviews button:focus-visible,
.emoh-reviews a:focus-visible,
.emoh-reviews__viewport:focus-visible {
  outline: 3px solid #155eef;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .emoh-reviews__header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .emoh-reviews__controls {
    margin-left: auto;
  }

  .emoh-reviews__track {
    grid-auto-columns: 100%;
  }

  .emoh-review {
    padding: 1.25rem;
  }
}

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