/* Fester Preis-/Warenkorb-Balken auf Produktseiten mit Konfigurator (15.11.2026).
   Nur auf schmalen Bildschirmen: Dort liegt der eigentliche Knopf rund sechs Bildschirmhöhen
   unter dem Seitenanfang. Eingebunden von server.mjs (applyStickyCart), Logik in dh-sticky-cart.js. */
.dh-sticky-cart { display: none; }

@media (max-width: 767.98px) {
  .dh-sticky-cart {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #dfe5df;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(110%);
    transition: transform 0.2s ease;
    visibility: hidden;
  }
  .dh-sticky-cart.is-on {
    transform: translateY(0);
    visibility: visible;
  }
  .dh-sticky-cart__price {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.2;
  }
  .dh-sticky-cart__value {
    display: block;
    font-size: 19px;
    font-weight: 700;
    color: #1b4d2b;
    white-space: nowrap;
  }
  /* Preis-Hinweis der Seite („inkl. MwSt. inkl. Lieferung & Montage“), höchstens zwei Zeilen */
  .dh-sticky-cart__label {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.2;
    color: #5f6b5f;
  }
  .dh-sticky-cart__btn {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    background: #2e7d32;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.1;
    cursor: pointer;
  }
  .dh-sticky-cart__btn:disabled { opacity: 0.6; }

  /* Platz unter dem Seitenende, Chat-Knopf über den Balken heben */
  body.dh-sticky-cart-on { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  body.dh-sticky-cart-on #bvp-chat-widget { bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important; }
}

@media (prefers-reduced-motion: reduce) {
  .dh-sticky-cart { transition: none; }
}
