.roc-google-reviews {
  --roc-gr-primary: var(--e-global-color-primary, #061d3a);
  --roc-gr-surface: #f7f7f6;
  --roc-gr-text: #0b1f3d;
  --roc-gr-muted: #7d8591;
  --roc-gr-star: #f6b935;
  color: var(--roc-gr-text);
  font-family: var(--e-global-typography-text-font-family), system-ui, sans-serif;
}

.roc-gr-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.roc-gr-summary-card,
.roc-gr-header,
.roc-gr-review-card {
  background: var(--roc-gr-surface);
  border-radius: 8px;
}

.roc-gr-summary-card {
  display: flex;
  min-height: 320px;
  overflow: hidden;
  flex-direction: column;
}

.roc-gr-summary-image {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.roc-gr-summary-body {
  display: flex;
  min-height: 150px;
  flex: 1;
  flex-direction: column;
  padding: 15px;
}

.roc-gr-business {
  margin: 0;
  color: var(--roc-gr-primary);
  font-family: var(--e-global-typography-primary-font-family), system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.18;
}

.roc-gr-subtitle {
  margin: 4px 0 10px;
  color: var(--roc-gr-muted);
  font-size: 13px;
  font-style: italic;
  line-height: 1.2;
}

.roc-gr-summary-rating,
.roc-gr-header-rating {
  display: flex;
  gap: 10px;
  align-items: center;
}

.roc-gr-summary-rating strong,
.roc-gr-header-rating strong {
  color: #111;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.roc-gr-summary-rating span:not(.roc-gr-stars span) {
  color: var(--roc-gr-muted);
  font-size: 14px;
}

.roc-gr-stars {
  display: inline-flex;
  gap: 1px;
  color: var(--roc-gr-star);
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
}

.roc-gr-stars .is-empty {
  color: #d4d7dc;
}

.roc-gr-summary-actions {
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
  margin-top: auto;
}

.roc-gr-google-button,
.roc-gr-review-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #fff;
  background: var(--roc-gr-primary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.roc-gr-google-button {
  gap: 7px;
  min-height: 32px;
  padding: 0 14px;
}

.roc-gr-google-button span {
  color: #4285f4;
  font-weight: 800;
}

.roc-gr-all-link {
  color: var(--roc-gr-primary);
  font-size: 9px;
  text-decoration: none;
  white-space: nowrap;
}

.roc-gr-main {
  min-width: 0;
}

.roc-gr-header {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 12px 16px;
}

.roc-gr-header-rating strong {
  font-size: 30px;
}

.roc-gr-header-rating > div {
  display: grid;
  gap: 2px;
}

.roc-gr-header-rating > div > span {
  color: var(--roc-gr-muted);
  font-size: 10px;
  line-height: 1;
}

.roc-gr-google-word {
  color: #4285f4;
  font-weight: 700;
}

.roc-gr-review-button {
  min-height: 28px;
  padding: 0 22px;
}

.roc-gr-carousel {
  position: relative;
}

.roc-gr-track {
  display: grid;
  grid-auto-columns: calc((100% - 25px) / 4);
  grid-auto-flow: column;
  grid-template-rows: repeat(2, minmax(126px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 0px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.roc-gr-track::-webkit-scrollbar {
  display: none;
}

.roc-gr-review-card {
  min-width: 0;
  min-height: 126px;
  padding: 14px;
  scroll-snap-align: start;
}

.roc-gr-review-head {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.roc-gr-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.roc-gr-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--roc-gr-primary);
  font-size: 12px;
  font-weight: 700;
}

.roc-gr-review-meta {
  min-width: 0;
}

.roc-gr-review-meta strong {
  display: block;
  overflow: hidden;
  color: #141821;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roc-gr-review-meta span {
  display: block;
  color: var(--roc-gr-muted);
  font-size: 9px;
  line-height: 1.15;
}

.roc-gr-verified {
  display: inline-flex;
  width: 12px;
  height: 12px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: #1a73e8;
  font-size: 8px;
  font-weight: 700;
}

.roc-gr-review-card .roc-gr-stars {
  margin-bottom: 7px;
  font-size: 14px;
}

.roc-gr-review-text {
  display: -webkit-box;
  min-height: 44px;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: #2a2f37;
  font-size: 11px;
  line-height: 1.35;
}

.roc-gr-review-card.is-expanded .roc-gr-review-text {
  display: block;
  max-height: 86px;
  overflow-y: auto;
}

.roc-gr-read-more {
  margin: 3px 0 0;
  padding: 0;
  border: 0;
  color: var(--roc-gr-primary);
  background: transparent !important;
  box-shadow: none;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.roc-gr-nav {
  position: absolute;
  top: calc(50% - 14px);
  z-index: 2;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(110, 116, 126, 0.8);
  box-shadow: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.roc-gr-prev {
  left: -14px;
}

.roc-gr-next {
  right: -14px;
}

.roc-gr-dots {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 8px;
}

.roc-gr-dots button {
  width: 4px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
}

.roc-gr-dots button.is-active {
  background: var(--roc-gr-star);
}

.roc-google-reviews [hidden] {
  display: none !important;
}

.roc-google-reviews-notice {
  padding: 14px 16px;
  border-left: 4px solid #d63638;
  background: #fff;
  color: #1d2327;
}

@media (max-width: 1024px) {
  .roc-gr-layout {
    grid-template-columns: 1fr;
  }

  .roc-gr-summary-card {
    display: none;
  }

  .roc-gr-track {
    grid-auto-columns: minmax(230px, 78%);
    grid-template-rows: none;
  }
}

@media (max-width: 767px) {
  .roc-gr-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .roc-gr-review-button {
    width: 100%;
  }

  .roc-gr-nav {
    display: none;
  }
}
