/* ============================================
   WhatsApp Conversion Widgets — Universal CSS
   Shared across all brands, controlled via BRAND_CONFIG
   ============================================ */

/* === DESKTOP STICKY WHATSAPP BUTTON (>=769px) === */
.wa-sticky {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: none;
}
@media (min-width: 769px) {
  .wa-sticky { display: flex; align-items: center; gap: 10px; }
}
.wa-sticky__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.wa-sticky__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.wa-sticky__btn svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}
.wa-sticky__label {
  background: #fff;
  color: #333;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.5s;
  pointer-events: none;
}
.wa-sticky__label--hidden { opacity: 0; }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.wa-sticky__btn--pulse { animation: wa-pulse 1.5s ease 2; }

/* === MOBILE STICKY CTA BAR (<=768px) === */
.wa-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: #fff;
  display: none;
  padding: 8px 12px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.12);
  gap: 8px;
  transition: transform 0.3s;
}
@media (max-width: 768px) {
  .wa-mobile-bar { display: flex; }
}
.wa-mobile-bar--hidden { transform: translateY(100%); }
.wa-mobile-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.wa-mobile-bar__btn--primary {
  color: #fff;
}
.wa-mobile-bar__btn--wa {
  background: #25D366;
  color: #fff;
}
.wa-mobile-bar__btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* === EXIT-INTENT POPUP (Desktop only) === */
.wa-exit-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.wa-exit-overlay--active { display: flex; }
@media (max-width: 768px) {
  .wa-exit-overlay { display: none !important; }
}
.wa-exit-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: wa-exit-in 0.3s ease;
}
@keyframes wa-exit-in {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.wa-exit-card__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #999;
  line-height: 1;
  padding: 4px;
}
.wa-exit-card__close:hover { color: #333; }
.wa-exit-card__headline {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
}
.wa-exit-card__subline {
  font-size: 15px;
  color: #666;
  margin: 0 0 24px;
  line-height: 1.5;
}
.wa-exit-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s;
}
.wa-exit-card__cta:hover { background: #1fb855; }
.wa-exit-card__cta svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}
.wa-exit-card__alt {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  color: #888;
}
.wa-exit-card__alt a {
  color: inherit;
  text-decoration: underline;
}
.wa-exit-card__alt a:hover { color: #333; }

/* === SOCIAL-PROOF TOAST NOTIFICATIONS === */
.wa-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9997;
  background: #fff;
  border-radius: 10px;
  padding: 12px 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  font-size: 13px;
  color: #333;
  max-width: 320px;
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.wa-toast--visible {
  transform: translateX(0);
  opacity: 1;
}
@media (max-width: 768px) {
  .wa-toast {
    bottom: 68px;
    left: 12px;
    right: 12px;
    max-width: none;
  }
}
