/* Custom flash container positioning - separate from CSS-Zero flash.css */

/* Flash container for sidebar layout (fixed at top of main content area) */
.flash-container--sidebar {
  position: fixed;
  top: var(--size-4);
  left: var(--sidebar-width, 0);
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none; /* Allow clicks to pass through empty space */
}

.flash-container--sidebar > * {
  pointer-events: auto; /* Re-enable clicks on flash messages */
  max-width: 600px;
}

/* Flash container for centered layout (absolute above card) */
.flash-container--centered {
  position: absolute;
  top: -4.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  max-width: 440px; /* Match the card's max-width */
  width: 100%;
  text-align: center;
}