.friendly-popup-stack {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10000050;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: min(92vw, 360px);
  pointer-events: none;
}

.friendly-popup {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0.85rem 0.95rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  background: #ffffff;
  color: #1f2937;
  pointer-events: auto;
  transform: translateY(-6px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.friendly-popup.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.friendly-popup__icon {
  margin-top: 1px;
  flex-shrink: 0;
}

.friendly-popup__text {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 500;
}

.friendly-popup--success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.friendly-popup--error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

@media (max-width: 640px) {
  .friendly-popup-stack {
    top: auto;
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    width: auto;
  }
}
