/* ═══════════════════════════════════════════════════════════════════════════
   MSCPLTD Social Proof — Frontend Stylesheet
   Exact brand match: Green #2e7d32 | Red #c62828 | Font: Outfit/Inter
   ═══════════════════════════════════════════════════════════════════════════ */
@charset "UTF-8";

/* ── Root container ────────────────────────────────────────────────────────── */
#mscsp-root {
  position: fixed;
  z-index: 999999;
  pointer-events: none;
  font-family: 'Inter', 'Outfit', 'Segoe UI', -apple-system, sans-serif;
}

/* ── Positions ─────────────────────────────────────────────────────────────── */
#mscsp-root.mscsp-pos-bottom-left  { bottom: 28px; left: 24px; }
#mscsp-root.mscsp-pos-bottom-right { bottom: 28px; right: 24px; }
#mscsp-root.mscsp-pos-top-right    { top: 90px; right: 24px; }

/* ═══════════════════════════════════════════════════════════════════════════
   CARD — matches MSCPLTD's premium card style (white BG, green/red accents)
   ═══════════════════════════════════════════════════════════════════════════ */
.mscsp-card {
  pointer-events: all;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  width: 330px;
  max-width: calc(100vw - 48px);
  padding: 14px 16px 16px 20px;
  border-radius: 14px;
  /* Matches website card style: white background, subtle shadow */
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--mscsp-accent, #2e7d32);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.10),
    0 1px 4px rgba(0, 0, 0, 0.06);
  color: #111827;
  overflow: hidden;
  will-change: transform, opacity;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mscsp-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.14),
    0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ── Live dot on the left border ───────────────────────────────────────────── */
.mscsp-card::after {
  content: '';
  position: absolute;
  top: 18px;
  left: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mscsp-accent, #2e7d32);
  box-shadow: 0 0 0 2px #fff;
}

/* ── Icon Badge ────────────────────────────────────────────────────────────── */
.mscsp-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--mscsp-icon-bg, #e8f5e9);
  border: 1.5px solid var(--mscsp-icon-border, #c8e6c9);
}

/* ── Body ──────────────────────────────────────────────────────────────────── */
.mscsp-body { flex: 1; min-width: 0; }

/* Type badge — matches MSCPLTD's green badge style */
.mscsp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--mscsp-accent, #2e7d32);
  margin-bottom: 4px;
}

/* Pulsing live dot */
.mscsp-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mscsp-accent, #2e7d32);
  animation: mscsp-blink 1.8s ease-in-out infinite;
}

.mscsp-message {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #111827;
  margin: 0 0 3px;
}

.mscsp-detail {
  font-size: 11.5px;
  color: #475569;
  margin: 0 0 9px;
  font-weight: 500;
}

/* CTA — matches MSCPLTD's red CTA button style */
.mscsp-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: 'Outfit', 'Inter', sans-serif;
  text-decoration: none !important;
  background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
  color: #fff !important;
  border: none;
  cursor: pointer;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(198, 40, 40, 0.30);
  transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.mscsp-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(198, 40, 40, 0.40);
}

/* Offer card — red accent */
.mscsp-card.mscsp-type-offer {
  border-left-color: #c62828;
  background: #fff;
}
.mscsp-card.mscsp-type-offer .mscsp-cta {
  width: 100%;
  justify-content: center;
  padding: 8px 14px;
  margin-top: 4px;
}
.mscsp-card.mscsp-type-offer::after { background: #c62828; }

/* Review stars */
.mscsp-stars {
  color: #f59e0b;
  font-size: 12px;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 3px;
}

/* Visitor count pill */
.mscsp-visitor-count {
  display: inline-block;
  background: #e8f5e9;
  border: 1.5px solid #c8e6c9;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #2e7d32;
}

/* BFSCD badge — green government-style */
.mscsp-bfscd-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #1b5e20;
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

/* Close button */
.mscsp-close {
  position: absolute;
  top: 9px; right: 9px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #94a3b8;
  font-size: 11px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
  flex-shrink: 0;
}
.mscsp-close:hover {
  background: #fee2e2;
  color: #c62828;
  border-color: #fecaca;
}

/* Brand footer */
.mscsp-brand {
  font-size: 9.5px;
  color: #94a3b8;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 500;
}
.mscsp-brand::before { content: '\1F6E1\FE0F'; font-size: 9px; }

/* Progress bar — green to red */
.mscsp-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: #f1f5f9;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
}
.mscsp-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #2e7d32, #c62828);
  transform-origin: left;
  animation: mscsp-shrink linear forwards;
  animation-duration: var(--mscsp-duration, 7s);
}

/* ════════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════════════════════════════════════ */

/* Slide in from left (bottom-left position) */
.mscsp-anim-slide.mscsp-enter  { animation: mscsp-slide-in  0.40s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.mscsp-anim-slide.mscsp-exit   { animation: mscsp-slide-out 0.30s cubic-bezier(0.55, 0, 1, 0.45) forwards; }

/* Slide in from right (bottom-right / top-right) */
.mscsp-pos-bottom-right .mscsp-anim-slide.mscsp-enter,
.mscsp-pos-top-right    .mscsp-anim-slide.mscsp-enter { animation-name: mscsp-slide-in-right; }
.mscsp-pos-bottom-right .mscsp-anim-slide.mscsp-exit,
.mscsp-pos-top-right    .mscsp-anim-slide.mscsp-exit  { animation-name: mscsp-slide-out-right; }

/* Fade */
.mscsp-anim-fade.mscsp-enter   { animation: mscsp-fade-in  0.35s ease forwards; }
.mscsp-anim-fade.mscsp-exit    { animation: mscsp-fade-out 0.30s ease forwards; }

/* Bounce */
.mscsp-anim-bounce.mscsp-enter { animation: mscsp-bounce-in 0.50s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.mscsp-anim-bounce.mscsp-exit  { animation: mscsp-slide-out 0.30s ease forwards; }

@keyframes mscsp-slide-in {
  from { transform: translateX(-115%); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}
@keyframes mscsp-slide-out {
  from { transform: translateX(0);     opacity: 1; }
  to   { transform: translateX(-115%); opacity: 0; }
}
@keyframes mscsp-slide-in-right {
  from { transform: translateX(115%);  opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}
@keyframes mscsp-slide-out-right {
  from { transform: translateX(0);     opacity: 1; }
  to   { transform: translateX(115%);  opacity: 0; }
}
@keyframes mscsp-fade-in {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes mscsp-fade-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}
@keyframes mscsp-bounce-in {
  0%   { transform: scale(0.70) translateY(16px); opacity: 0; }
  60%  { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes mscsp-shrink {
  from { width: 100%; }
  to   { width: 0%;   }
}
@keyframes mscsp-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

/* ── Mobile safe area ───────────────────────────────────────────────────────── */
@media (max-width: 500px) {
  #mscsp-root.mscsp-pos-bottom-left,
  #mscsp-root.mscsp-pos-bottom-right {
    bottom: max(16px, env(safe-area-inset-bottom, 16px));
    left: 12px;
    right: 12px;
  }
  .mscsp-card {
    width: 100%;
    max-width: 100%;
  }
}
