@layer components {
  .toast {
    position: fixed;
    z-index: 60;
    left: 50%;
    bottom: 32px;
    width: max-content;
    max-width: calc(100% - 48px);
    padding: 12px 17px;
    border-radius: var(--radius-filter);
    background: var(--color-button);
    color: var(--color-button-ink);
    font-size: var(--text-body);
    line-height: 1.5;
    box-shadow: var(--shadow-popup);
    transform: translate(-50%, 100%);
    opacity: 0;
    pointer-events: none;
    /* Rises from the bottom edge and sinks back the same way */
    transition: opacity 400ms ease, transform 400ms ease;

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

    @media (prefers-reduced-motion: reduce) {
      transform: translate(-50%, 0);
    }
  }
}
