.toast {
  --toast-bottom: 1rem;
  --toast-padding: 1.4rem 1.6rem;
  --toast-min-height: 10vh;
  --toast-min-width: 30vw;
  --toast-max-width: min(90vw, 37.5rem);
  --toast-z: 1000;
  
  position: fixed;
  left: 50%;
  bottom: var(--toast-bottom);
  transform: translateX(-50%) translateY(-50%);
  background: var(--color-primary);
  color: var(--color-background);
  padding: var(--toast-padding);
  min-height: var(--toast-min-height);
  min-width: var(--toast-min-width);
  max-width: var(--toast-max-width);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-cta);
  font-family: var(--text-font-family-body);
  font-size: var(--text-size-highlight);
  font-weight: var(--text-weight-strong);
  letter-spacing: var(--text-letter-wide);
  line-height: var(--text-line-base);
  z-index: var(--toast-z);
  opacity: 0;
  transition: opacity var(--motion-slow);
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
}

.toast.is-error {
  background: var(--color-error);
  color: var(--color-background);
}

.is-mobile .toast {
  left: var(--toast-bottom);
  right: var(--toast-bottom);
  transform: translateY(-50%);
  width: auto;
  max-width: none;
  min-width: 0;
  border-radius: var(--radius);
}
