/* ================================
   FLOATING REVIEW WIDGET
   ================================ */

/* Floating container - rechtsonder */
.review-widget-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

/* Widget paneel */
.widget {
  font-family: Arial, sans-serif;
  background: white;
  width: 340px;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  display: none;
  margin-bottom: 12px;
  max-height: 80vh;
  overflow-y: auto;
}

/* Zichtbaar als open */
.widget.open {
  display: block;
}

/* Sluitknop bovenin widget */
.widget-close {
  display: block;
  text-align: right;
  font-size: 20px;
  cursor: pointer;
  color: #aaa;
  margin-bottom: 8px;
  line-height: 1;
}

.widget-close:hover {
  color: #444;
}

/* Floating toggle knop */
.widget-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #4285f4;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(66,133,244,0.4);
  transition: background 0.2s, transform 0.2s;
  float: right;
}

.widget-toggle-btn:hover {
  background: #3071e8;
  transform: scale(1.05);
}

/* ================================
   WIDGET HEADER
   ================================ */

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.widget-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.google-logo {
  width: 36px;
  height: 36px;
}

.header-info .title {
  font-size: 18px;
  font-weight: bold;
  color: #222;
}

.header-info .subtitle {
  font-size: 13px;
  color: #888;
}

.rating-block {
  text-align: center;
}

.rating-number {
  font-size: 40px;
  font-weight: bold;
  color: #222;
  line-height: 1;
}

.stars-row {
  color: #fbbc04;
  font-size: 20px;
  letter-spacing: 2px;
  margin: 4px 0;
}

.rating-count {
  font-size: 12px;
  color: #888;
}

/* ================================
   DIVIDER
   ================================ */

.divider {
  border: none;
  border-top: 1px solid #eee;
  margin-bottom: 24px;
}

/* ================================
   REVIEWS LIST
   ================================ */

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.review-card {
  background: #fafafa;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #eee;
}

.review-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}

.reviewer-info .name {
  font-size: 14px;
  font-weight: bold;
  color: #222;
}

.reviewer-info .date {
  font-size: 12px;
  color: #aaa;
}

.review-stars {
  color: #fbbc04;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.review-text {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

/* ================================
   CTA BUTTON
   ================================ */

.cta-block {
  text-align: center;
}

.cta-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.review-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #4285f4;
  color: white;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  transition: background 0.2s;
}

.review-btn:hover {
  background: #3071e8;
}

/* ================================
   POWERED TEXT
   ================================ */

.powered {
  text-align: center;
  margin-top: 16px;
  font-size: 11px;
  color: #ccc;
}

/* ================================
   BOX SIZING
   ================================ */

.widget * {
  box-sizing: border-box;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 600px) {
  .review-widget-container {
    bottom: 16px;
    right: 16px;
  }

  .widget {
    width: calc(100vw - 32px);
  }

  .widget-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .rating-block {
    margin-top: 12px;
  }
}