.zpt-grl {
  --repocean-bg: #f6f6f6;
  --repocean-border: #f6f6f6;
  --repocean-radius: 12px;
  --star-color: #f6bb06;
  --empty-star-color: #e0e0e0;
  width: 100%;
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 0 15px;
  color: #000;
}

.zpt-grl * {
  box-sizing: border-box;
}

.zpt-grl img {
  height: auto;
  max-width: 100%;
}

.zpt-grl p,
.zpt-grl h3 {
  margin: 0;
}

.zpt-grl__summary {
  text-align: center;
  padding-bottom: 20px;
}

.zpt-grl__logo {
  display: block;
  width: 96px;
  height: auto;
  margin: 0 auto 8px;
}

.zpt-grl__score {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.zpt-grl__score strong {
  color: #000;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.zpt-grl__stars {
  display: inline-flex;
  align-items: center;
}

.zpt-grl__stars-bar {
  --rating: 5;
  --star-size: 17px;
  display: inline-block;
  position: relative;
  width: calc(var(--star-size) * 5);
  height: var(--star-size);
  overflow: hidden;
  font-size: var(--star-size);
  line-height: 1;
  letter-spacing: 0;
}

.zpt-grl__stars-bar::after,
.zpt-grl__stars-bar::before {
  content: "★★★★★";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  height: var(--star-size);
  white-space: nowrap;
}

.zpt-grl__stars-bar::after {
  display: none;
}

.zpt-grl__stars-bar::before {
  width: auto;
  color: var(--star-color);
  z-index: 1;
  overflow: visible;
}

.zpt-grl__summary .zpt-grl__stars-bar {
  --star-size: 30px;
}

.zpt-grl__count {
  margin: 0;
  padding-top: 6px;
  color: #000;
  font-size: 14px;
  text-align: center;
}

.zpt-grl__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 5px 0;
}

.zpt-grl__viewport::-webkit-scrollbar {
  display: none;
}

.zpt-grl__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(305px, 1fr);
  gap: 16px;
  align-items: stretch;
}

.zpt-grl__card {
  min-height: 225px;
  scroll-snap-align: start;
  padding: 20px;
  background: var(--repocean-bg);
  border: 1px solid var(--repocean-border);
  border-radius: var(--repocean-radius);
  transform: translate(0);
  transition: 400ms all;
}

.zpt-grl__card:hover {
  transform: translate(0, -5px);
}

.zpt-grl__card-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.zpt-grl__avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  object-fit: cover;
  background: #fff;
}

.zpt-grl__card-head > div {
  flex: 1;
  min-width: 0;
}

.zpt-grl__name {
  color: #000;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2px;
}

.zpt-grl__date {
  color: #474747;
  font-size: 12px;
  line-height: 1.35;
}

.zpt-grl__google {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: block;
}

.zpt-grl__card-stars {
  margin-top: 15px;
  margin-bottom: 8px;
  text-align: left;
}

.zpt-grl__text {
  color: #000;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: break-word;
  word-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zpt-grl__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.zpt-grl__nav {
  all: unset;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: #5f6368;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s ease;
  font-size: 22px;
  line-height: 1;
}

.zpt-grl__nav:hover,
.zpt-grl__nav:focus {
  background-color: #4d4d4d;
  outline-color: #424242;
  color: #fff;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.zpt-grl__review-link {
  display: inline-block;
  background-color: #e00;
  padding: 9.5px 13.5px;
  border-radius: 4px;
  border: 1px solid #e00;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
}

.zpt-grl__review-link:hover,
.zpt-grl__review-link:focus {
  background-color: #c40000;
  border-color: #c40000;
  color: #fff;
}

@media (min-width: 900px) {
  .zpt-grl__track {
    grid-auto-columns: calc((100% - 32px) / 3);
  }
}

@media (max-width: 767px) {
  .zpt-grl {
    margin-top: 22px;
    padding: 0 15px;
  }

  .zpt-grl__track {
    grid-auto-columns: minmax(300px, 88vw);
    gap: 12px;
  }

  .zpt-grl__card {
    min-height: 220px;
  }

  .zpt-grl__summary .zpt-grl__stars-bar {
    --star-size: 24px;
  }
}
