.app-toast-region {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1080;
  display: grid;
  gap: 12px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

.app-toast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  border: 1px solid rgba(29, 39, 54, 0.14);
  border-left-width: 4px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(29, 39, 54, 0.18);
  animation: app-toast-in 180ms ease-out;
  pointer-events: auto;
}

.app-toast--success {
  border-left-color: #0a5c2e;
}

.app-toast--error {
  border-left-color: #ba1a1a;
}

.app-toast--warning {
  border-left-color: #8a5a00;
}

.app-toast--info {
  border-left-color: #570000;
}

.app-toast__icon {
  margin-top: 1px;
  color: #570000;
  font-size: 22px;
}

.app-toast--success .app-toast__icon {
  color: #0a5c2e;
}

.app-toast--error .app-toast__icon {
  color: #ba1a1a;
}

.app-toast--warning .app-toast__icon {
  color: #8a5a00;
}

.app-toast__content {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.app-toast__content strong {
  color: #1d2736;
  font-size: 0.875rem;
  line-height: 1.3;
}

.app-toast__content span {
  color: #687078;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.app-toast__close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #687078;
  background: transparent;
  cursor: pointer;
}

.app-toast__close:hover,
.app-toast__close:focus {
  color: #1d2736;
  background: #f3f4f6;
}

.app-toast__close .material-symbols-outlined {
  font-size: 18px;
}

.app-toast--leaving {
  animation: app-toast-out 180ms ease-in forwards;
}

@keyframes app-toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes app-toast-out {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 640px) {
  .app-toast-region {
    right: 16px;
    bottom: 16px;
  }
}
