/* ==========================================================================
   Social Proof — Toast Notifications
   Paleta consistente com urgencybadges: #295441 (dark green), #87B13B (primary)
   ========================================================================== */

/* ── Container — canto inferior esquerdo, acima do conteúdo ────────────── */
.waub-sp-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9990;
  pointer-events: none;
  max-width: 340px;
  width: 100%;
}

/* ── Toast base ────────────────────────────────────────────────────────── */
.waub-sp-toast {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(41, 84, 65, 0.18);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.06);
  padding: 12px 14px;
  pointer-events: auto;
  cursor: default;

  /* Animação de entrada: slide-in da esquerda + fade */
  opacity: 0;
  transform: translateX(-30px) translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.waub-sp-toast--visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.waub-sp-toast--exit {
  opacity: 0;
  transform: translateX(-40px) translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ── Close button ──────────────────────────────────────────────────────── */
.waub-sp-toast__close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.waub-sp-toast__close:hover {
  color: #333;
  background: rgba(0, 0, 0, 0.06);
}

/* ── Body layout (image + content) ─────────────────────────────────────── */
.waub-sp-toast__body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.waub-sp-toast__img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #f5f5f5;
}

.waub-sp-toast__content {
  flex: 1;
  min-width: 0;
  padding-right: 16px;
}

/* ── Text ──────────────────────────────────────────────────────────────── */
.waub-sp-toast__text {
  font-size: 13px;
  line-height: 1.4;
  color: #333;
  margin-bottom: 2px;
}

.waub-sp-toast__text strong {
  color: #295441;
  font-weight: 600;
}

.waub-sp-toast__link {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #295441;
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.waub-sp-toast__link:hover {
  color: #87B13B;
  text-decoration: underline;
}

.waub-sp-toast__time {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

/* ── Barra decorativa verde (topo do toast) ────────────────────────────── */
.waub-sp-toast::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: linear-gradient(90deg, #87B13B, #295441);
  border-radius: 2px 2px 0 0;
}

/* ── Mobile ────────────────────────────────────────────────────────────── */
@media (max-width: 576px) {
  .waub-sp-container {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
  }

  .waub-sp-toast {
    padding: 10px 12px;
  }

  .waub-sp-toast__img {
    width: 42px;
    height: 42px;
  }

  .waub-sp-toast__text,
  .waub-sp-toast__link {
    font-size: 12px;
  }
}
