.banner-root {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(88px + var(--safe-b));
  z-index: 1150;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-height: calc(100vh - 112px - var(--safe-b));
  max-height: calc(100dvh - 112px - var(--safe-b));
  overflow-y: auto;
  overscroll-behavior: contain;
}
body[data-searching="true"] .banner-root { bottom: auto; top: 118px; }
.banner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #93C5FD;
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  animation: banner-in 240ms ease;
}
.banner.is-leaving { animation: banner-out 200ms ease forwards; }
.banner-glyph { flex: 0 0 auto; color: #2563EB; }
.banner-message { flex: 1; font-size: var(--fs-14); line-height: 1.35; }
.banner-action {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #93C5FD;
  color: #1E40AF;
  font-size: var(--fs-12);
  font-weight: 600;
}
.banner-action:hover { background: #EFF6FF; }
.banner-action:focus-visible, .banner-dismiss:focus-visible { outline: 3px solid #2563EB; outline-offset: 2px; }
.banner-dismiss { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 999px; color: #1E40AF; opacity: 0.8; }
.banner-dismiss:hover { opacity: 1; background: rgba(37, 99, 235, 0.1); }
.banner-success { background: #F0FDF4; color: #166534; border-color: #86EFAC; }
.banner-success .banner-glyph, .banner-success .banner-dismiss { color: #166534; }
.banner-success .banner-action { border-color: #86EFAC; color: #166534; }
.banner-success .banner-action:focus-visible, .banner-success .banner-dismiss:focus-visible { outline-color: #166534; }
@keyframes banner-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes banner-out { from { opacity: 1; } to { opacity: 0; transform: translateY(10px); } }
@media (min-width: 900px) {
  .banner-root { left: auto; right: 424px; bottom: 110px; max-width: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  .banner, .banner.is-leaving { animation: none; }
}
