.toast {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  opacity: 0;
  transform: translate(-50%, -140%) scale(0.8);
  transition:
    opacity var(--dur) var(--ease-out),
    transform 560ms var(--ease-spring);
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.toast__icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--brand-ink);
  background: var(--brand);
}

.toast__icon svg {
  width: 14px;
  height: 14px;
}

@media (min-width: 641px) {
  .toast {
    top: 90px;
  }
}

.toast--error .toast__icon {
  color: #1a1204;
  background: var(--danger);
}
