/**
 * CRO styles — sticky price bar + exit-intent overlay.
 *
 * Designed to be theme-neutral. Override in brand child theme if needed.
 */

/* ─── Sticky price bar ─────────────────────────────────────────────── */
.publisher-sticky-price {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: var(--brand-primary, #2B5EA7);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-size: 0.9rem;
  transform: translateY(-100%);
  transition: transform 220ms ease;
}
.publisher-sticky-price[style*="block"] {
  transform: translateY(0);
}
.publisher-sticky-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
}
.publisher-sticky-price-text {
  font-weight: 600;
  flex: 1;
}
.publisher-sticky-cta {
  background: #fff;
  color: var(--brand-primary, #2B5EA7);
  padding: 6px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.publisher-sticky-cta:hover {
  filter: brightness(1.08);
}
.publisher-sticky-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.7;
}
.publisher-sticky-close:hover {
  opacity: 1;
}

/* ─── Exit-intent overlay ──────────────────────────────────────────── */
.publisher-exit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: pubExitFade 200ms ease;
}
@keyframes pubExitFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.publisher-exit-modal {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.publisher-exit-modal h3 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
}
.publisher-exit-modal p {
  margin: 0 0 16px 0;
  color: #555;
}
.publisher-exit-cta {
  display: inline-block;
  background: var(--brand-primary, #2B5EA7);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.publisher-exit-cta:hover {
  filter: brightness(1.08);
}
.publisher-exit-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  opacity: 0.6;
}
.publisher-exit-close:hover {
  background: rgba(0, 0, 0, 0.05);
  opacity: 1;
}

/* Body offset when sticky is active — push content down so it doesn't
   hide behind the bar. */
body.publisher-has-sticky {
  padding-top: 44px;
}
