.em-reviews {
  position: relative;
  margin: 8px 0 28px;
}
.em-reviews__empty {
  color: #666;
  font-style: italic;
  padding: 20px 0;
  text-align: center;
}
.em-reviews__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 2px 12px;
}
.em-reviews__track::-webkit-scrollbar {
  display: none;
}
.em-review-card {
  flex: 0 0 calc((100% - 32px) / 3);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.em-review-card__head {
  margin-bottom: 12px;
}
.em-review-card__date {
  display: block;
  font-size: 13px;
  color: #888;
  font-weight: 500;
  margin-bottom: 10px;
}
.em-stars {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  vertical-align: middle;
}
.em-star {
  display: block;
  flex-shrink: 0;
}
.em-review-card__body {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  flex: 1 1 auto;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
}
.em-review-card__body.is-clamped {
  cursor: pointer;
}
.em-review-toggle {
  margin-top: 10px;
  align-self: flex-start;
  background: none;
  border: none;
  color: #566342;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}
.em-review-toggle:hover {
  color: #3d4a2e;
  text-decoration: underline;
}
.em-review-card__src {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #566342;
  text-decoration: none;
}
.em-review-card__src:hover {
  text-decoration: underline;
}
.em-reviews__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}
.em-reviews__nav[hidden] {
  display: none;
}
.em-reviews__prev,
.em-reviews__next {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #d5d5d5;
  background: #fff;
  color: #566342;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.em-reviews__prev:hover,
.em-reviews__next:hover {
  border-color: #566342;
  background: #f4f5f2;
}
.em-reviews__prev:disabled,
.em-reviews__next:disabled {
  opacity: 0.35;
  cursor: default;
}
.em-reviews__page {
  font-size: 13px;
  font-weight: 600;
  color: #566342;
  min-width: 64px;
  text-align: center;
}
.em-reviews-vendor {
  margin: 36px 0 12px;
  padding-top: 8px;
  border-top: 1px solid #e7ded6;
}
.em-reviews-vendor__title {
  font-family: "The Seasons", serif;
  font-size: 28px;
  font-weight: 700;
  color: #1e1f1a;
  margin: 0 0 8px;
}
.em-reviews-vendor__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #555;
  font-size: 15px;
  margin: 0 0 16px;
}

.em-review-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.em-review-modal[hidden] {
  display: none;
}
.em-review-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 31, 26, 0.45);
}
.em-review-modal__box {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  max-width: 560px;
  width: 100%;
  max-height: min(80vh, 640px);
  overflow: auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}
.em-review-modal__date {
  font-size: 13px;
  color: #888;
  display: block;
  margin-bottom: 8px;
}
.em-review-modal__body {
  font-size: 15px;
  color: #555;
  line-height: 1.65;
  white-space: pre-wrap;
  margin: 12px 0 0;
}
.em-review-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #758063;
}

@media (max-width: 1023px) {
  .em-review-card {
    flex-basis: calc((100% - 16px) / 2);
  }
}
@media (max-width: 767px) {
  .em-review-card {
    flex-basis: 100%;
    min-height: 240px;
  }
  .em-reviews-vendor__title {
    font-size: 22px;
  }
}
