/* The page-drawn toasts (src/toasts.ts), in a stylesheet of their own since 0.5.0: the configurator's toasts on a phone
   (embed.ts) and the answer to a chair's Add to My Design (src/productButtons.ts), which can be on any page, so
   inc/designs-indicator.php enqueues this in the head of every page and nordtisch_enqueue_bundle() with the bundles.
   The empty region stays in the page (no display: none), so a screen reader announces the first toast added to it. */

/* The configurator's toasts below 1000 px (src/toasts.ts): the page draws them fixed to the bottom of its viewport, a
   toast inside the frame went up with the page while it scrolled (Stefan 12.11, phone). The look is the app's toast
   (Figma 249:4610, ui/src/components/configurator.css .toast) at the app's page inset: 20 px up to 767, 56 from 768
   (ui tokens.css --page-inset, --page-inset-tablet), 16 over the bottom. Above the frame that More info pins to the
   viewport (embed.ts, the same z-index, later in the page). The region lets taps through around its toasts. The parts
   are at (0,2,0), (0,3,0) for :hover and :focus, over the Elementor kit's button and paragraph rules, as the band in my-designs.css. */
.nordtisch-toasts {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 16px;
  z-index: 2147483647;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
@media (min-width: 768px) { .nordtisch-toasts { left: 56px; right: 56px; } }

.nordtisch-toasts .nordtisch-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  margin: 0;
  padding: 11px 15px;
  border: 1px solid #fbfbfb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 20px -8px rgba(3, 5, 18, 0.1);
  color: #28292a;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: normal;
  text-align: left;
  pointer-events: auto;
  animation: nordtisch-toast-in 180ms ease-out;
}
@keyframes nordtisch-toast-in { from { opacity: 0; } }

.nordtisch-toasts .nordtisch-toast-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(1, 225, 123, 0.1);
  color: #01e17b;
}
.nordtisch-toasts .nordtisch-toast-icon svg { width: 24px; height: 24px; }

.nordtisch-toasts .nordtisch-toast-text {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  overflow-wrap: anywhere;
}

.nordtisch-toasts .nordtisch-toast-action,
.nordtisch-toasts .nordtisch-toast-action:hover,
.nordtisch-toasts .nordtisch-toast-action:focus {
  flex: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-transform: none;
  cursor: pointer;
}

.nordtisch-toasts .nordtisch-toast-close,
.nordtisch-toasts .nordtisch-toast-close:hover,
.nordtisch-toasts .nordtisch-toast-close:focus {
  display: flex;
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
  color: rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
.nordtisch-toasts .nordtisch-toast-close svg { width: 100%; height: 100%; }
.nordtisch-toasts .nordtisch-toast-action:focus-visible,
.nordtisch-toasts .nordtisch-toast-close:focus-visible { outline: 2px solid #28292a; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { .nordtisch-toasts .nordtisch-toast { animation: none; } }
