/* ═══════════════════════════════════════════════════════════════════════════
   WP Push Notify Pro — Social Proof Popup CSS
   ═══════════════════════════════════════════════════════════════════════════ */

#wppn-popups { position: fixed; z-index: 999998; pointer-events: none; }

/* ── Popup Base ───────────────────────────────────────────────────────────── */
.wppn-popup {
  position: fixed;
  z-index: 999998;
  width: 300px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.06);
  border-left: 4px solid #6c63ff;
  padding: 14px;
  pointer-events: all;
  cursor: pointer;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity .35s ease, transform .35s ease;
  font-family: -apple-system, 'Inter', BlinkMacSystemFont, sans-serif;
  user-select: none;
}
.wppn-popup.wppn-popup-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Positions */
.wppn-popup.wppn-pos-bottom-left  { bottom: 24px; left: 24px; }
.wppn-popup.wppn-pos-bottom-right { bottom: 24px; right: 24px; transform: translateX(20px); }
.wppn-popup.wppn-pos-bottom-right.wppn-popup-visible { transform: translateX(0); }
.wppn-popup.wppn-pos-top-left     { top: 24px; left: 24px; }
.wppn-popup.wppn-pos-top-right    { top: 24px; right: 24px; }

/* Type accent colors */
.wppn-popup-coupon      { border-left-color: #f59e0b; }
.wppn-popup-testimonial { border-left-color: #22c55e; }
.wppn-popup-countdown   { border-left-color: #ef4444; }
.wppn-popup-email_form  { border-left-color: #3b82f6; }
.wppn-popup-order       { border-left-color: #8b5cf6; }

/* ── Inner Layout ────────────────────────────────────────────────────────── */
.wppn-popup-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}
.wppn-popup-icon-img {
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.wppn-popup-emoji {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}
.wppn-popup-content { flex: 1; min-width: 0; }
.wppn-popup-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e1e2e;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wppn-popup-body {
  font-size: 12px;
  color: #4b5563;
  line-height: 1.5;
}

/* ── Close Button ────────────────────────────────────────────────────────── */
.wppn-popup-close {
  position: absolute;
  top: -4px; right: -4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  font-size: 12px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .2s;
  color: #6b7280;
}
.wppn-popup:hover .wppn-popup-close { opacity: 1; }
.wppn-popup-close:hover { background: #e5e7eb; color: #111; }

/* ── Verified Badge ──────────────────────────────────────────────────────── */
.wppn-verified-badge {
  display: inline-block;
  font-size: 10px;
  color: #22c55e;
  font-weight: 600;
  margin-top: 6px;
}

/* ── Coupon Code ─────────────────────────────────────────────────────────── */
.wppn-coupon-code {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 13px;
  letter-spacing: 1px;
  border: 1px dashed #f59e0b;
  margin-left: 4px;
}

/* ── Stars ───────────────────────────────────────────────────────────────── */
.wppn-stars {
  color: #f59e0b;
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
}

/* ── Countdown ───────────────────────────────────────────────────────────── */
.wppn-countdown {
  font-size: 22px;
  font-weight: 700;
  color: #ef4444;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  padding: 8px 0 4px;
}

/* ── Email Form ──────────────────────────────────────────────────────────── */
.wppn-email-form {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.wppn-email-form input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 12px;
}
.wppn-email-form button {
  padding: 6px 12px;
  background: #6c63ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .wppn-popup {
    width: calc(100vw - 32px);
    bottom: 16px !important;
    left: 16px !important;
    right: auto !important;
    top: auto !important;
  }
}
