/* Google Review Widget - Modern Minimal Design */

.google-review-widget {
  max-width: 600px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.grw-header {
  text-align: center !important;
  margin-bottom: 24px;
  padding: 24px 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.grw-business-name {
  font-size: 22px;
  font-weight: 500;
  color: #202124;
  margin: 0 auto 16px auto;
  line-height: 1.2;
  display: inline-block;
  text-align: center !important;
}

.grw-rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.grw-rating-number {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
}

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

.grw-star {
  color: #fbbf24;
  font-size: 20px;
}

.grw-review-count {
  color: #6b7280;
  font-size: 14px;
}

.grw-carousel {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  min-height: 280px;
}

.grw-carousel-inner {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.grw-review-card {
  min-width: 100%;
  padding: 32px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.grw-review-card.active {
  opacity: 1;
}

.grw-review-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.grw-author-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #e5e7eb;
}

.grw-author-info {
  flex: 1;
}

.grw-author-name {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
  text-align: left !important;
  display: block;
}

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

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

.grw-review-star {
  color: #fbbf24;
  font-size: 14px;
}

.grw-review-time {
  color: #9ca3af;
  font-size: 13px;
}

.grw-review-text {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.grw-summary-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  gap: 16px;
}

.grw-summary-rating {
  display: flex;
  align-items: center;
  gap: 16px;
}

.grw-summary-score {
  font-size: 42px;
  font-weight: 700;
  color: #1f2937;
}

.grw-summary-name {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.grw-summary-count {
  font-size: 14px;
  color: #6b7280;
}

.grw-summary-link {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.grw-summary-link:hover {
  border-color: #1d4ed8;
  background: rgba(59, 130, 246, 0.08);
}

.grw-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.grw-nav-button {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 18px;
  color: #6b7280;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.grw-nav-button:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #1f2937;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.grw-nav-button:active {
  transform: scale(0.95);
}

.grw-dots {
  display: flex;
  gap: 8px;
}

.grw-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.2s ease;
}

.grw-dot.active {
  background: #3b82f6;
  width: 24px;
  border-radius: 4px;
}

.grw-loading {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
  font-size: 14px;
}

.grw-error {
  text-align: center;
  padding: 40px 20px;
  color: #ef4444;
  font-size: 14px;
  background: #fef2f2;
  border-radius: 12px;
  margin: 20px 0;
}

.grw-google-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.grw-google-badge:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.grw-google-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.grw-google-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.grw-google-verified {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.grw-google-authentic {
  font-size: 12px;
  color: #64748b;
  font-weight: 400;
}

.grw-demo .grw-header {
  text-align: center;
}

.grw-demo .grw-business-name {
  margin: 0 auto 16px auto;
  text-align: center;
  display: block;
  width: 100%;
}

.grw-demo .grw-rating-summary {
  justify-content: center;
}

.grw-view-all-link {
  color: #1a73e8;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin-left: auto;
  transition: color 0.2s;
}

.grw-view-all-link:hover {
  color: #1557b0;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 640px) {
  .google-review-widget {
    max-width: 100%;
  }
  
  .grw-header {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .grw-business-name {
    font-size: 18px;
  }
  
  .grw-rating-number {
    font-size: 24px;
  }
  
  .grw-rating-summary {
    gap: 8px;
  }
  
  .grw-stars {
    gap: 2px;
  }
  
  .grw-star {
    font-size: 16px;
  }
  
  .grw-review-count {
    font-size: 12px;
  }
  
  .grw-carousel {
    min-height: 240px;
  }
  
  .grw-review-card {
    padding: 20px 16px;
  }
  
  .grw-author-photo {
    width: 40px;
    height: 40px;
  }
  
  .grw-author-name {
    font-size: 14px;
  }
  
  .grw-review-text {
    font-size: 13px;
    line-height: 1.5;
  }
  
  .grw-review-stars {
    gap: 1px;
  }
  
  .grw-review-star {
    font-size: 12px;
  }
  
  .grw-review-time {
    font-size: 11px;
  }
  
  .grw-navigation {
    margin-top: 16px;
    gap: 12px;
  }
  
  .grw-nav-button {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .grw-google-badge {
    padding: 12px 16px;
    margin-top: 16px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .grw-google-icon {
    width: 24px;
    height: 24px;
  }
  
  .grw-google-text {
    align-items: center;
    text-align: center;
  }
  
  .grw-google-verified {
    font-size: 12px;
  }
  
  .grw-google-authentic {
    font-size: 10px;
  }
}

/* Animation for initial load */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.google-review-widget {
  animation: fadeIn 0.5s ease;
}

/* ============================================
   SIMPLE BADGE WIDGET (Free Plan)
   ============================================ */

.grw-simple-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.grw-simple-google-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.grw-simple-content {
  flex: 1;
}

.grw-simple-header {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.grw-simple-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.grw-simple-score {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
}

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

.grw-simple-star {
  color: #fbbf24;
  font-size: 18px;
}

.grw-simple-count {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

/* ============================================
   FLOATING WIDGET (Pro Plan)
   ============================================ */

.grw-floating-container {
  position: fixed;
  z-index: 999999;
}

.grw-floating-container.grw-position-top-left {
  top: 20px;
  left: 20px;
}

.grw-floating-container.grw-position-top-right {
  top: 20px;
  right: 20px;
}

.grw-floating-container.grw-position-bottom-left {
  bottom: 20px;
  left: 20px;
}

.grw-floating-container.grw-position-bottom-right {
  bottom: 20px;
  right: 20px;
}

.grw-floating-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 0;
}

.grw-floating-badge:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.grw-floating-google-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.grw-floating-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.grw-floating-score {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

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

.grw-floating-star {
  color: #fbbf24;
  font-size: 12px;
}

.grw-floating-expanded {
  position: fixed;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 24px;
  width: 650px;
  max-width: calc(100vw - 40px);
  max-height: 80vh;
  overflow-y: auto;
  animation: slideIn 0.3s ease;
}

.grw-floating-expanded .grw-header {
  padding: 0 0 16px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.grw-floating-expanded .grw-carousel {
  min-height: auto;
  box-shadow: none;
  background: transparent;
}

.grw-floating-expanded .grw-carousel-inner {
  display: block !important;
  transform: none !important;
}

.grw-floating-expanded .grw-review-card {
  min-width: 100%;
  opacity: 1 !important;
  padding: 16px 0;
  border-bottom: 1px solid #f3f4f6;
}

.grw-floating-expanded .grw-review-card:last-child {
  border-bottom: none;
}

.grw-floating-expanded .grw-navigation {
  display: none !important;
}

.grw-position-top-left .grw-floating-expanded,
.grw-position-bottom-left .grw-floating-expanded {
  left: 20px;
}

.grw-position-top-right .grw-floating-expanded,
.grw-position-bottom-right .grw-floating-expanded {
  right: 20px;
}

.grw-position-top-left .grw-floating-expanded,
.grw-position-top-right .grw-floating-expanded {
  top: 20px;
}

.grw-position-bottom-left .grw-floating-expanded,
.grw-position-bottom-right .grw-floating-expanded {
  bottom: 20px;
}

.grw-floating-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  color: #6b7280;
  line-height: 1;
  transition: all 0.2s ease;
  font-weight: 300;
}

.grw-floating-close:hover {
  background: #e5e7eb;
  color: #1f2937;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating widget - adjust header padding for close button */
.grw-floating-expanded .grw-header {
  padding-right: 40px;
}

/* Mobile adjustments for floating widget */
@media (max-width: 640px) {
  .grw-floating-container {
    position: fixed !important;
  }
  
  .grw-floating-badge {
    padding: 12px 16px;
  }
  
  .grw-floating-google-icon {
    width: 28px;
    height: 28px;
  }
  
  .grw-floating-score {
    font-size: 18px;
  }
  
  .grw-floating-star {
    font-size: 12px;
  }
  
  .grw-floating-expanded {
    position: fixed;
    left: 10px !important;
    right: 10px !important;
    top: 10px !important;
    bottom: 10px !important;
    width: auto !important;
    max-width: none;
    max-height: none;
    padding: 20px;
  }
  
  .grw-simple-badge {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }
  
  .grw-simple-google-icon {
    width: 40px;
    height: 40px;
  }
}

/* View All Reviews Button */
.grw-view-all-button {
  display: block;
  width: 100%;
  padding: 14px 16px;
  background: #4285F4;
  color: white;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  margin-top: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(66, 133, 244, 0.2);
}

.grw-view-all-button:hover {
  background: #3367D6;
  box-shadow: 0 4px 8px rgba(66, 133, 244, 0.3);
  transform: translateY(-1px);
}

.grw-view-all-button:active {
  transform: translateY(0);
}

/* Review count display */
.grw-review-stats {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

