.flash-toast-stack {
  position: fixed;
  top: 8.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  width: min(92vw, 44rem);
  pointer-events: none;
}

body.has-status-bar .flash-toast-stack {
  top: 12.8rem;
}

.flash-toast {
  pointer-events: none;
  box-sizing: border-box;
  width: 100%;
  padding: 1.4rem 2rem;
  border: 0;
  border-radius: 1.4rem;
  background: #2b2d38;
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 1.4rem 3.5rem rgba(43, 45, 56, 0.22);
  opacity: 1;
  animation: flash-toast-in 0.28s ease both;
}

.flash-toast--success,
.flash-toast--notice {
  background: #2b2d38;
  color: #fff;
}

.flash-toast--error,
.flash-toast--danger,
.flash-toast--warning {
  background: #c44e00;
  color: #fff;
}

.flash-toast.is-out {
  animation: flash-toast-out 0.32s ease forwards;
}

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

@keyframes flash-toast-out {
  to {
    opacity: 0;
    transform: translateY(-0.8rem);
  }
}
