/* Google Reviews Widget - Based on eapps design */
.fob-google-reviews-widget {
  max-width: 1650px;
  margin: 40px auto;
  padding: 0;
  background: #fff;
}

/* Header Section */
.fob-gr-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border-bottom: 1px solid #e8eaed;
}

.fob-gr-google-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.fob-gr-header-content {
  flex: 1;
}

.fob-gr-business-name {
  font-size: 18px;
  font-weight: 500;
  color: #202124;
  margin: 0 0 4px 0;
  line-height: 1.4;
}

.fob-gr-rating-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fob-gr-overall-rating {
  font-size: 16px;
  font-weight: 500;
  color: #202124;
}

.fob-gr-stars {
  display: flex;
  gap: 2px;
}

.fob-gr-star {
  color: #fbbc04;
  font-size: 16px;
  line-height: 1;
}
.fob-gr-star.empty {
  color: #dadce0;
}

.fob-gr-total-reviews {
  font-size: 14px;
  color: #5f6368;
}

.fob-gr-powered-by {
  font-size: 12px;
  color: #5f6368;
  margin-top: 4px;
}
.fob-gr-powered-by a {
  color: #1a73e8;
  text-decoration: none;
}
.fob-gr-powered-by a:hover {
  text-decoration: underline;
}

/* Reviews Container */
.fob-gr-reviews-container {
  position: relative;
  padding: 24px 24px 20px;
  background: #fff;
}

/* Carousel Layout */
.fob-gr-carousel-wrapper {
  overflow: hidden;
  position: relative;
}

.fob-gr-reviews-track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Grid Layout */
.fob-gr-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
}
@media (min-width: 768px) {
  .fob-gr-grid-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .fob-gr-grid-wrapper {
    grid-template-columns: repeat(var(--reviews-per-row, 3), 1fr);
  }
}

/* List Layout */
.fob-gr-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Review Card */
.fob-gr-review-card {
  background: #f2f2f2;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
}

/* Review Card in Carousel */
.fob-gr-carousel-wrapper .fob-gr-review-card {
  min-width: 100%;
}

/* Review Card in Grid */
.fob-gr-grid-wrapper .fob-gr-review-card {
  min-width: 0;
  height: 100%;
}

/* Review Card in List */
.fob-gr-list-wrapper .fob-gr-review-card {
  min-width: 0;
  width: 100%;
}

.fob-gr-review-header {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.fob-gr-reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  flex-shrink: 0;
  background: #e8eaed;
}

.fob-gr-reviewer-info {
  flex: 1;
  min-width: 0;
}

.fob-gr-reviewer-name {
  font-size: 14px;
  font-weight: 500;
  color: #202124;
  margin: 0 0 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fob-gr-review-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fob-gr-review-stars {
  display: flex;
  gap: 1px;
}

.fob-gr-review-star {
  color: #fbbc04;
  font-size: 14px;
  line-height: 1;
}
.fob-gr-review-star.empty {
  color: #dadce0;
}

.fob-gr-review-time {
  font-size: 12px;
  color: #5f6368;
}

.fob-gr-review-text {
  font-size: 14px;
  line-height: 1.6;
  color: #3c4043;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.fob-gr-review-text.has-more {
  max-height: 120px;
  overflow: hidden;
  position: relative;
}
.fob-gr-review-text.has-more::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, #f2f2f2);
}

.fob-gr-read-more {
  color: #1a73e8;
  font-size: 14px;
  font-weight: 500;
  background: none;
  border: none;
  padding: 8px 0 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.fob-gr-read-more:hover {
  text-decoration: underline;
}

/* Navigation Buttons */
.fob-gr-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 0 24px;
}

.fob-gr-nav-button {
  width: 40px;
  height: 40px;
  border: 1px solid #dadce0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}
.fob-gr-nav-button:hover:not(:disabled) {
  background: var(--color-1st);
  border-color: #f2f2f2;
}
.fob-gr-nav-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.fob-gr-nav-button svg {
  width: 20px;
  height: 20px;
  fill: #5f6368;
}
.fob-gr-nav-button:hover:not(:disabled) svg {
  fill: #fff;
}
.fob-gr-nav-button:hover:not(:disabled) svg path {
  fill: #f2f2f2;
  stroke: #fff;
}

.fob-gr-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.fob-gr-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dadce0;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  padding: 0;
}
.fob-gr-dot.active {
  background: var(--color-1st);
  width: 24px;
  border-radius: 4px;
}
.fob-gr-dot:hover {
  background: #5f6368;
}

/* Responsive - Carousel Only */
@media (min-width: 768px) {
  .fob-gr-carousel-wrapper .fob-gr-review-card {
    min-width: calc(50% - 8px);
  }
}
/* Responsive - Desktop */
@media (min-width: 1024px) {
  .fob-gr-carousel-wrapper .fob-gr-review-card {
    min-width: calc(33.333% - 11px);
  }
}
@media (min-width: 1280px) {
  .fob-gr-carousel-wrapper .fob-gr-review-card {
    min-width: calc(25% - 12px);
  }
}
/* Loading State */
.fob-gr-loading {
  text-align: center;
  padding: 40px;
  color: #5f6368;
}

.fob-gr-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e8eaed;
  border-top-color: #1a73e8;
  border-radius: 50%;
  animation: fob-gr-spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes fob-gr-spin {
  to {
    transform: rotate(360deg);
  }
}
/* Empty State */
.fob-gr-empty {
  text-align: center;
  padding: 60px 20px;
  color: #5f6368;
}

.fob-gr-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.fob-gr-empty-text {
  font-size: 16px;
  margin: 0;
}

/* View on Google Button */
.fob-gr-view-all {
  text-align: center;
  padding: 0 24px 24px;
}

.fob-gr-view-all-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.fob-gr-view-all-button:hover {
  background: #1765cc;
}
.fob-gr-view-all-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Accessibility */
.fob-gr-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Sidebar Widget Styles */
.fob-google-reviews-widget-sidebar {
  margin: 0 0 30px 0;
  padding: 20px;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 8px;
}
.fob-google-reviews-widget-sidebar .widget-title {
  font-size: 18px;
  font-weight: 600;
  color: #202124;
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #1a73e8;
}
.fob-google-reviews-widget-sidebar .gr-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8eaed;
}
.fob-google-reviews-widget-sidebar .gr-rating-number {
  font-size: 32px;
  font-weight: 600;
  color: #202124;
  line-height: 1;
}
.fob-google-reviews-widget-sidebar .gr-summary-details {
  flex: 1;
}
.fob-google-reviews-widget-sidebar .gr-stars-container {
  display: flex;
  gap: 2px;
  margin-bottom: 4px;
}
.fob-google-reviews-widget-sidebar .gr-star {
  color: #dadce0;
  font-size: 16px;
  line-height: 1;
}
.fob-google-reviews-widget-sidebar .gr-star.gr-star-filled {
  color: #fbbc04;
}
.fob-google-reviews-widget-sidebar .gr-star.gr-star-half {
  color: #fbbc04;
  opacity: 0.5;
}
.fob-google-reviews-widget-sidebar .gr-total-reviews {
  font-size: 12px;
  color: #5f6368;
}
.fob-google-reviews-widget-sidebar .gr-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fob-google-reviews-widget-sidebar .gr-review-card-sidebar {
  padding: 12px;
  background: #f8f9fa;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  min-width: auto;
}
.fob-google-reviews-widget-sidebar .gr-author-avatar {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
}
.fob-google-reviews-widget-sidebar .gr-author-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
}
.fob-google-reviews-widget-sidebar .gr-author-avatar .gr-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
}
.fob-google-reviews-widget-sidebar .gr-review-content {
  flex: 1;
}
.fob-google-reviews-widget-sidebar .gr-review-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.fob-google-reviews-widget-sidebar .gr-author-name {
  font-size: 14px;
  font-weight: 600;
  color: #202124;
  margin: 0;
}
.fob-google-reviews-widget-sidebar .gr-author-name a {
  color: #202124;
  text-decoration: none;
}
.fob-google-reviews-widget-sidebar .gr-author-name a:hover {
  color: #1a73e8;
}
.fob-google-reviews-widget-sidebar .gr-rating {
  display: flex;
  gap: 2px;
}
.fob-google-reviews-widget-sidebar .gr-star {
  font-size: 14px;
  line-height: 1;
}
.fob-google-reviews-widget-sidebar .gr-star.gr-star-filled {
  color: #fbbc04;
}
.fob-google-reviews-widget-sidebar .gr-review-text {
  font-size: 13px;
  line-height: 1.5;
  color: #3c4043;
  margin-bottom: 6px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.fob-google-reviews-widget-sidebar .gr-read-more {
  font-size: 13px;
  color: #1a73e8;
  text-decoration: none;
  font-weight: 500;
}
.fob-google-reviews-widget-sidebar .gr-read-more:hover {
  text-decoration: underline;
}
.fob-google-reviews-widget-sidebar .gr-review-date {
  font-size: 11px;
  color: #5f6368;
  margin-top: 4px;
}
