/* La Ruche - Curléa Product Box v1.0.5 */
#product .laruche-cpbox,
#product #tdrealtimevisitor.laruche-cpbox-visitor {
  font-family: "Poppins", "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* The box is the first element in product-prices: keep it close to the short description. */
#product .product-information > .product-prices {
  margin-top: 0px !important;
}

#product .laruche-cpbox {
  width: 100%;
  margin: 0;
}

#product .laruche-cpbox-card {
  box-sizing: border-box;
  border-radius: 14px;
  background: linear-gradient(145deg, #f7f7f7 0%, #ededed 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78), 0 10px 25px rgba(0, 0, 0, .035);
  padding: 14px 15px;
  color: #626262;
}

#product .laruche-cpbox-card-description {
  margin-bottom: 8px;
}

#product .laruche-cpbox-grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: 8px;
  align-items: stretch;
}

#product .laruche-cpbox-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

#product .laruche-cpbox-icon {
  width: 20px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #777b7e;
}

#product .laruche-cpbox-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  overflow: visible;
}

/* Prevent the theme from turning the outline icons into black filled shapes. */
#product .laruche-cpbox-icon svg,
#product .laruche-cpbox-icon svg * {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.45 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

#product .laruche-cpbox h3 {
  margin: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.012em;
  color: #4e4e4e;
  line-height: 1.25;
}

#product .laruche-cpbox-text p {
  margin: 0;
  font-family: inherit;
  font-size: 12.4px;
  font-weight: 400;
  line-height: 1.46;
  color: #656565;
}

#product .laruche-cpbox-text p + p {
  margin-top: 4px;
}

#product .laruche-cpbox-benefits-list,
#product .laruche-cpbox-ingredients-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#product .laruche-cpbox-benefits-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

#product .laruche-cpbox-benefits-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, .065);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  padding: 5px 11px;
  color: #6b6b6b;
  font-family: inherit;
  font-size: 11.7px;
  font-weight: 400;
  line-height: 1.12;
}

#product .laruche-cpbox-benefits-list li > span {
  color: #747474;
  font-size: 11px;
}

#product .laruche-cpbox-ingredients-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#product .laruche-cpbox-ingredients-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  color: #696969;
  font-family: inherit;
  font-size: 11.55px;
  line-height: 1.25;
}

#product .laruche-cpbox-ingredient-emoji {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 19px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 16px;
  line-height: 1.08;
}

#product .laruche-cpbox-ingredient-copy {
  display: block;
  min-width: 0;
}

#product .laruche-cpbox-ingredients-list strong {
  display: block;
  color: #4f4f4f;
  font-family: inherit;
  font-weight: 600;
  margin-bottom: 1px;
}

/* The actual visitor node is moved here by front.js: one live counter, no clone. */
#product #tdrealtimevisitor.laruche-cpbox-visitor {
  position: relative;
  display: block !important;
  width: 100%;
  box-sizing: border-box;
  margin: 18px 0 0 !important;
  padding: 0 0 12px 24px !important;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, .12) !important;
  color: #777;
  font-size: 11.7px;
  line-height: 20px;
}

#product #tdrealtimevisitor.laruche-cpbox-visitor .icon,
#product #tdrealtimevisitor.laruche-cpbox-visitor i,
#product #tdrealtimevisitor.laruche-cpbox-visitor svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 17px;
  height: 17px;
  font-size: 16px;
}

#product #tdrealtimevisitor.laruche-cpbox-visitor .count {
  font-weight: 500;
}

/* Price spacing below the visitor separator. */
#product #tdrealtimevisitor.laruche-cpbox-visitor + .product-price {
  margin-top: 13px !important;
}

@media (max-width: 1199px) {
  #product .product-information > .product-prices {
    margin-top: 4px !important;
  }

  #product .laruche-cpbox-card {
    padding: 13px 14px;
  }

  #product .laruche-cpbox-grid {
    grid-template-columns: 1fr;
  }

  #product .laruche-cpbox-card-ingredients {
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  #product .laruche-cpbox-grid {
    display: block;
  }

  #product .laruche-cpbox-card + .laruche-cpbox-card,
  #product .laruche-cpbox-card-ingredients {
    margin-top: 8px;
  }

  #product .laruche-cpbox-card {
    border-radius: 13px;
    padding: 13px;
  }

  #product .laruche-cpbox h3 {
    font-size: 13.5px;
  }

  #product .laruche-cpbox-text p,
  #product .laruche-cpbox-benefits-list li,
  #product .laruche-cpbox-ingredients-list li,
  #product #tdrealtimevisitor.laruche-cpbox-visitor {
    font-size: 11.8px;
  }
}

/*
 * Fallback spacing when the visitor module is temporarily rebuilding
 * after a PrestaShop AJAX product refresh.
 */
#product .product-prices:has(.laruche-cpbox)
  .current-price {
  margin-top: 14px !important;
}

/* The visitor block creates its own spacing when available. */
#product #tdrealtimevisitor.laruche-cpbox-visitor {
  margin-top: 12px !important;
  margin-bottom: 14px !important;
}
