/* Yaxii Smart Form Lite — sticky buy button */
.ysfl-sticky-buy {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 999999;
  display: block;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(17, 24, 39, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(110%);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.ysfl-sticky-buy.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.ysfl-sticky-buy__inner {
  width: min(1180px, 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  direction: rtl;
}

.ysfl-sticky-buy__product {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: #ffffff;
}

.ysfl-sticky-buy__title {
  max-width: min(48vw, 520px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
}

.ysfl-sticky-buy__price {
  white-space: nowrap;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}

.ysfl-sticky-buy__button {
  flex: 0 0 auto;
  min-width: 180px;
  height: 46px;
  padding: 0 26px;
  border: 0;
  border-radius: 10px;
  background: var(--ysfl-sticky-primary, #3b82f6) !important;
  color: var(--ysfl-sticky-button-text, #ffffff) !important;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.14);
  transition: filter 160ms ease, transform 160ms ease;
}

.ysfl-sticky-buy__button:hover {
  filter: brightness(0.94);
  transform: translateY(-1px);
}

.ysfl-sticky-buy__button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .ysfl-sticky-buy {
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }

  .ysfl-sticky-buy__inner {
    gap: 10px;
  }

  .ysfl-sticky-buy__product {
    flex: 0 1 auto;
    min-width: 0;
    display: block;
  }

  .ysfl-sticky-buy__title {
    display: none;
  }

  .ysfl-sticky-buy__price {
    font-size: 14px;
  }

  .ysfl-sticky-buy__button {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    padding-inline: 16px;
    font-size: 14px;
  }
}

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

  .ysfl-sticky-buy__button {
    transition: none;
  }
}
