.bb-flash-messages {
  position: fixed;
  right: 0;
  left: 0;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 5000;
  top: auto !important;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
  align-items: flex-end !important;
  padding: 0 1rem !important;
}

.bb-flash-messages > div {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  width: 100%;
}

.bb-flash-messages [data-auto-dismiss-message] {
  width: 100%;
  max-width: 28rem;
  pointer-events: auto;
}

body:has(.staff-save-bar:not([hidden])) .bb-flash-messages {
  bottom: calc(6rem + env(safe-area-inset-bottom, 0px)) !important;
}

[data-auto-dismiss-message] {
  transition: opacity 1s linear;
}

.bb-notification-fading {
  opacity: 0 !important;
  pointer-events: none !important;
}
