/* ============================================================
   Google Reviews Widget — google-reviews-widget.css
   ============================================================ */

/* Google font */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&display=swap');

.grw-wrapper {
  font-family: 'DM Sans', sans-serif;
  /* max-width: 1200px; */
  margin: 0 auto 40px;
}

/* ── Header ──────────────────────────────────────────────── */
.grw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  flex-wrap: wrap;
  gap: 12px;
}

.grw-logo-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.grw-google-logo { display: block; }

.grw-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #202124;
}

.grw-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.grw-avg {
  font-size: 2rem;
  font-weight: 700;
  color: #202124;
  line-height: 1;
}

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

.grw-star {
  width: 20px;
  height: 20px;
}
.grw-star.full  { fill: #FBBC05; }
.grw-star.half  { fill: url(#half); }
.grw-star.empty { fill: #dadce0; }

.grw-count {
  font-size: 0.9rem;
  color: #5f6368;
}

.grw-cta-btn {
  display: inline-block;
  background: #1a73e8;
  color: #fff !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 50px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.grw-cta-btn:hover {
  background: #1557b0;
  transform: translateY(-1px);
}

/* ── Cards ───────────────────────────────────────────────── */
.grw-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.grw-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.grw-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.grw-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.grw-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.grw-avatar-fallback {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grw-g-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 22px!important;
  height: 22px!important;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #fff;
  object-fit: contain;
}
.owl-theme .owl-nav{
  position: relative;
}
a.grw-read-more {
    display: block;
    margin: 0px;
}
.grw-wrapper .owl-nav button.owl-prev {
    position: absolute;
    left: -46px;
    top: -177px;
}
.grw-wrapper .owl-nav button.owl-next {
    position: absolute;
    right: -46px;
    top: -177px;
}
.grw-card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.grw-author {
  font-size: 0.9rem;
  font-weight: 600;
  color: #202124 !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.grw-author:hover { color: #1a73e8 !important; }

.grw-verified { flex-shrink: 0; }

.grw-time {
  font-size: 0.78rem;
  color: #5f6368;
}

.grw-card-stars {
  display: flex;
  gap: 2px;
}
.grw-card-stars .grw-star {
  width: 18px;
  height: 18px;
}

.grw-card-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #3c4043;
  margin: 0;
  flex: 1;
}

.grw-read-more {
  color: #1a73e8 !important;
  text-decoration: none !important;
  font-weight: 500;
  margin-left: 4px;
}
.grw-read-more:hover { text-decoration: underline !important; }

/* ── Owl Carousel overrides ──────────────────────────────── */
.grw-wrapper .owl-carousel .owl-item {
  padding: 8px 6px 16px;
}

.grw-wrapper .owl-nav button.owl-prev,
.grw-wrapper .owl-nav button.owl-next {
  width: 40px;
  height: 40px;
  background: #fff !important;
  border: 1px solid #dadce0 !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.grw-wrapper .owl-nav button:hover {
  background: #f1f3f4 !important;
}
.grw-wrapper .owl-nav button span {
  font-size: 1.2rem;
  line-height: 1;
  color: #5f6368;
  margin-top: -2px;
}

.grw-wrapper .owl-dots .owl-dot span {
  background: #dadce0 !important;
  width: 8px;
  height: 8px;
  border-radius: 50% !important;
}
.grw-wrapper .owl-dots .owl-dot.active span {
  background: #1a73e8 !important;
}

/* ── Error / empty states ────────────────────────────────── */
.grw-error,
.grw-no-reviews {
  text-align: center;
  color: #5f6368;
  padding: 24px;
  font-size: 0.9rem;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .grw-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .grw-avg { font-size: 1.6rem; }
  .grw-cta-btn { width: 100%; text-align: center; }
}
