/* Confirmation from js/copy-email.js. Inverted colours (fg on bg) so it reads
   as a layer above the page in both themes. It stays rendered while idle,
   only faded out, so the live region inside is never removed and re-added. */
.toast {
  position: fixed;
  left: 50%;
  /* Clear of the footer: its row (footer.css) is ~56px tall above the same
     safe-area padding. */
  bottom: calc(max(20px, env(safe-area-inset-bottom)) + 64px);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--fg);
  color: var(--bg);
  box-shadow: 0 8px 24px -8px color-mix(in oklch, var(--fg) 45%, transparent);
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.26s var(--ease),
    transform 0.26s var(--ease);
}

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

.toast svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
}

.toast-address {
  color: color-mix(in oklch, var(--bg) 65%, var(--fg));
}
