/* ============================================================
   Snusowo — Licznik Popularności (Social Proof) v1.0.1
   @author Mateusz Minakowski
   ============================================================ */

/* 1. Product Miniature Slot (reserves consistent row height across cards) */
.wst-pop-slot {
  min-height: 24px;
  display: flex;
  align-items: center;
  margin-top: 2px;
  width: 100%;
  min-width: 0;
}

.wst-pop-mini {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 3.5px 9px;
  border-radius: 999px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* Tier 1: HOT / Bestseller — Dark Gold/Amber Fire */
.wst-pop-mini--hot {
  background: linear-gradient(135deg, #16120b 0%, #261b0b 100%);
  border: 1px solid rgba(245, 158, 11, 0.48);
  color: #f8fafc;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.14);
}

.wst-pop-mini--hot .wst-pop-mini__tag {
  color: #fbbf24;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.wst-pop-mini--hot .wst-pop-mini__sep {
  color: rgba(251, 191, 36, 0.55);
  font-weight: 700;
  flex-shrink: 0;
}

.wst-pop-mini--hot .wst-pop-mini__text {
  color: #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wst-pop-mini--hot .wst-pop-mini__text strong {
  color: #fde047;
  font-weight: 800;
}

/* Tier 2: Popular — Snusowo Mint Emerald */
.wst-pop-mini--trend {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid rgba(16, 185, 129, 0.42);
  color: #064e3b;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.08);
}

.wst-pop-mini--trend .wst-pop-mini__text {
  color: #065f46;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wst-pop-mini--trend .wst-pop-mini__text strong {
  color: #047857;
  font-weight: 800;
}

.wst-pop-mini__ico {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: wstPopFlame 2.2s ease-in-out infinite;
}

.wst-pop-mini__ico--mint {
  animation: none;
}

.wst-pop-mini__ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 767.98px) {
  .wst-pop-slot {
    min-height: 22px;
  }
  .wst-pop-mini {
    font-size: 10px;
    padding: 3px 7px;
    gap: 4px;
  }
  .wst-pop-mini--hot .wst-pop-mini__tag {
    font-size: 9.5px;
  }
  .wst-pop-mini__ico {
    width: 11.5px;
    height: 11.5px;
    flex: 0 0 11.5px;
  }
}

@media (max-width: 440px) {
  .wst-pop-mini__verb {
    display: none;
  }
  .wst-pop-mini {
    font-size: 9.5px;
    padding: 2.5px 6.5px;
    gap: 3.5px;
  }
}

/* 2. Product Page (PDP) Social Proof Banner (.wst-pop-pdp) */
.wst-pop-pdp {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 14px;
  padding: 11px 14px;
  border-radius: 12px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  box-sizing: border-box;
  width: 100%;
}

.wst-pop-pdp--hot {
  background: linear-gradient(135deg, #0f172a 0%, #1c160d 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.wst-pop-pdp--trend {
  background: linear-gradient(135deg, #f0fdf9 0%, #ecfdf5 100%);
  border: 1px solid rgba(16, 185, 129, 0.42);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

.wst-pop-pdp__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wst-pop-pdp--hot .wst-pop-pdp__icon {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.22);
}

.wst-pop-pdp--trend .wst-pop-pdp__icon {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.32);
}

.wst-pop-pdp__icon svg {
  width: 21px;
  height: 21px;
  display: block;
  animation: wstPopFlame 2.2s ease-in-out infinite;
}

.wst-pop-pdp__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wst-pop-pdp__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.wst-pop-pdp__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}

.wst-pop-pdp__badge--hot {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
  color: #0b0f17;
}

.wst-pop-pdp__badge--trend {
  background: #10b981;
  color: #ffffff;
}

.wst-pop-pdp__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #fcd34d;
}

.wst-pop-pdp__live--trend {
  color: #047857;
}

.wst-pop-pdp__dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
  animation: wstLiveDot 1.6s ease-in-out infinite;
}

.wst-pop-pdp__dot--trend {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.wst-pop-pdp__copy {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: #f1f5f9;
}

.wst-pop-pdp--trend .wst-pop-pdp__copy {
  color: #064e3b;
}

.wst-pop-pdp--hot .wst-pop-pdp__copy strong {
  color: #fde047;
  font-weight: 800;
}

.wst-pop-pdp--trend .wst-pop-pdp__copy strong {
  color: #047857;
  font-weight: 800;
}

.wst-pop-pdp__bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 2px;
}

.wst-pop-pdp--trend .wst-pop-pdp__bar-track {
  background: rgba(16, 185, 129, 0.18);
}

.wst-pop-pdp__bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b 0%, #ef4444 55%, #fde047 100%);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
  transition: width 0.5s ease;
}

.wst-pop-pdp--trend .wst-pop-pdp__bar-fill {
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  box-shadow: none;
}

@keyframes wstPopFlame {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(-3deg); }
}

@keyframes wstLiveDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

@media (max-width: 575.98px) {
  .wst-pop-pdp {
    padding: 9px 11px;
    gap: 10px;
    margin: 8px 0 12px;
  }
  .wst-pop-pdp__icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }
  .wst-pop-pdp__copy {
    font-size: 12px;
  }
}
