.fluxos-toast-stack {
  position: fixed;
  inset: auto max(20px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom)) auto;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  margin: 0;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #142b44;
  z-index: 2147483647;
  box-sizing: border-box;
  pointer-events: none;
}
.fluxos-toast-stack:popover-open,
.fluxos-toast-stack:not([popover]) {
  display: grid;
  gap: 10px;
}
.fluxos-toast-stack,
.fluxos-toast-stack * {
  box-sizing: border-box;
}
@supports not selector(:popover-open) {
  .fluxos-toast-stack {
    display: grid;
    gap: 10px;
  }
}
.fluxos-toast-stack::backdrop {
  background: transparent;
  pointer-events: none;
}
.fluxos-toast-stack .fluxos-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  margin: 0;
  border: 1px solid #dce5ee;
  border-left: 4px solid #2563c5;
  border-radius: 14px;
  background: #fff;
  color: #142b44;
  box-shadow: 0 8px 28px #12263a26;
  font:
    500 14px/1.5 system-ui,
    sans-serif;
  pointer-events: auto;
  animation: fluxos-toast-in 0.18s ease-out;
}
.fluxos-toast-stack .fluxos-toast-success {
  border-left-color: #168052;
}
.fluxos-toast-stack .fluxos-toast-error {
  border-left-color: #bc3045;
}
.fluxos-toast-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background: #edf3fc;
  color: #2563c5;
  font-weight: 800;
}
.fluxos-toast-success .fluxos-toast-icon {
  color: #136740;
  background: #e6f6ec;
}
.fluxos-toast-error .fluxos-toast-icon {
  color: #a61e34;
  background: #fff0f2;
}
.fluxos-toast-message {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.fluxos-toast-stack .fluxos-toast-close {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #f0f4f8;
  color: #365069;
  font: 24px/1 system-ui;
  cursor: pointer;
}
.fluxos-toast-close:focus-visible {
  outline: 2px solid #2563c5;
  outline-offset: 2px;
}
[data-toast][hidden] {
  display: none !important;
}
@keyframes fluxos-toast-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 600px) {
  .fluxos-toast-stack {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .fluxos-toast-stack .fluxos-toast {
    animation: none;
  }
}
@media print {
  .fluxos-toast-stack {
    display: none !important;
  }
}
