/* =========================================================
   AniLog — тосты
   ========================================================= */

/* ---------- Тосты ---------- */

.toasts {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  width: min(370px, calc(100vw - 32px));
  flex-direction: column;
  gap: 9px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 12px 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 14px;
  background: rgba(18, 19, 30, 0.96);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  pointer-events: auto;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: toast-in 0.28s var(--ease-out) both;
}

.toast.is-leaving {
  animation: toast-out 0.2s ease both;
}

.toast__icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 9px;
  background: rgba(94, 234, 212, 0.1);
  color: var(--teal);
}

.toast__icon .icon {
  width: 15px;
  height: 15px;
}

.toast--error .toast__icon {
  background: rgba(251, 113, 133, 0.1);
  color: var(--rose);
}

.toast__content {
  min-width: 0;
  flex: 1;
}

.toast__title {
  display: block;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast__text {
  display: block;
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast__action {
  display: inline-flex;
  height: 30px;
  flex-shrink: 0;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.toast__action:hover {
  background: rgba(255, 255, 255, 0.11);
  color: var(--text);
}

.toast__action .icon {
  width: 12px;
  height: 12px;
}

.toast__close {
  display: grid;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted-2);
  transition: background 0.2s ease, color 0.2s ease;
}

.toast__close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.toast__close .icon {
  width: 12px;
  height: 12px;
}
