.evt-toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(380px, 100vw - 32px);
  pointer-events: none;
}

.evt-toast {
  --evt-toast-accent: #3b6fe0;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-sizing: border-box;
  padding: 14px 12px 16px 16px;
  overflow: hidden;
  border: 1px solid rgba(22, 20, 28, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(22, 20, 28, 0.06), 0 16px 40px rgba(22, 20, 28, 0.14);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: #16141c;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.evt-toast.is-in {
  opacity: 1;
  transform: none;
}
.evt-toast.is-leaving {
  opacity: 0;
  transform: translateX(24px);
}
.evt-toast--success {
  --evt-toast-accent: #1f9d61;
}
.evt-toast--info {
  --evt-toast-accent: #3b6fe0;
}
.evt-toast--warning {
  --evt-toast-accent: #d98a0b;
}
.evt-toast--error {
  --evt-toast-accent: #dc3b4f;
}
.evt-toast__icon {
  flex: none;
  margin-top: 1px;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--evt-toast-accent);
}
.evt-toast__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.evt-toast__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: -3px 0 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 0.8rem;
  color: #6b6475;
  cursor: pointer;
}
.evt-toast__close:hover, .evt-toast__close:focus-visible {
  background: rgba(22, 20, 28, 0.06);
  color: #16141c;
}
.evt-toast__timer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--evt-toast-accent);
  opacity: 0.85;
  transform-origin: left;
}
.evt-toast.is-in .evt-toast__timer {
  animation: evt-toast-timer var(--evt-toast-delay, 6000ms) linear forwards;
}
.evt-toast.is-paused .evt-toast__timer {
  animation-play-state: paused;
}

@keyframes evt-toast-timer {
  to {
    transform: scaleX(0);
  }
}
@media (max-width: 575px) {
  .evt-toasts {
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .evt-toast {
    transition: opacity 0.2s ease;
    transform: none;
  }
  .evt-toast.is-leaving {
    transform: none;
  }
}
