.ag-google-reviews {
  width: 100%;
  max-width: 100%;
  margin: 30px 0;
  padding: 0;
  font-family: inherit;
  content-visibility: auto;
  contain-intrinsic-size: auto 200px;
}

.ag-google-reviews__section-title {
  margin: 0 0 24px;
  color: #050505;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0;
}

.ag-google-reviews__content {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.ag-google-reviews__summary {
  flex: 0 0 260px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ag-google-reviews__profile-link {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
}

.ag-google-reviews__profile-link:hover,
.ag-google-reviews__profile-link:focus {
  text-decoration: none;
}

.ag-google-reviews__brand {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
  color: #000;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
}

.ag-google-reviews__google {
  font-size: 28px;
  font-weight: 500;
}

.ag-google-reviews__google span:nth-child(1),
.ag-google-reviews__google span:nth-child(4) { color: #4285f4; }
.ag-google-reviews__google span:nth-child(2),
.ag-google-reviews__google span:nth-child(6) { color: #ea4335; }
.ag-google-reviews__google span:nth-child(3) { color: #fbbc05; }
.ag-google-reviews__google span:nth-child(5) { color: #34a853; }

.ag-google-reviews__score {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #000;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
}

.ag-google-reviews__total,
.ag-google-reviews__eyebrow {
  color: #7a7f8a;
  font-size: 14px;
  font-weight: 400;
}

.ag-google-reviews__eyebrow {
  margin: 8px 0 0;
  line-height: 1.35;
}

.ag-google-reviews__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 24px;
  padding: 0 16px;
  border-radius: 6px;
  background: #1a73e8;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.ag-google-reviews__button:hover,
.ag-google-reviews__button:focus {
  background: #155fc0;
  color: #fff !important;
  text-decoration: none;
}

.ag-google-reviews__stars,
.ag-google-review__stars {
  color: #fbbc04;
  letter-spacing: 0;
}

.ag-google-reviews__slider {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ag-google-reviews__viewport {
  flex: 1 1 0;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.ag-google-reviews__viewport::-webkit-scrollbar {
  display: none;
}

.ag-google-reviews__grid {
  display: flex;
  gap: 16px;
}

.ag-google-review {
  flex: 0 0 calc((100% - 48px) / 4); /* 4 cards visible default */
  padding: 20px;
  border: 0;
  border-radius: 8px;
  background: #f8f9fa;
  box-shadow: none;
  overflow: hidden;
  scroll-snap-align: start;
}

.ag-google-reviews__nav {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #8a8a8a;
  color: #fff;
  font-size: 34px;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
}

.ag-google-reviews__nav:hover,
.ag-google-reviews__nav:focus {
  background: #686868;
}

.ag-google-reviews__dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 14px;
  min-height: 7px;
}

.ag-google-reviews__dot {
  width: 5px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b8b8b8;
  cursor: pointer;
}

.ag-google-reviews__dot.is-active {
  width: 7px;
  height: 7px;
  background: #333;
}

.ag-google-review__top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.ag-google-review__meta {
  min-width: 0;
}

.ag-google-review__avatar {
  position: relative;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #8090a0;
  color: #fff;
  font-size: 19px;
  line-height: 38px;
  text-align: center;
  font-weight: 700;
}

.ag-google-review__avatar span {
  position: absolute;
  right: -2px;
  bottom: -5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  color: #4285f4;
  font-size: 15px;
  line-height: 20px;
  font-weight: 800;
}

.ag-google-review__author {
  display: block;
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  color: #202124;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
}

.ag-google-review__verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 3px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  font-size: 10px;
  vertical-align: 1px;
}

.ag-google-review__date {
  margin-top: 4px;
  color: #7b7f87;
  font-size: 11px;
}

.ag-google-review__stars {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1;
}

.ag-google-review__text {
  margin: 0;
  color: #202124;
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ag-google-review.is-expanded .ag-google-review__text {
  display: block;
  overflow: visible;
}

.ag-google-review__more {
  display: inline-flex;
  margin-top: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #06f;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.ag-google-review__more[hidden] {
  display: none;
}

.ag-google-review__more:hover,
.ag-google-review__more:focus {
  color: #004ecc;
  text-decoration: underline;
}

@media (max-width: 1199px) {
  .ag-google-review {
    flex: 0 0 calc((100% - 32px) / 3);
  }
}

@media (max-width: 991px) {
  .ag-google-reviews__content {
    gap: 16px;
  }
  .ag-google-reviews__summary {
    flex-basis: 220px;
    padding: 16px;
  }
  .ag-google-review {
    flex: 0 0 calc((100% - 16px) / 2);
  }
}

@media (max-width: 767px) {
  .ag-google-reviews__content {
    flex-direction: column;
  }
  .ag-google-reviews__summary {
    flex-basis: auto;
    text-align: center;
  }
  .ag-google-reviews__brand,
  .ag-google-reviews__score {
    justify-content: center;
  }
  .ag-google-review {
    flex: 0 0 100%;
  }
}

/* --- BADGE STYLES --- */
.ag-google-reviews-badge {
  display: table;
  align-items: center;
  font-family: inherit;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 10px auto;
  max-width: 100%;
}

.ag-google-reviews-badge:hover {
  transform: translateY(-2px);
}

.ag-google-reviews-badge--light {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 8px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ag-google-reviews-badge--light:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.ag-google-reviews-badge--light .ag-google-reviews-badge__logo {
  display: flex;
  flex: 0 0 100%;
  justify-content: center;
}

.ag-google-reviews-badge--light .ag-google-reviews-badge__content {
  display: flex;
  align-items: center;
}

.ag-google-reviews-badge--light .ag-google-reviews-badge__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.ag-google-reviews-badge--light .ag-google-reviews-badge__rating {
  font-weight: 700;
  color: #202124;
  font-size: 16px;
}

.ag-google-reviews-badge--light .ag-google-reviews-badge__text {
  flex: 0 0 100%;
  color: #5f6368;
  font-size: 14px;
  text-align: center;
}

.ag-google-reviews-badge--dark {
  background: transparent;
  padding: 5px 0;
}

.ag-google-reviews-badge--dark .ag-google-reviews-badge__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ag-google-reviews-badge--dark .ag-google-reviews-badge__title {
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ag-google-reviews-badge--dark .ag-google-reviews-badge__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ag-google-reviews-badge--dark .ag-google-reviews-badge__text {
  color: #ffffff;
  font-size: 14px;
  opacity: 0.9;
}

.ag-google-reviews-badge__stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* --- BADGE POSITION SLOTS --- */
.ag-gr-badge-slot {
  margin: 10px 0;
}

.ag-gr-badge-slot--right {
  text-align: right;
}

/* --- AVATAR IMAGE --- */
.ag-google-review__avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* --- OWNER REPLY --- */
.ag-google-review__reply {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  background: #f5f6f7;
  border-left: 3px solid #1a73e8;
  border-radius: 0 6px 6px 0;
}

.ag-google-review.is-expanded .ag-google-review__reply {
  display: block;
}

.ag-google-review__reply-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.ag-google-review__reply-title {
  color: #1a73e8;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ag-google-review__reply-date {
  color: #7b7f87;
  font-size: 11px;
}

.ag-google-review__reply-text {
  margin: 0;
  color: #202124;
  font-size: 13px;
  line-height: 1.4;
}
