/* eid 31981 - sticky CTA (modele LS) */
.ls-sticky-cta {
  display: none;
}

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

.ls-sticky-cta.is-visible {
  display: block;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 1040;
  pointer-events: none;
  background: #fff;
  border-top: 1px solid #e6eaf0;
  box-shadow: 0 -8px 28px rgba(15, 35, 70, 0.12);
}

.ls-sticky-cta.is-visible .ls-sticky-cta__inner,
.ls-sticky-cta.is-visible .ls-sticky-cta__pop {
  pointer-events: auto;
}

.ls-sticky-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
}

.ls-sticky-cta__product {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.ls-sticky-cta__logo {
  display: none;
  height: 28px;
  width: auto;
  flex: 0 0 auto;
}

.ls-sticky-cta__thumb {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
  background: #f4f6fa;
  flex: 0 0 auto;
}

.ls-sticky-cta__thumb--empty {
  display: block;
}

.ls-sticky-cta__meta {
  min-width: 0;
}

.ls-sticky-cta__name {
  color: #12233d;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ls-sticky-cta__sub {
  margin-top: 2px;
  color: #6b778c;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Kolumna ceny jak traktor.com.pl (między produktem a CTA) */
.ls-sticky-cta__price {
  display: none;
  flex: 0 0 auto;
  text-align: right;
  min-width: 0;
}

.ls-sticky-cta__price-label {
  display: block;
  color: #6b778c;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
}

.ls-sticky-cta__price-value {
  display: block;
  margin-top: 2px;
  color: #12233d;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.ls-sticky-cta__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.ls-sticky-cta__ask {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: #163a8a;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.ls-sticky-cta__ask-icon {
  display: none;
  line-height: 0;
}

.ls-sticky-cta__pin {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: #e23b6a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 48px;
}

.ls-sticky-cta__pin-map {
  display: none;
  line-height: 0;
}

.ls-sticky-cta__pin-phone {
  display: inline-flex;
  line-height: 0;
}

.ls-sticky-cta__pop {
  position: absolute;
  right: 12px;
  bottom: calc(100% + 10px);
  width: min(320px, calc(100vw - 24px));
  padding: 16px 16px 14px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 35, 70, 0.18);
}

.ls-sticky-cta__pop[hidden] {
  display: none !important;
}

.ls-sticky-cta__pop-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #8a94a6;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.ls-sticky-cta__pop-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #12233d;
  font-size: 16px;
  font-weight: 800;
  padding-right: 20px;
}

.ls-sticky-cta__pop-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e23b6a;
  flex: 0 0 10px;
}

.ls-sticky-cta__pop-lead {
  margin: 8px 0 12px;
  color: #5c677a;
  font-size: 13px;
  line-height: 1.4;
}

.ls-sticky-cta__dealer-name {
  color: #12233d;
  font-weight: 800;
  font-size: 14px;
}

.ls-sticky-cta__dealer-addr {
  margin-top: 4px;
  color: #6b778c;
  font-size: 12px;
}

.ls-sticky-cta__map {
  position: relative;
  width: 100%;
  height: 140px;
  margin: 4px 0 2px;
  border-radius: 12px;
  overflow: hidden;
  background: #e8edf4;
}

.ls-sticky-cta__map-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.ls-sticky-cta__maps,
.ls-sticky-cta__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.ls-sticky-cta__maps {
  background: #163a8a;
  color: #fff;
}

.ls-sticky-cta__maps--outline {
  background: #fff;
  color: #163a8a;
  border: 1.5px solid #163a8a;
}

.ls-sticky-cta__maps-ico {
  display: inline-flex;
  line-height: 0;
}

.ls-sticky-cta__call {
  background: #e23b6a;
  color: #fff;
}

html.has-ls-sticky-cta {
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 992px) {
  .ls-sticky-cta__inner {
    max-width: none;
    width: 100%;
    padding: 14px 24px calc(14px + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
  }

  .ls-sticky-cta__logo {
    display: block;
    padding-right: 12px;
    margin-right: 4px;
    border-right: 1px solid #e6eaf0;
  }

  .ls-sticky-cta__thumb {
    width: 64px;
    height: 64px;
  }

  .ls-sticky-cta__name {
    font-size: 16px;
  }

  .ls-sticky-cta.has-price .ls-sticky-cta__price {
    display: block;
    min-width: 140px;
    margin: 0 8px;
  }

  .ls-sticky-cta__price-value {
    font-size: 22px;
  }

  .ls-sticky-cta__ask-icon {
    display: inline-flex;
  }

  .ls-sticky-cta__pin-phone {
    display: none;
  }

  .ls-sticky-cta__pin-map {
    display: inline-flex;
  }

  .ls-sticky-cta__pop {
    right: 24px;
    width: min(340px, calc(100vw - 48px));
  }
}

@media (max-width: 991px) {
  .ls-sticky-cta__name,
  .ls-sticky-cta__sub {
    display: none;
  }

  /* Mobile/tablet jak traktor: cena + CTA */
  .ls-sticky-cta.has-price .ls-sticky-cta__product {
    display: none;
  }

  .ls-sticky-cta.has-price .ls-sticky-cta__price {
    display: block;
    flex: 0 1 42%;
    text-align: left;
  }

  .ls-sticky-cta.has-price .ls-sticky-cta__actions {
    flex: 1 1 58%;
    justify-content: flex-end;
  }

  .ls-sticky-cta__price-value {
    font-size: 16px;
  }
}

  .ls-sticky-cta__ask {
    font-size: 13px;
    padding: 10px 12px;
  }
}
