/* The toast: one line over the bottom of the page, clear of the window margin; it goes by itself (toast.js). */
[data-part="toast"] {
  position: fixed;
  inset-inline: var(--spacing-window);
  inset-block-end: var(--spacing-window);
  z-index: 60;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: var(--spacing-row);
  padding: var(--spacing-row) var(--spacing-md);
  border-radius: var(--radius-md);
  background-color: var(--app-ink);
  color: var(--app-bg);
  font-family: Almarai, sans-serif;
  font-size: var(--font-size-sm);
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  pointer-events: none; /* it never eats the tap that comes next */
}

[data-part="toast-text"] {
  flex: 1 1 auto;
  min-width: 0;
}

/* «تراجع»: the one part of the toast that takes a tap, a 44 px target */
[data-part="toast-action"] {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--spacing-sm);
  border: 0;
  background-color: transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  pointer-events: auto;
}
