/**
 * ==========================================
 * MOBILE STICKY ADD TO CART
 * ==========================================
 */

body.single-product .jlc-pdp-sticky-cart {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  z-index: 9999;

  background: #ffffff;

  border-top: 1px solid #ececec;

  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);

  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));

  transform: translateY(110%);
  opacity: 0;
  visibility: hidden;

  transition:
    transform 0.28s ease,
    opacity 0.28s ease,
    visibility 0.28s ease;
}

body.single-product .jlc-pdp-sticky-cart.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

body.single-product .jlc-pdp-sticky-cart__content {
  display: flex;
  align-items: center;
  gap: 16px;
}

body.single-product .jlc-pdp-sticky-cart__info {
  flex: 1;
  min-width: 0;
}

body.single-product .jlc-pdp-sticky-cart__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #202020;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.single-product .jlc-pdp-sticky-cart__price {
  margin-top: 2px;

  font-size: 18px;
  font-weight: 700;

  color: var(--jlc-gallery-primary);
}

body.single-product .jlc-pdp-sticky-cart__price del {
  opacity: 0.45;
  margin-right: 6px;
}

body.single-product .jlc-pdp-sticky-cart__button {
  flex-shrink: 0;

  min-width: 160px;

  height: 52px;

  border: 0;
  border-radius: 14px;

  background: var(--jlc-gallery-primary);

  color: #fff;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  transition: opacity 0.2s ease;
}

body.single-product .jlc-pdp-sticky-cart__button:hover {
  opacity: 0.92;
}

/**
 * ==========================================
 * SOLO MOBILE
 * ==========================================
 */

@media (min-width: 768px) {
  body.single-product .jlc-pdp-sticky-cart {
    display: none !important;
  }
}
