/* eid 19878 - mobile sticky product CTA (light bar) */
.product-sticky-cta {
  --product-sticky-consent-offset: 0px;
  display: none;
}

@media (max-width: 991px) {
  .product-sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px) + var(--product-sticky-consent-offset));
    background: #fff;
    border-top: 1px solid #ebebeb;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(110%);
    transition: transform 0.22s ease, padding-bottom 0.2s ease;
    pointer-events: none;
  }

  .product-sticky-cta.is-visible {
    transform: translateY(0);
    pointer-events: auto;
  }

  .product-sticky-cta[hidden] {
    display: none !important;
  }

  .product-sticky-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    max-width: 640px;
    margin: 0 auto;
  }

  .product-sticky-cta__price {
    flex: 0 1 42%;
    min-width: 0;
  }

  .product-sticky-cta__price-value {
    display: block;
    color: #000;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-sticky-cta__price-note {
    display: block;
    margin-top: 2px;
    color: #9a9a9a;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-sticky-cta__action {
    flex: 1 1 58%;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
  }

  .product-sticky-cta__btn {
    width: 100%;
    max-width: none;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e4fd71;
    background: #e4fd71;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .product-sticky-cta__btn-icon {
    display: inline-flex;
    flex: 0 0 auto;
    line-height: 0;
  }

  .product-sticky-cta__btn-label {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-sticky-cta__btn--skonsultuj {
    border-color: #e4fd71;
    background: #e4fd71;
    color: #000;
  }

  .product-sticky-cta__btn--ask {
    border-color: #2f4f3a;
    background: #2f4f3a;
    color: #e4fd71;
    font-size: 12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  html.has-product-sticky-cta body#product {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  /* Cookie btn above the bar (also here: consentmode.css often cached without ?v=) */
  html.has-product-sticky-cta button.tcm-preferences-btn,
  html.has-product-sticky-cta button.tcm-preferences-btn.btn1,
  html.has-product-sticky-cta .tcm-preferences-btn {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    left: 12px;
  }

  #product .product-add-to-cart .product-quantity .btn-add-to-cart {
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .product-cta-cart-icon {
    display: inline-flex;
    flex: 0 0 auto;
    line-height: 0;
  }
}
