/* V2 floating toast — permanent until closed */

.v2-toast-host {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(92vw, 380px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  pointer-events: none;
}

.v2-toast-host .v2-toast {
  pointer-events: auto;
}

.v2-toast {
  margin: 0;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  animation: v2-toast-in 0.22s ease-out both;
}

.v2-toast-success {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.v2-toast-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.v2-toast-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 14px;
}

.v2-toast-success .v2-toast-top {
  border-bottom: 1px solid #bbf7d0;
}

.v2-toast-error .v2-toast-top {
  border-bottom: 1px solid #fecaca;
}

.v2-toast-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  opacity: 0.8;
  flex: none;
}

.v2-toast-close:hover {
  opacity: 1;
  background: rgba(15, 23, 42, 0.06);
}

.v2-toast-body {
  padding: 10px 12px 12px;
  font-size: 14px;
  line-height: 1.45;
}

.v2-toast-body p {
  margin: 0;
}

.v2-toast-body p + p {
  margin-top: 6px;
}

@keyframes v2-toast-in {
  from {
    opacity: 0;
    transform: translate3d(12px, -6px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 480px) {
  .v2-toast-host {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v2-toast {
    animation: none;
  }
}
