/* ===== JWS GOOGLE REVIEWS CAROUSEL ===== */
.jws-rv-section {
  padding: 96px 0;
  position: relative;
  font-family: 'Geist', sans-serif;
  box-sizing: border-box;
  overflow: hidden;
}
.jws-rv-section *, .jws-rv-section *::before, .jws-rv-section *::after { box-sizing: border-box; }

.jws-rv-theme-dark { background: var(--jws-rv-bg, #07091A); }
.jws-rv-theme-light { background: var(--jws-rv-bg, #f0f5fb); }

.jws-rv-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

/* HEADER */
.jws-rv-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  margin-bottom: 44px;
}
.jws-rv-label {
  display: inline-block;
  background: rgba(0,134,201,0.12);
  border: 1px solid rgba(0,134,201,0.28);
  color: var(--jws-rv-accent, #0086C9);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.jws-rv-theme-dark .jws-rv-label {
  background: rgba(0,134,201,0.2);
  border-color: rgba(0,134,201,0.4);
}
.jws-rv-title {
  font-size: var(--jws-rv-title-size, 46px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
  margin: 0;
}
.jws-rv-theme-dark .jws-rv-title { color: #fff; }
.jws-rv-theme-light .jws-rv-title { color: #07091A; }

/* Gradient alleen op de span met geselecteerde woorden */
.jws-rv-grad-text {
  background: linear-gradient(135deg, var(--jws-rv-grad-from, #0086c9), var(--jws-rv-grad-to, #7cd4fd));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.jws-rv-subtitle {
  font-size: 16px;
  line-height: 1.7;
  margin: 14px 0 0;
  max-width: 520px;
}
.jws-rv-theme-dark .jws-rv-subtitle { color: rgba(255,255,255,0.55); }
.jws-rv-theme-light .jws-rv-subtitle { color: #5A6480; }

/* SCORE BOX */
.jws-rv-score-box { text-align: right; }
.jws-rv-score-big {
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
}
.jws-rv-theme-dark .jws-rv-score-big { color: #fff; }
.jws-rv-theme-light .jws-rv-score-big { color: #07091A; }
.jws-rv-score-box .jws-rv-stars {
  display: flex;
  gap: 3px;
  justify-content: flex-end;
  margin: 8px 0;
}
.jws-rv-score-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--jws-rv-score-meta, 16px);
  font-weight: 600;
  text-decoration: none;
  justify-content: flex-end;
  transition: opacity 0.2s;
}
.jws-rv-theme-dark .jws-rv-score-meta { color: rgba(255,255,255,0.7); }
.jws-rv-theme-light .jws-rv-score-meta { color: #5A6480; }
.jws-rv-score-meta:hover { opacity: 0.8; }
.jws-rv-score-logo {
  display: inline-flex;
  align-items: center;
  /* verschuifbaar via instellingen */
  transform: translate(var(--jws-rv-score-logo-x, 0px), var(--jws-rv-score-logo-y, 0px));
}
.jws-rv-score-logo img,
.jws-rv-score-logo svg {
  width: var(--jws-rv-score-logo, 28px) !important;
  height: var(--jws-rv-score-logo, 28px) !important;
  display: block;
}

/* VIEW REVIEWS KNOP — echte knop, geen logo */
.jws-rv-view-wrap {
  margin-top: 24px;
}
.jws-rv-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--jws-rv-view-btn, #07091A);
  color: #fff !important;
  font-size: var(--jws-rv-btn-size, 14px);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.22s;
  box-shadow: 0 4px 16px rgba(7,9,26,0.2);
  border: none;
  line-height: 1;
}
.jws-rv-view-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(7,9,26,0.3);
  color: #fff !important;
}

/* ===== CAROUSEL — ROBUUST ===== */
.jws-rv-carousel {
  position: relative;
  width: 100%;
  /* ruimte links/rechts voor de pijlen buiten de cards */
  padding: 0 60px;
}
.jws-rv-viewport {
  width: 100%;
  overflow: hidden;
}
.jws-rv-track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  /* gap wordt via margin op slides geregeld voor exacte controle */
}
.jws-rv-slide {
  flex: 0 0 auto;
  /* JS zet exacte pixelbreedte; deze waarden zijn een veilige fallback
     zodat de reviews ook zichtbaar zijn vóór/zonder JS */
  width: calc((100% - 36px) / 3);
  margin-right: 18px;
  box-sizing: border-box;
}
.jws-rv-slide:last-child {
  margin-right: 0;
}
@media (max-width: 1024px) {
  .jws-rv-slide { width: calc((100% - 18px) / 2); }
}
@media (max-width: 768px) {
  .jws-rv-slide { width: 100%; margin-right: 0; }
}

/* CARD */
.jws-rv-card {
  background: var(--jws-rv-card-bg, #fff);
  border-radius: var(--jws-rv-radius, 18px);
  padding: 26px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.jws-rv-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.jws-rv-card-glogo {
  display: inline-flex;
  align-items: center;
}
.jws-rv-card-glogo img,
.jws-rv-card-glogo svg {
  width: var(--jws-rv-card-logo, 34px) !important;
  height: var(--jws-rv-card-logo, 34px) !important;
  object-fit: contain;
  display: block;
}
.jws-rv-stars {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}
.jws-rv-text {
  font-size: var(--jws-rv-text-size, 14px);
  color: var(--jws-rv-card-text, #07091A);
  line-height: 1.7;
  margin: 0 0 18px;
  flex: 1;
}
.jws-rv-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.jws-rv-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,134,201,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--jws-rv-accent, #0086C9);
  flex-shrink: 0;
}
.jws-rv-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.jws-rv-author-name {
  font-size: var(--jws-rv-name-size, 13px);
  font-weight: 700;
  color: var(--jws-rv-card-text, #07091A);
}
.jws-rv-author-loc {
  font-size: 11px;
  color: #5A6480;
  margin-top: 2px;
}

/* ARROWS */
.jws-rv-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--jws-rv-accent, #0086C9);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0,134,201,0.3);
}
.jws-rv-arrow:hover {
  background: #0072aa;
}
.jws-rv-prev { left: 0; }
.jws-rv-next { right: 0; }
.jws-rv-arrow:disabled { opacity: 0.35; cursor: default; }

/* DOTS */
.jws-rv-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}
.jws-rv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(7,9,26,0.15);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}
.jws-rv-theme-dark .jws-rv-dot { background: rgba(255,255,255,0.25); }
.jws-rv-dot.active {
  background: var(--jws-rv-accent, #0086C9);
  width: 24px;
  border-radius: 4px;
}

/* PLAATS REVIEW KNOP (geen logo) */
.jws-rv-cta {
  text-align: center;
  margin-top: 36px;
}
.jws-rv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #07091A !important;
  font-size: var(--jws-rv-btn-size, 14px);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.22s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  line-height: 1;
}
.jws-rv-theme-dark .jws-rv-btn { background: #fff; color: #07091A !important; }
.jws-rv-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}

/* ===== TABLET ===== */
@media (max-width: 1024px) {
  .jws-rv-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .jws-rv-score-box { text-align: left; }
  .jws-rv-score-box .jws-rv-stars { justify-content: flex-start; }
  .jws-rv-score-meta { justify-content: flex-start; }
  .jws-rv-carousel { padding: 0 50px; }
}

/* ===== MOBIEL ===== */
@media (max-width: 768px) {
  .jws-rv-section { padding: 64px 0; }
  .jws-rv-container { padding: 0 20px; }
  .jws-rv-title { font-size: 28px; }
  .jws-rv-carousel { padding: 0; }
  .jws-rv-score-big { font-size: 42px; }

  /* Pijlen niet meer naast de kaart (geen ruimte), maar onder de carousel */
  .jws-rv-arrow {
    position: static;
    transform: none;
    width: 40px;
    height: 40px;
    box-shadow: 0 3px 12px rgba(0,134,201,0.28);
  }
  .jws-rv-arrow:hover { transform: none; }

  /* Navigatie-balk onderaan: pijl - stippen - pijl */
  .jws-rv-mobile-nav {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 24px;
  }
  /* De originele dots-rij verbergen, want die zit nu in de mobiele nav */
  .jws-rv-dots { margin-top: 0; }
}

/* De mobiele nav-wrapper is standaard verborgen op desktop */
.jws-rv-mobile-nav { display: none; }
