/*!
 * UP4D Google Reviews - front-end slider styles
 * Extracted from up4d-google-reviews.php; loaded via wp_enqueue_style().
 * Version is cache-busted with MGR_VERSION.
 */
.mgr-reviews-section {
  --mgr-gap: 24px;
  --mgr-columns: 3;
  --mgr-card-bg: #ffffff;
  --mgr-card-border: #d8e4ef;
  --mgr-title: #163047;
  --mgr-copy: #526273;
  --mgr-muted: #6f8192;
  --mgr-accent: #1f9b8f;
  --mgr-accent-dark: #14746b;
  /*--mgr-shadow: 0 18px 40px rgba(15, 33, 52, 0.09);*/
  margin: 0 auto;
  color: var(--mgr-title);
  font-family: "Segoe UI", Arial, sans-serif;
}

.mgr-reviews-section * { box-sizing: border-box; }
.mgr-reviews-section .mgr-container { width: min(1180px, 100%); margin: 0 auto; }
.mgr-reviews-section .mgr-section-header {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
  text-align: center;
}
.mgr-reviews-section .mgr-section-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mgr-reviews-section .google-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.mgr-reviews-section .badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.mgr-reviews-section .mgr-google-logo svg { display: block; height: 36px; width: auto; }
.mgr-reviews-section .mgr-badge-score {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--mgr-title);
}

.mgr-reviews-section .mgr-badge-stars,
.mgr-reviews-section .stars-small {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.mgr-reviews-section .mgr-star { font-size: 1rem; line-height: 1; }
.mgr-reviews-section .mgr-s-full { color: #fbbc04; }
.mgr-reviews-section .mgr-s-half { color: #fbbc04; opacity: .55; }
.mgr-reviews-section .mgr-s-empty { color: #d7dde3; }
.mgr-reviews-section .badge-count {
  font-size: .95rem;
  line-height: 1.4;
  color: var(--mgr-muted);
}

/*
 * "(showing N)" stays in the markup so crawlers/LLMs can tell the number of
 * visible cards apart from the real review total, but it is rendered white so
 * it does not show visually on a light background.
 */
.mgr-reviews-section .mgr-badge-shown {
  font-size: .85rem;
  color: #ffffff;
  opacity: 1;
}

.mgr-reviews-section .mgr-carousel {
  position: relative;
  background: transparent;
  box-shadow: none;
}
.mgr-reviews-section .mgr-carousel-viewport {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 0;
  background: transparent;
}

.mgr-reviews-section .mgr-carousel-viewport::-webkit-scrollbar { display: none; }

.mgr-reviews-section .reviews-grid {
  display: flex;
  gap: var(--mgr-gap);
  align-items: stretch;
  padding: 0;
  background: transparent;
}

.mgr-reviews-section .mgr-slide {
  display: flex;
  align-self: stretch;
  flex: 0 0 calc((100% - (var(--mgr-gap) * (var(--mgr-columns) - 1))) / var(--mgr-columns));
  min-width: calc((100% - (var(--mgr-gap) * (var(--mgr-columns) - 1))) / var(--mgr-columns));
  scroll-snap-align: start;
}

.mgr-reviews-section .review-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  width: 100%;
  min-height: 100%;
  padding: 24px;
  background: var(--mgr-card-bg);
  border: 1px solid var(--mgr-card-border);
  border-radius: 10px;
  /*box-shadow: var(--mgr-shadow);*/
}

.mgr-reviews-section .review-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.mgr-reviews-section .reviewer {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.mgr-reviews-section .avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #dcebf8;
}

.mgr-reviews-section .avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #3a86f8 0%, #1f9b8f 100%);
}

.mgr-reviews-section .reviewer-info { min-width: 0; }
.mgr-reviews-section .name,
.mgr-reviews-section .name a,
.mgr-reviews-section .name span {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--mgr-title);
  text-decoration: none;
}

.mgr-reviews-section .name a:hover { text-decoration: underline; }
.mgr-reviews-section .date {
  display: block;
  margin-top: 4px;
  font-size: .875rem;
  line-height: 1.4;
  color: var(--mgr-muted);
}

.mgr-reviews-section .google-g svg {
  display: block;
  width: 24px;
  height: 24px;
}

.mgr-reviews-section .stars-small .mgr-star { font-size: .95rem; }

.mgr-reviews-section .mgr-review-copy {
  max-height: calc(1.7em * 4);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  scrollbar-width: thin;
  margin-top: 0;
  align-self: stretch;
}

.mgr-reviews-section .review-text {
  margin: 0;
  font-size: .975rem;
  line-height: 1.7;
  color: var(--mgr-copy);
  white-space: normal;
}

.mgr-reviews-section .mgr-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  left: -42px;
  right: -42px;
  margin-top: 0;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 3;
}

.mgr-reviews-section .mgr-carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #111111 !important;
  cursor: pointer;
  font-size: 52px;
  line-height: 1;
  font-weight: 300;
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
}

.mgr-reviews-section .mgr-carousel-btn:hover,
.mgr-reviews-section .mgr-carousel-btn:focus-visible,
.mgr-reviews-section .mgr-carousel-btn:active {
  background: transparent !important;
  box-shadow: none !important;
  border-color: transparent !important;
  color: #111111 !important;
  opacity: .72;
  transform: translateY(-1px);
  outline: none !important;
}

.mgr-reviews-section .mgr-carousel-btn[disabled] {
  opacity: .35;
}

.mgr-reviews-section .cta-wrap {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.mgr-reviews-section .mgr-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mgr-accent) 0%, var(--mgr-accent-dark) 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(20, 116, 107, 0.24);
}

.mgr-reviews-section .mgr-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
}
.mgr-reviews-section .mgr-rev-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid #4285f4;
  transition: opacity .2s;
}
.mgr-reviews-section .mgr-rev-btn:hover { opacity: .88; }
.mgr-reviews-section .mgr-rev-btn-primary { background: #4285f4; color: #ffffff; }
.mgr-reviews-section .mgr-rev-btn-ghost { background: #ffffff; color: #4285f4; }

@media (max-width: 1024px) {
  .mgr-reviews-section {
    --mgr-columns: 2;
    --mgr-gap: 20px;
  }
}

@media (max-width: 767px) {
  .mgr-reviews-section {
    --mgr-columns: 1;
    --mgr-gap: 16px;
  }

  .mgr-reviews-section .review-card { padding: 20px; }
  .mgr-reviews-section .google-badge { width: 100%; }
  .mgr-reviews-section .mgr-carousel-controls {
    left: 10px;
    right: 10px;
  }
  .mgr-reviews-section .mgr-carousel-btn { font-size: 40px; }
}
