/**
 * TSP Select — premium toast notifications (forms only)
 */
.tsp-toast-root {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
  max-width: min(22rem, calc(100vw - 2rem));
}

.tsp-toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem 0.9rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(61, 181, 166, 0.28);
  background: rgba(10, 22, 40, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 0 0 1px rgba(42, 157, 143, 0.1),
    0 12px 32px rgba(0, 0, 0, 0.38),
    0 4px 12px rgba(10, 22, 40, 0.45);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transition:
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tsp-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tsp-toast.is-leaving {
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
}

.tsp-toast__accent {
  flex-shrink: 0;
  width: 3px;
  align-self: stretch;
  border-radius: 999px;
  background: linear-gradient(180deg, #3db5a6 0%, #2a9d8f 100%);
}

.tsp-toast__icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-size: 1rem;
  color: #3db5a6;
}

.tsp-toast--error .tsp-toast__icon {
  color: #f4a6a0;
}

.tsp-toast--error .tsp-toast__accent {
  background: linear-gradient(180deg, #e07a72 0%, #c45c55 100%);
}

.tsp-toast__message {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 500;
}

@media (max-width: 480px) {
  .tsp-toast-root {
    top: auto;
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tsp-toast {
    transition: opacity 0.15s ease;
    transform: none;
  }

  .tsp-toast.is-visible,
  .tsp-toast.is-leaving {
    transform: none;
  }
}
