/* ==========================================================================
   sticky-cta.css : mobile sticky buy bar.
   Load AFTER conversion.css (uses its .cv-btn and tokens, with fallbacks).
   The bar is transform-hidden by default; JS adds .is-visible.
   ========================================================================== */

.cv-stickybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;                       /* above content, below skip link (200) */
  transform: translateY(110%);
  transition: transform .25s ease;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.cv-stickybar.is-visible { transform: translateY(0); }
.cv-stickybar[hidden] { display: none; }

.cv-stickybar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cv-ink, #1b2430);
  color: #fff;
  padding: 10px 12px;
  border-top: 2px solid var(--cv-accent, #0b5f58);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .18);
  max-width: 100%;
}
.cv-stickybar-text {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.35;
  font-size: .85rem;
}
.cv-stickybar-name {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .9rem;
}
.cv-stickybar-price { color: #d9b45b; font-weight: 700; }
.cv-stickybar-note {
  display: block;
  font-size: .7rem;
  color: #b9c4bd;
}
.cv-stickybar-cta {
  flex: none;
  min-height: 48px;                  /* thumb reach, compact in the bar */
  padding: 10px 20px;
  font-size: .95rem;
  width: auto;                       /* override conversion.css mobile full-width */
}
.cv-stickybar-x {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.cv-stickybar-x:hover { background: rgba(255, 255, 255, .12); }
.cv-stickybar-x:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* body padding so the bar never covers page content (set by JS) */
body.cv-has-stickybar { padding-bottom: 76px; }

@media (prefers-reduced-motion: reduce) {
  .cv-stickybar { transition: none; }
}
