/* Anahata v2 — toast. Centred confirmation that fades out on its own. */

.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 60; /* above the PDP action bar (30) and the sheet scrim */
  display: none;
  max-width: calc(100% - var(--a-gutter) * 2);
  padding: var(--a-space-4) var(--a-space-5);
  background: var(--a-ink);
  border-radius: var(--a-radius);
  box-shadow: var(--a-shadow-card);
  font-family: var(--a-font-body);
  font-weight: 600;
  font-size: var(--a-fs-body-l);
  line-height: normal;
  color: var(--a-on-dark);
  text-align: center;
  pointer-events: none; /* never blocks a tap */
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* the slow fade out */
.toast.is-visible.is-leaving {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition-duration: 0.01ms;
  }
}
