:root {
  --gr-bg-card: #f5f5f6;
  --gr-text-primary: #111827;
  --gr-text-body: #1f2937;
  --gr-text-muted: #6b7280;
  --gr-accent-blue: #0070f3;
  --gr-accent-blue-hover: #005ad1;
  --gr-link-blue: #1a73e8;
  --gr-verified-blue: #1d9bf0;
  --gr-star-filled: #fbbc04;
  --gr-star-empty: #d1d5db;
  --gr-radius: 12px;
  --gr-font:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.page-shell {
  max-width: 1180px;
  /* margin: 0 auto; */
}

/* ===========================
       GOOGLE REVIEWS WIDGET CSS
       =========================== */
.gr-widget {
  width: 100%;
  font-family: var(--gr-font);
}

/* Top Summary Header */
.gr-header {
  background: var(--gr-bg-card);
  border-radius: var(--gr-radius);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.gr-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gr-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gr-google-wordmark {
  height: 22px;
  width: auto;
  display: block;
}

.gr-brand-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gr-text-primary);
  letter-spacing: -0.01em;
}

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

.gr-score {
  font-size: 22px;
  font-weight: 700;
  color: var(--gr-text-primary);
  line-height: 1;
}

.gr-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.gr-total-count {
  font-size: 13px;
  color: var(--gr-text-muted);
  font-weight: 400;
}

.gr-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gr-accent-blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 9999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    transform 0.1s ease;
  white-space: nowrap;
  font-family: inherit;
}

.gr-cta-btn:hover {
  background: var(--gr-accent-blue-hover);
}

.gr-cta-btn:active {
  transform: scale(0.98);
}

/* Carousel Wrapper */
.gr-carousel-wrap {
  position: relative;
}

.gr-viewport {
  overflow: hidden;
  width: 100%;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.gr-viewport.is-dragging {
  cursor: grabbing;
}

.gr-track {
  display: flex;
  gap: 16px;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

/* Individual Review Card */
.gr-card {
  background: var(--gr-bg-card);
  border-radius: var(--gr-radius);
  padding: 20px;
  flex: 0 0 calc((100% - 48px) / 4);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

@media (max-width: 1024px) {
  .gr-card {
    flex: 0 0 calc((100% - 16px) / 2);
  }
}

@media (max-width: 600px) {
  .gr-card {
    flex: 0 0 100%;
  }
  .gr-header {
    padding: 16px;
  }
}

.gr-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.gr-avatar-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.gr-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 500;
  color: #ffffff;
  overflow: hidden;
  user-select: none;
}

.gr-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gr-google-badge {
  position: absolute;
  bottom: -2px;
  right: -3px;
  width: 17px;
  height: 17px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.gr-author-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.gr-author-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.gr-author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--gr-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gr-verified-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
}

.gr-date {
  font-size: 12px;
  color: var(--gr-text-muted);
}

.gr-card-stars {
  margin-bottom: 8px;
}

.gr-review-text {
  font-size: 13.5px;
  line-height: 1.48;
  color: var(--gr-text-body);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.gr-read-more {
  margin-top: 8px;
  background: none;
  border: none;
  padding: 0;
  color: var(--gr-link-blue);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  align-self: flex-start;
  font-family: inherit;
}

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

.gr-read-more[hidden] {
  display: none;
}

/* Carousel Arrow Buttons */
.gr-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #374151;
  z-index: 5;
  transition:
    background-color 0.15s ease,
    opacity 0.15s ease,
    transform 0.15s ease;
}

.gr-nav-btn:hover {
  background: #f9fafb;
  transform: translateY(-50%) scale(1.05);
}

.gr-nav-btn.gr-prev {
  left: -14px;
}

.gr-nav-btn.gr-next {
  right: -14px;
}

.gr-nav-btn[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .gr-nav-btn.gr-prev {
    left: 6px;
  }
  .gr-nav-btn.gr-next {
    right: 6px;
  }
}

/* Pagination Dots */
.gr-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
}

.gr-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #d1d5db;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.gr-dot.is-active {
  background: #1f2937;
  transform: scale(1.15);
}

/* ===========================
       SKELETON LOADING STATE
       =========================== */
@keyframes gr-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.gr-skeleton-box {
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: gr-shimmer 1.4s infinite linear;
  border-radius: 6px;
}

.gr-skeleton-circle {
  border-radius: 50%;
}

.gr-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .gr-skeleton-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gr-skeleton-grid .gr-card:nth-child(n + 3) {
    display: none;
  }
}

@media (max-width: 600px) {
  .gr-skeleton-grid {
    grid-template-columns: 1fr;
  }
  .gr-skeleton-grid .gr-card:nth-child(n + 2) {
    display: none;
  }
}

/* ===========================
       USER-FACING ERROR STATE
       =========================== */
.gr-error-card {
  background: var(--gr-bg-card);
  border-radius: var(--gr-radius);
  padding: 36px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.gr-error-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.gr-error-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gr-text-primary);
}

.gr-error-message {
  font-size: 13.5px;
  color: var(--gr-text-muted);
  max-width: 420px;
}

.gr-retry-btn {
  margin-top: 6px;
  background: var(--gr-accent-blue);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s ease;
}

.gr-retry-btn:hover {
  background: var(--gr-accent-blue-hover);
}

/* Read More Modal */
.gr-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.gr-modal-backdrop.is-open {
  display: flex;
}

.gr-modal {
  background: #ffffff;
  border-radius: 14px;
  max-width: 480px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  position: relative;
}

.gr-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  color: #374151;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gr-modal-close:hover {
  background: #e5e7eb;
}

.gr-modal-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--gr-text-body);
  margin-top: 10px;
  white-space: pre-line;
}
