/* =============================================================
   bo-reviews — Brand Offer Reviews Section
   Alle Klassen mit bo-reviews- praefixiert
   ============================================================= */

.bo-reviews-wrapper {
  background-color: var(--brv-bg, #ffffff);
  padding: var(--brv-pad-top, 32px) 16px var(--brv-pad-bottom, 32px);
  box-sizing: border-box;
  width: 100%;
  display: block;
}

.bo-reviews-wrapper *,
.bo-reviews-wrapper *::before,
.bo-reviews-wrapper *::after {
  box-sizing: border-box;
}

.bo-reviews-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ===== Title ===== */
.bo-reviews-title {
  margin: 0;
  color: var(--brv-title-color, #1a1a1a);
  font-size: var(--brv-title-size, 18px);
  line-height: 1.3;
  text-align: var(--brv-title-align, left);
  font-weight: 600;
}
.bo-reviews-title p { margin: 0; }
.bo-reviews-title p + p { margin-top: 6px; }

/* ===== Rating-Zeile ===== */
.bo-reviews-rating-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--brv-rating-line-color, #444444);
  font-size: var(--brv-rating-line-size, 14px);
  line-height: 1.3;
  text-align: var(--brv-rating-line-align, left);
  justify-content: flex-start;
}

.bo-reviews-rating-line[data-align="center"] { justify-content: center; }
.bo-reviews-rating-line[data-align="right"] { justify-content: flex-end; }

/* ===== Stars (gemeinsame Klassen für Rating-Line + Box) ===== */
.bo-reviews-stars {
  position: relative;
  display: inline-block;
  font-size: var(--brv-star-size, 16px);
  line-height: 1;
  letter-spacing: 4px;
}

.bo-reviews-stars-empty {
  color: var(--brv-star-empty, #d4d4d4);
}

.bo-reviews-stars-filled {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--brv-star-filled, #1a1a1a);
  pointer-events: none;
}

.bo-reviews-rating-text {
  color: inherit;
}

/* ===== Track / Grid ===== */
.bo-reviews-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

/* ===== Box ===== */
.bo-reviews-box {
  background-color: var(--brv-box-bg, #ffffff);
  border: 1px solid var(--brv-box-border, #e5e5e5);
  border-radius: var(--brv-box-radius, 8px);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: stretch;
  min-width: 0;
}

.bo-reviews-box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.bo-reviews-image-wrap {
  width: var(--brv-image-size, 32px);
  height: var(--brv-image-size, 32px);
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bo-reviews-image-wrap-empty {
  border: 1px dashed #d4d4d4;
  background-color: transparent;
}

.bo-reviews-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bo-reviews-image-placeholder {
  font-size: 12px;
  color: #999999;
  font-weight: 500;
  letter-spacing: 0;
}

.bo-reviews-name {
  margin: 0;
  color: var(--brv-name-color, #1a1a1a);
  font-size: var(--brv-name-size, 14px);
  line-height: 1.3;
  font-weight: 500;
  min-width: 0;
  overflow-wrap: break-word;
}
.bo-reviews-name p { margin: 0; }

.bo-reviews-box-stars {
  display: block;
  margin: 2px 0;
}

.bo-reviews-text {
  margin: 0;
  color: var(--brv-text-color, #444444);
  font-size: var(--brv-text-size, 13px);
  line-height: 1.5;
}
.bo-reviews-text p { margin: 0; }
.bo-reviews-text p + p { margin-top: 6px; }

.bo-reviews-link {
  margin-top: auto;
  padding-top: 10px;
  align-self: flex-start;
  color: var(--brv-link-color, #1a1a1a);
  font-size: var(--brv-link-size, 12px);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  line-height: 1.3;
}

.bo-reviews-link:hover {
  text-decoration-thickness: 2px;
}

/* ===== Mobile ===== */
@media screen and (max-width: 749px) {
  .bo-reviews-wrapper {
    padding-left: 12px;
    padding-right: 12px;
  }

  .bo-reviews-track {
    display: flex;
    flex-direction: row;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 8px;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
    align-items: stretch;
    scrollbar-width: none;
  }

  .bo-reviews-track::-webkit-scrollbar {
    display: none;
  }

  .bo-reviews-box {
    flex: 0 0 calc(100% - 24px);
    scroll-snap-align: start;
    height: auto;
    align-self: stretch;
  }
}

/* Tablet: 2 Spalten */
@media screen and (min-width: 750px) and (max-width: 1023px) {
  .bo-reviews-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
