/* Google Reviews Widget - Based on eapps design */
.fob-google-reviews-widget {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  max-width: 100%;
  margin: 40px auto;
  padding: 0;
  background: #fff;
}

/* ===== Converted from public/css/google-reviews.css =====
   Keep this block as source of truth for testimonial layout customizations. */
.fob-google-reviews-widget.fob-gr-testimonials {
  --fob-gr-text: #3d4542;
  --fob-gr-muted: #9ca3af;
  --fob-gr-title: #152a20;
  --fob-gr-border: #e8e8e8;
  --fob-gr-star: #e6b422;
  --fob-gr-star-empty: #e5e7eb;
  background: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 2rem auto;
  max-width: 100%;
  padding: 0;
}

.fob-gr-testimonials .fob-gr-section-head {
  align-items: center;
  display: flex;
  justify-content: center;
  margin-bottom: 70px;
  position: relative;
}

.fob-gr-testimonials .fob-gr-section-head--no-nav {
  padding-left: 0;
  padding-right: 0;
}

.fob-gr-testimonials .fob-gr-section-title {
  margin-bottom: 0;
  text-align: center;
  font-weight: 700;
}

.fob-gr-testimonials .fob-gr-layout {
  position: relative;
}

.fob-gr-testimonials .fob-gr-nav--head {
  align-items: stretch;
  background: transparent;
  border: 1px solid rgba(26, 46, 38, 0.24);
  border-radius: 9999px;
  box-shadow: none;
  display: flex;
  gap: 0;
  justify-content: center;
  margin: 20px auto 0;
  overflow: hidden;
  padding: 0;
  position: static;
  transform: none;
  width: -moz-fit-content;
  width: fit-content;
  z-index: 2;
}

@media (min-width: 576px) {
  .fob-gr-testimonials .fob-gr-nav--head {
    display: inline-flex;
    margin: 0;
    position: absolute;
    right: 15px;
    top: 60px;
    width: auto;
  }
}
.fob-gr-testimonials .fob-gr-dots--hidden {
  display: none !important;
  height: 0;
  margin: 0;
  overflow: hidden;
  padding: 0;
  width: 0;
}

.fob-gr-testimonials .fob-gr-nav--head .fob-gr-nav-button {
  align-items: center;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #0b3127;
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  height: 50px;
  justify-content: center;
  min-height: 50px;
  min-width: 56px;
  padding: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
  width: 56px;
}

.fob-gr-testimonials .fob-gr-nav--head .fob-gr-next {
  border-left: 1px solid rgba(26, 46, 38, 0.24);
}

.fob-gr-testimonials .fob-gr-nav--head .fob-gr-nav-button:hover:not(:disabled) {
  background: rgba(26, 46, 38, 0.08);
  color: #0b3127 !important;
}

.fob-gr-testimonials .fob-gr-nav--head .fob-gr-nav-button:disabled,
.fob-gr-testimonials .fob-gr-nav--head .fob-gr-nav-button.swiper-button-disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.fob-gr-testimonials .fob-gr-nav--head .fob-gr-nav-button .icon,
.fob-gr-testimonials .fob-gr-nav--head .fob-gr-nav-button svg {
  height: 24px;
  width: 24px;
}

.fob-gr-testimonials .fob-gr-nav--head .fob-gr-nav-button .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: #0b3127 !important;
}

.fob-gr-testimonials .fob-gr-reviews-container {
  background: transparent;
  margin: 0 auto;
}

.fob-gr-testimonials .fob-gr-carousel-wrapper {
  overflow: hidden;
  position: relative;
}

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

.fob-gr-testimonials .fob-gr-grid-wrapper {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
  .fob-gr-testimonials .fob-gr-grid-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .fob-gr-testimonials .fob-gr-grid-wrapper {
    grid-template-columns: repeat(var(--reviews-per-row, 3), 1fr);
  }
}
.fob-gr-testimonials .fob-gr-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fob-gr-testimonials .fob-gr-review-card {
  background: #fff;
  border: 1px solid var(--fob-gr-border);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  padding: 22px 24px;
}

.fob-gr-testimonials .fob-gr-carousel-wrapper .fob-gr-review-card {
  min-width: 100%;
}

.fob-gr-testimonials .fob-gr-grid-wrapper .fob-gr-review-card,
.fob-gr-testimonials .fob-gr-list-wrapper .fob-gr-review-card {
  height: auto;
  min-width: 0;
  width: 100%;
}

.fob-gr-testimonials .fob-gr-card-top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.fob-gr-testimonials .fob-gr-review-header {
  align-items: flex-start;
  display: flex;
  flex: 1;
  gap: 14px;
  margin: 0;
  min-width: 0;
}

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

.fob-gr-testimonials .fob-gr-reviewer-avatar--placeholder {
  align-items: center;
  background: linear-gradient(135deg, #5b6d8a 0%, #3d4f6b 100%);
  color: #fff;
  display: flex;
  font-size: 18px;
  font-weight: 600;
  justify-content: center;
}

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

.fob-gr-testimonials .fob-gr-reviewer-name {
  color: var(--fob-gr-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fob-gr-testimonials .fob-gr-review-date {
  color: var(--fob-gr-muted);
  display: block;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.fob-gr-testimonials .fob-gr-card-google {
  flex-shrink: 0;
  line-height: 0;
  margin-left: 8px;
  opacity: 0.95;
  transition: opacity 0.2s;
}

.fob-gr-testimonials .fob-gr-card-google:hover {
  opacity: 1;
}

.fob-gr-testimonials .fob-gr-card-google-svg {
  display: block;
  height: 22px;
  width: 22px;
}

.fob-gr-testimonials .fob-gr-review-stars-row {
  display: flex;
  gap: 2px;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 12px;
}

.fob-gr-testimonials .fob-gr-review-star {
  color: var(--fob-gr-star);
  font-size: 1.05rem;
}

.fob-gr-testimonials .fob-gr-review-star.empty {
  color: var(--fob-gr-star-empty);
}

.fob-gr-testimonials .fob-gr-review-text {
  color: var(--fob-gr-text);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.fob-gr-testimonials .fob-gr-review-text.has-more {
  max-height: 120px;
  overflow: hidden;
  position: relative;
}

.fob-gr-testimonials .fob-gr-review-text.has-more::after {
  background: linear-gradient(180deg, transparent, #fff);
  bottom: 0;
  content: "";
  height: 40px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.fob-gr-testimonials .fob-gr-read-more {
  background: none;
  border: none;
  color: #2563eb;
  cursor: pointer;
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 8px;
  padding: 0;
  text-decoration: none;
}

.fob-gr-testimonials .fob-gr-read-more:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .fob-gr-testimonials .fob-gr-carousel-wrapper .fob-gr-review-card {
    min-width: calc(50% - 10px);
  }
}
@media (min-width: 1024px) {
  .fob-gr-testimonials .fob-gr-carousel-wrapper .fob-gr-review-card {
    min-width: calc(33.333% - 14px);
  }
}
@media (min-width: 1280px) {
  .fob-gr-testimonials .fob-gr-carousel-wrapper .fob-gr-review-card {
    min-width: calc(25% - 15px);
  }
}
/* 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 {
  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: #fff;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* 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, #fff);
}

.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-radius: 50%;
  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: #f8f9fa;
  border-color: #5f6368;
}
.fob-gr-nav-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.fob-gr-nav-button svg {
  width: 20px;
  height: 20px;
}

.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: #1a73e8;
  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;
}
