/* Notificações compartilhadas; isoladas dos estilos antigos de toast. */
.flow-notifications {
  position: fixed;
  inset: auto auto 24px 24px;
  z-index: 999999;
  width: min(368px, calc(100vw - 32px));
  max-height: min(440px, calc(100dvh - 104px));
  /* Espaço para a sombra: a rolagem não recorta os cantos do cartão. */
  box-sizing: content-box;
  padding: 24px;
  margin: -24px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  pointer-events: none;
  scrollbar-width: thin;
}
.flow-notice {
  --notice-accent: #0369a1;
  --notice-tint: #e0f2fe;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 32px;
  gap: 10px;
  align-items: start;
  padding: 16px 12px 16px 16px;
  background: var(--bg-surface-1, #fff);
  color: var(--text-main, #0f172a);
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(15, 23, 42, .16);
  pointer-events: auto;
  animation: notice-enter 160ms ease-out;
}
.flow-notice--success { --notice-accent: #047857; --notice-tint: #d1fae5; }
.flow-notice--warning { --notice-accent: #92400e; --notice-tint: #fef3c7; }
.flow-notice--error { --notice-accent: #b91c1c; --notice-tint: #fee2e2; }
.flow-notice__icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--notice-tint); color: var(--notice-accent); }
.flow-notice svg { width: 18px; height: 18px; }
.flow-notice__content { min-width: 0; overflow-wrap: anywhere; }
.flow-notice__content strong { display: block; font-size: 13px; font-weight: 800; line-height: 1.5; }
.flow-notice__content p { margin: 4px 0 0; font-size: 13px; font-weight: 500; line-height: 1.6; color: var(--text-muted, #334155); }
.flow-notice__close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--text-muted, #334155); cursor: pointer; }
.flow-notice__close:hover { background: var(--bg-surface-3, #f1f5f9); }
.flow-notice__close:focus-visible { outline: 2px solid var(--notice-accent); outline-offset: 2px; }
.flow-notice ::selection { background: var(--notice-tint); color: var(--text-main, #0f172a); }
/* Nos terminais, a faixa inferior contém atalhos e ações do atendimento. */
body.pdv-layout-classico .flow-notifications,
body.pdv-atendimento-ativo .flow-notifications { inset: 96px 24px auto auto; }
@keyframes notice-enter { from { transform: translateY(-6px); } to { transform: translateY(0); } }
@media (max-width: 600px) {
  .flow-notifications,
  body.pdv-layout-classico .flow-notifications,
  body.pdv-atendimento-ativo .flow-notifications { inset: 76px 12px auto 12px; width: auto; max-height: min(40dvh, 360px); }
  .flow-notice { grid-template-columns: 28px minmax(0, 1fr) 44px; padding: 12px; gap: 8px; }
  .flow-notice__close { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .flow-notice { animation: none; } }
