/* =============================================================
   bo-bundle-offer — Brand Offer Bundle Section
   Alle Klassen mit bo-bundle-offer- praefixiert
   ============================================================= */

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

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

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

/* ===== Section Headline ===== */
.bo-bundle-offer-headline {
  margin: 0;
  color: var(--bbo-headline-color, #1a1a1a);
  font-size: var(--bbo-headline-size, 20px);
  line-height: 1.3;
  text-align: var(--bbo-headline-align, center);
  font-weight: 600;
}
.bo-bundle-offer-headline p { margin: 0; }
.bo-bundle-offer-headline p + p { margin-top: 6px; }

/* ===== Grid ===== */
.bo-bundle-offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

/* ===== Box ===== */
.bo-bundle-offer-box {
  position: relative;
  background-color: var(--bbo-box-bg, #ffffff);
  border: 1px solid var(--bbo-box-border, #e5e5e5);
  border-radius: var(--bbo-box-radius, 10px);
  padding: 22px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.bo-bundle-offer-box-highlight {
  border-color: var(--bbo-highlight-border, #22a86c);
  border-width: var(--bbo-highlight-width, 2px);
  /* Compensate the extra width so that boxes still align */
  padding: calc(22px - (var(--bbo-highlight-width, 2px) - 1px));
}

/* ===== Badge ===== */
.bo-bundle-offer-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: var(--bbo-badge-size, 56px);
  height: var(--bbo-badge-size, 56px);
  border-radius: 50%;
  background-color: var(--bbo-badge-bg, #1a1a1a);
  color: var(--bbo-badge-color, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
  padding: 4px;
  z-index: 2;
}

/* ===== Title ===== */
.bo-bundle-offer-title {
  margin: 0 0 6px 0;
  color: var(--bbo-title-color, #1a1a1a);
  font-size: var(--bbo-title-size, 18px);
  line-height: 1.3;
  text-align: var(--bbo-title-align, center);
  font-weight: 600;
  min-height: 1.3em;
}
.bo-bundle-offer-title p { margin: 0; }

/* ===== Rating / Stars ===== */
.bo-bundle-offer-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px 0;
  text-align: var(--bbo-rating-align, center);
  justify-content: center;
  min-height: 22px;
  flex-wrap: wrap;
}

.bo-bundle-offer-rating[data-align="left"] { justify-content: flex-start; }
.bo-bundle-offer-rating[data-align="right"] { justify-content: flex-end; }

.bo-bundle-offer-rating-text {
  color: var(--bbo-rating-color, #c87a3c);
  font-size: var(--bbo-rating-size, 13px);
  font-weight: 500;
  line-height: 1;
}

.bo-bundle-offer-stars {
  position: relative;
  display: inline-block;
  font-size: var(--bbo-rating-size, 13px);
  line-height: 1;
  letter-spacing: 2px;
}

.bo-bundle-offer-stars-empty {
  color: var(--bbo-star-empty, #d4d4d4);
}

.bo-bundle-offer-stars-filled {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--bbo-star-filled, #f5a623);
  pointer-events: none;
}

/* ===== Image ===== */
.bo-bundle-offer-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subtle placeholder bg, only when no image is set */
.bo-bundle-offer-image-wrap:not(.bo-bundle-offer-image-wrap-filled) {
  background-color: #fafafa;
  border-radius: 8px;
}

.bo-bundle-offer-image {
  width: var(--bbo-image-size, 100%);
  height: var(--bbo-image-size, 100%);
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.bo-bundle-offer-image-placeholder {
  color: #999999;
  font-size: 13px;
  text-align: center;
}

/* ===== Product / Unit Label ===== */
.bo-bundle-offer-product-label {
  margin: 0 0 4px 0;
  color: var(--bbo-product-color, #1a1a1a);
  font-size: var(--bbo-product-size, 16px);
  line-height: 1.3;
  text-align: var(--bbo-product-align, center);
  font-weight: 600;
}
.bo-bundle-offer-product-label p { margin: 0; }

.bo-bundle-offer-unit-label {
  margin: 0 0 14px 0;
  color: var(--bbo-unit-color, #888888);
  font-size: var(--bbo-unit-size, 13px);
  line-height: 1.3;
  text-align: var(--bbo-unit-align, center);
}
.bo-bundle-offer-unit-label p { margin: 0; }

/* ===== Prices ===== */
.bo-bundle-offer-price {
  margin: 0 0 4px 0;
  color: var(--bbo-price-color, #d94e4e);
  font-size: var(--bbo-price-size, 18px);
  line-height: 1.3;
  text-align: var(--bbo-price-align, center);
  font-weight: 600;
}
.bo-bundle-offer-price p { margin: 0; }

.bo-bundle-offer-total {
  margin: 0 0 4px 0;
  color: var(--bbo-total-color, #444444);
  font-size: var(--bbo-total-size, 13px);
  line-height: 1.4;
  text-align: var(--bbo-total-align, center);
}
.bo-bundle-offer-total p { margin: 0; display: inline; }

.bo-bundle-offer-total .bo-bundle-offer-total-strike,
s.bo-bundle-offer-total-strike {
  display: inline;
  margin-left: 6px;
  color: #888888;
  text-decoration: line-through;
  text-decoration-line: line-through;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
}

.bo-bundle-offer-savings {
  margin: 0 0 14px 0;
  color: var(--bbo-savings-color, #22a86c);
  font-size: var(--bbo-savings-size, 13px);
  line-height: 1.4;
  text-align: var(--bbo-savings-align, center);
  font-weight: 500;
}
.bo-bundle-offer-savings p { margin: 0; }

/* ===== CTA ===== */
.bo-bundle-offer-cta-wrap {
  margin-top: auto;
  padding-top: 6px;
}

.bo-bundle-offer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  border-radius: 6px;
  background-color: var(--bbo-cta-bg, #888888);
  color: var(--bbo-cta-color, #ffffff);
  font-size: var(--bbo-cta-size, 14px);
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
  text-align: center;
  line-height: 1.2;
}

.bo-bundle-offer-cta:hover {
  opacity: 0.92;
}

.bo-bundle-offer-cta:active {
  transform: translateY(1px);
}

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

  .bo-bundle-offer-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .bo-bundle-offer-badge {
    width: calc(var(--bbo-badge-size, 56px) * 0.85);
    height: calc(var(--bbo-badge-size, 56px) * 0.85);
    font-size: 10px;
  }
}
