.kzgr-block {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 15px;
  box-sizing: border-box;
}
.kzgr-block *,
.kzgr-block *::before,
.kzgr-block *::after {
  box-sizing: border-box;
}

.kzgr-header {
  text-align: center;
  margin-bottom: 24px;
}
.kzgr-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 10px;
}
.kzgr-overall-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
}
.kzgr-rating-value {
  font-weight: 700;
}
.kzgr-rating-count {
  color: #666;
}
.kzgr-google-link {
  margin-left: 8px;
  text-decoration: underline;
  color: inherit;
}

.kzgr-stars {
  color: #fbbc04;
  font-size: 18px;
  letter-spacing: 1px;
}
.kzgr-stars-small {
  font-size: 13px;
}
.kzgr-star-empty {
  color: #d9d9d9;
}

.kzgr-track-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.kzgr-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch; /* momentum scrolling on iOS */
  width: 100%;
  /* Hide the scrollbar visually - the track stays scrollable (mouse drag,
     touch swipe, and the prev/next buttons all still work), it just looks
     like a clean carousel instead of showing a plain browser scrollbar. */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* old Edge/IE */
}
.kzgr-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, newer Edge */
}

.kzgr-style-carousel .kzgr-card {
  scroll-snap-align: start;
}

.kzgr-style-grid .kzgr-track {
  flex-wrap: wrap;
  overflow: visible;
}
.kzgr-style-grid .kzgr-card {
  flex: 1 1 280px;
}

.kzgr-style-carousel .kzgr-card {
  flex: 0 0 300px;
}

.kzgr-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kzgr-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kzgr-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.kzgr-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1a33c;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
}

.kzgr-author-info {
  display: flex;
  flex-direction: column;
}
.kzgr-author-name {
  font-weight: 600;
  font-size: 14px;
}

.kzgr-review-text {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kzgr-review-date {
  font-size: 12px;
  color: #999;
}

.kzgr-nav {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.kzgr-nav:hover {
  background: #f5f5f5;
}
.kzgr-prev {
  margin-right: 10px;
}
.kzgr-next {
  margin-left: 10px;
}

.kzgr-cta {
  text-align: center;
  margin-top: 24px;
}
.kzgr-cta-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 24px;
  background: #4285f4;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s ease-in-out;
}
.kzgr-cta-btn:hover,
.kzgr-cta-btn:focus {
  background: #3367d6;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 767px) {
  .kzgr-style-carousel .kzgr-card {
    flex: 0 0 85%;
  }
  /* Arrows stay visible on mobile (in addition to swipe) since without them
     there was no way at all to reach the other reviews on a touch device. */
  .kzgr-nav {
    width: 32px;
    height: 32px;
  }
  .kzgr-prev {
    margin-right: 6px;
  }
  .kzgr-next {
    margin-left: 6px;
  }
}
