/* Tastevia toast — bottom-right stack */

.tastevia-toast-stack {
  position: fixed;
  z-index: 99999;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.tastevia-toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  gap: 12px;
  align-items: start;
  padding: 14px 14px 14px 16px;
  border-radius: 14px;
  background: #111827;
  color: #f9fafb;
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.22),
    0 2px 8px rgba(15, 23, 42, 0.12);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.tastevia-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tastevia-toast.is-leaving {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
}

.tastevia-toast__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  color: #93c5fd;
}

.tastevia-toast--success .tastevia-toast__icon {
  color: #4ade80;
}

.tastevia-toast--error .tastevia-toast__icon {
  color: #f87171;
}

.tastevia-toast__message {
  margin: 0;
  padding-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.tastevia-toast__close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(249, 250, 251, 0.7);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.tastevia-toast__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

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