.toast-container {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 140;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid #dfe5ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(16, 24, 40, 0.18);
  pointer-events: auto;
  animation: toast-in 0.18s ease-out;
}

.toast [data-icon] {
  width: 22px;
  height: 22px;
}

.toast-copy {
  min-width: 0;
}

.toast strong,
.toast p {
  margin: 0;
}

.toast p {
  margin-top: 3px;
  color: #667085;
  line-height: 1.4;
}

.toast button {
  min-height: auto;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #667085;
  font-size: 1.1rem;
}

.toast-success {
  border-color: #a7d8ce;
}

.toast-error {
  border-color: #f4b4ad;
}

.toast-warning {
  border-color: #f7d487;
}

.toast-info {
  border-color: #b9cdf7;
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 780px) {
  .toast-container {
    inset: 12px 12px auto 12px;
    width: auto;
  }
}
