.toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 340px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--navy);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.45;
  color: #fff;
  animation: toast-in 0.2s ease;
}
.toast.toast-hide {
  animation: toast-out 0.16s ease forwards;
}

.toast-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
}
.toast-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}
.toast-success .toast-icon {
  color: #4ade80;
}
.toast-error .toast-icon {
  color: #f87171;
}
.toast-warning .toast-icon {
  color: #fbbf24;
}
.toast-info .toast-icon {
  color: #93c5fd;
}

.toast-text {
  flex: 1;
  padding-top: 1px;
}

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0 0 4px;
}
.toast-close:hover {
  color: #fff;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 480px) {
  .toast-stack {
    bottom: 16px;
    right: 12px;
    left: 12px;
    max-width: none;
    width: auto;
  }
}
