/* Brandnodig Reviews — standalone styles */

.brandnodig-reviews-container {
  display: flex;
  max-width: 1440px;
  padding: 0 24px;
  margin: 0 auto;
  gap: 24px;
}

@media (min-width: 576px) {
  .brandnodig-reviews-container {
    padding: 0 clamp(20px, 2.7777777778vw, 40px);
    gap: clamp(40px, 5.5555555556vw, 80px);
  }
}

.review-form-notice {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-weight: 600;
}

.review-form-notice--success {
  background: rgba(155, 181, 159, 0.12);
  color: #140e39;
  border: 1px solid rgba(155, 181, 159, 0.35);
}

.review-form-notice--error {
  background: rgba(180, 40, 40, 0.08);
  color: #140e39;
  border: 1px solid rgba(180, 40, 40, 0.35);
}

.field.is-hidden {
  display: none !important;
}

.review-form-section {
  padding-top: clamp(48px, 8vw, 120px);
  padding-bottom: clamp(40px, 5.5555555556vw, 80px);
}

.brandnodig-reviews-form-wrap .review-form-section .inner {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 768px;
  background-color: #ffffff;
  border-radius: 24px;
  gap: 24px;
  margin-top: 48px;
}

/* Fields live under .inner; do not require .review-form (some themes strip <form>) */
.brandnodig-reviews-form-wrap .review-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* .field anywhere under wrap — themes sometimes strip .inner / flatten markup */
.brandnodig-reviews-form-wrap .field {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

.brandnodig-reviews-form-wrap .review-form-section .inner .field {
  display: flex;
  flex-direction: column;
}

/* Naam: label above control (column layouts often force inline/floated labels) */
.brandnodig-reviews-form-wrap .field[data-brandnodig-field="name"] > label,
.brandnodig-reviews-form-wrap .review-form-section .inner .field[data-brandnodig-field="name"] > label {
  display: block;
  float: none;
  width: 100%;
  max-width: 100%;
  margin: 0 0 8px !important;
  /* font-weight: 600;
  font-size: 18px;
  line-height: 1.35; */
}

.brandnodig-reviews-form-wrap .field[data-brandnodig-field="name"] #brandnodig-review-name,
.brandnodig-reviews-form-wrap .review-form-section .inner .field[data-brandnodig-field="name"] #brandnodig-review-name {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid rgba(20, 14, 57, 0.2);
  color: #140e39;
  padding: 12px;
  background-color: #ffffff;
  font-size: 1rem;
  line-height: 1.4;
  min-height: 2.75rem;
}

/* Anoniem: checkbox + text in one row (theme “.column.text label” rules often break this) */
.brandnodig-reviews-form-wrap .field.checkbox label {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  float: none;
  width: 100%;
  max-width: 100%;
  gap: 10px;
  margin: 0 !important;
  padding: 0;
  font-weight: 500;
  cursor: pointer;
}

.brandnodig-reviews-form-wrap .field.checkbox input[type="checkbox"] {
  display: block;
  width: 1.125rem;
  min-width: 1.125rem;
  height: 1.125rem;
  margin: 0.2em 0 0;
  flex-shrink: 0;
  align-self: flex-start;
  accent-color: #9bb59f;
  opacity: 1;
  visibility: visible;
  position: static;
  clip: auto;
  clip-path: none;
  appearance: auto;
  -webkit-appearance: auto;
}

.brandnodig-reviews-form-wrap .review-form-section .inner .field label {
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 18px;
}

/* Checkbox label must not inherit the heavy “field heading” label style */
.brandnodig-reviews-form-wrap .review-form-section .inner .field.checkbox label {
  margin-bottom: 0;
  font-weight: 500;
  font-size: 16px;
}

.brandnodig-reviews-form-wrap .review-form-section .inner .field input:not([type="checkbox"]):not([type="range"]),
.brandnodig-reviews-form-wrap .review-form-section .inner .field textarea {
  border-radius: 8px;
  border: 1px solid rgba(20, 14, 57, 0.2);
  color: #140e39;
  padding: 12px;
}

.brandnodig-reviews-form-wrap .review-form-section .inner .field select {
  border-radius: 8px;
  border: 1px solid rgba(20, 14, 57, 0.2);
  color: #140e39;
  padding: 12px;
  padding-right: 40px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230a2540' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.brandnodig-reviews-form-wrap .review-form-section .inner .field .review-score-input {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid rgba(20, 14, 57, 0.2);
  padding: 12px;
  border-radius: 12px;
}

.brandnodig-reviews-form-wrap .review-form-section .inner .field .review-score-input #brandnodig-review-score {
  flex: 1 1 140px;
  min-width: 0;
  width: auto;
  max-width: 100%;
  accent-color: #9bb59f;
}

.brandnodig-reviews-form-wrap .review-form-section .inner .field .review-score-input .review-score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 96px;
  flex-shrink: 0;
  position: relative;
}

.brandnodig-reviews-form-wrap .review-form-section .inner .field .review-score-input .review-score-ring {
  width: 90px;
  height: 90px;
  transform: rotate(-90deg);
}

.brandnodig-reviews-form-wrap .review-form-section .inner .field .review-score-input .review-score-track {
  fill: none;
  stroke: #d8d8de;
  stroke-width: 6;
}

.brandnodig-reviews-form-wrap .review-form-section .inner .field .review-score-input .review-score-progress {
  fill: none;
  stroke: #9bb59f;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 200ms ease;
}

.brandnodig-reviews-form-wrap .review-form-section .inner .field .review-score-input .review-score-value {
  position: absolute;
  left: 50%;
  top: 50%;
  color: #140e39;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-weight: 700;
  font-size: 20px;
}

/* Narrow theme layout columns (e.g. .column.text) */
.column.text .brandnodig-reviews-form-wrap,
.column .brandnodig-reviews-form-wrap {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.column.text .brandnodig-reviews-form-wrap .brandnodig-reviews-container,
.column .brandnodig-reviews-form-wrap .brandnodig-reviews-container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.column.text .brandnodig-reviews-form-wrap .review-form-section,
.column .brandnodig-reviews-form-wrap .review-form-section {
  padding-top: 0;
  padding-bottom: clamp(24px, 4vw, 64px);
}

.column.text .brandnodig-reviews-form-wrap .review-form-section .inner,
.column .brandnodig-reviews-form-wrap .review-form-section .inner {
  max-width: none;
}

.column.text .brandnodig-reviews-form-wrap .review-form-section .inner .field input:not([type="checkbox"]):not([type="range"]),
.column.text .brandnodig-reviews-form-wrap .review-form-section .inner .field textarea,
.column.text .brandnodig-reviews-form-wrap .review-form-section .inner .field select,
.column .brandnodig-reviews-form-wrap .review-form-section .inner .field input:not([type="checkbox"]):not([type="range"]),
.column .brandnodig-reviews-form-wrap .review-form-section .inner .field textarea,
.column .brandnodig-reviews-form-wrap .review-form-section .inner .field select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.column.text .brandnodig-reviews-form-wrap .reviews-grid.brandnodig-reviews-grid,
.column .brandnodig-reviews-form-wrap .reviews-grid.brandnodig-reviews-grid {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.column.text .brandnodig-reviews-form-wrap .reviews-grid .brandnodig-reviews-container,
.column .brandnodig-reviews-form-wrap .reviews-grid .brandnodig-reviews-container {
  padding-left: 0;
  padding-right: 0;
}

.reviews-summary.brandnodig-reviews-summary {
  z-index: 500;
  position: fixed;
  top: clamp(80px, 12vw, 160px);
  right: 0;
  background-color: #ffffff;
  color: #140e39;
  padding: 8px;
  padding-left: 24px;
  border-radius: 64px 0 0 64px;
  box-shadow: -4px 4px 24px rgba(10, 10, 9, 0.1);
}

@media (max-width: 767.98px) {
  .reviews-summary.brandnodig-reviews-summary {
    top: clamp(100px, 18vw, 200px);
    padding-left: 16px;
  }
}

.reviews-summary .reviews-average {
  display: flex;
  gap: 16px;
}

@media (max-width: 767.98px) {
  .reviews-summary .reviews-average {
    gap: 8px;
  }
}

.reviews-summary .reviews-average .review-score-display {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  place-items: center;
  position: relative;
}

@media (max-width: 767.98px) {
  .reviews-summary .reviews-average .review-score-display {
    width: 48px;
    height: 48px;
  }
}

.reviews-summary .reviews-average .review-score-display .review-score-value {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.reviews-summary .reviews-average .left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.reviews-summary .reviews-average .left .count {
  font-size: 16px;
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .reviews-summary .reviews-average .left .count {
    font-size: 12px;
  }
}

.reviews-summary .reviews-average .left .label {
  font-size: 12px;
  font-weight: 500;
}

@media (max-width: 767.98px) {
  .reviews-summary .reviews-average .left .label {
    font-size: 10px;
  }
}

.review-score-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.review-score-track {
  fill: none;
  stroke: #d8d8de;
  stroke-width: 8;
}

.review-score-progress {
  fill: none;
  stroke: #9bb59f;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 200ms ease;
}

.review-score-value {
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 22px;
}

.reviews-grid.brandnodig-reviews-grid .brandnodig-reviews-container {
  gap: clamp(20px, 2.7777777778vw, 40px);
  flex-wrap: wrap;
}

.reviews-grid.brandnodig-reviews-grid .column {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.7777777778vw, 40px);
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 767.98px) {
  .reviews-grid.brandnodig-reviews-grid .column {
    flex: 1 1 calc(50% - clamp(20px, 2.7777777778vw, 40px));
  }
}

@media (max-width: 575.98px) {
  .reviews-grid.brandnodig-reviews-grid .column {
    flex: 1 1 100%;
  }
}

.review-card {
  background-color: #ffffff;
  border-radius: 12px;
  color: #140e39;
  padding: 24px;
}

.reviews-grid.brandnodig-reviews-grid .brandnodig-reviews-container .review-card {
  position: relative;
}

.review-card .review-top {
  display: flex;
  gap: 24px;
}

.review-card .review-top .review-score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 96px;
  position: relative;
}

.review-card .review-top .review-score-ring {
  width: 90px;
  height: 90px;
  transform: rotate(-90deg);
}

.review-card .review-top .review-score-track {
  fill: none;
  stroke: #d8d8de;
  stroke-width: 6;
}

.review-card .review-top .review-score-progress {
  fill: none;
  stroke: #9bb59f;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 200ms ease;
}

.review-card .review-top .review-score-value {
  position: absolute;
  left: 50%;
  top: 50%;
  color: #140e39;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-weight: 700;
  font-size: 20px;
}

.review-card .review-top .review-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.review-card .review-top .review-meta .review-name {
  font-size: 20px;
  font-weight: 500;
}

.review-card .review-top .review-meta .review-date {
  opacity: 0.5;
}

.review-card .review-content .review-message {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card .review-content .review-read-more {
  margin-top: 8px;
  margin-bottom: 16px;
  display: none;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #9bb59f;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: absolute;
  bottom: 0;
  justify-content: flex-start;
}

.reviews-grid.brandnodig-reviews-grid .brandnodig-reviews-container .review-card .review-content .review-read-more {
  position: relative;
  display: block;
  margin-bottom: 0;
}

.review-card .review-content .review-read-more:hover {
  opacity: 0.8;
}

.review-card .review-content p {
  color: #566171;
  font-size: 14px;
}

.review-message.trimmed {
  position: relative;
}

.review-message.trimmed::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 48px;
  left: 0;
  bottom: 0;
  background: linear-gradient(to top, white, rgba(255, 255, 255, 0));
}

.reviews-highlight-slider.brandnodig-reviews-highlight-slider {
  min-height: 280px;
  margin-bottom: clamp(48px, 8vw, 120px);
  padding-left: 0;
  padding-right: 0;
  overflow: visible;
}

/* Flickity defaults to overflow:hidden on the viewport — clips box-shadow on cards/slides */
.reviews-highlight-slider.brandnodig-reviews-highlight-slider .flickity-viewport {
  overflow: visible !important;
  height: auto !important;
  min-height: 280px;
}

.reviews-highlight-slider.brandnodig-reviews-highlight-slider .flickity-slider {
  overflow: visible;
  display: flex;
  align-items: stretch;
  min-height: 280px;
}

.reviews-highlight-slider.brandnodig-reviews-highlight-slider .review-slide {
  height: 100%;
  display: flex;
  min-height: 280px;
  width: 320px;
  margin-right: clamp(20px, 2.7777777778vw, 40px);
}

.reviews-highlight-slider.brandnodig-reviews-highlight-slider .review-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 280px;
}

.reviews-highlight-slider.brandnodig-reviews-highlight-slider .flickity-page-dots {
  bottom: calc(clamp(20px, 2.7777777778vw, 40px) * -1.5);
}

.reviews-highlight-slider.brandnodig-reviews-highlight-slider .flickity-page-dots .dot {
  background: #140e39;
  opacity: 1;
}

.reviews-highlight-slider.brandnodig-reviews-highlight-slider .flickity-page-dots .dot.is-selected {
  opacity: 0.5 !important;
}

.review-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.review-modal.is-open {
  display: block;
  padding: 24px;
}

.review-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 57, 0.6);
}

.review-modal__content {
  position: relative;
  max-width: 720px;
  margin: 10vh auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

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

.review-modal__score {
  display: flex;
}

.review-modal__score .review-score-display {
  position: relative;
}

.review-modal__score .review-score-display .review-score-value {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #140e39;
}

.review-modal__meta {
  display: flex;
  flex-direction: column;
}

.review-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(20, 14, 57, 0.08);
  color: #140e39;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
}

.review-modal__name {
  font-size: 24px;
  font-weight: 600;
  color: #140e39;
}

.review-modal__date {
  color: rgba(20, 14, 57, 0.6);
  margin-bottom: 12px;
}

.review-modal__message {
  line-height: 1.6;
  color: #566171;
  white-space: pre-wrap;
}

body.brandnodig-review-modal-open {
  overflow: hidden;
}


.brandnodig-reviews-button {
  margin-right: auto;
}