/* =========================================================
   RB NOTICE - FRONTEND (FLOW-SAFE + SYSTEM ALIGNED)
   ========================================================= */

/* ---------------------------------------------------------
   NOTICE BANNER CONTAINER
--------------------------------------------------------- */

.rb-notice-banner {
  position: relative !important; /* 🔥 critical fix */

  width: 100%;
  z-index: 9999;

  background-color: var(--brand-blue, #0B7FA9);
  color: var(--brand-white, #ffffff);

  /* Visual polish (subtle, not overkill) */
  box-shadow:
    rgba(0, 0, 0, 0.08) 0 2px 8px;

  /* Reset legacy destructive rules */
  top: auto !important;
  left: auto !important;
  transform: none !important;
  margin-top: 0 !important;
  max-width: none !important;
  height: auto !important;
  padding-inline: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

/* ---------------------------------------------------------
   CONTENT NORMALIZATION (GUTENBERG SAFE)
--------------------------------------------------------- */

.rb-notice-banner p {
  margin: 0 !important;
}

/* ---------------------------------------------------------
   MATERIAL SYMBOLS (CLEAN + CONSISTENT)
--------------------------------------------------------- */

.rb-notice-banner .material-symbols-rounded {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  line-height: 1;
  color: currentColor;

  font-variation-settings:
    "FILL" 1,
    "wght" 500,
    "GRAD" 0,
    "opsz" 20;
}

/* ---------------------------------------------------------
   CLOSE BUTTON (ISOLATED, NO CONFLICTS)
--------------------------------------------------------- */

.rb-notice-close {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  color: inherit;
}

.rb-notice-close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

/* ---------------------------------------------------------
   BELL RING ANIMATION (OPTIONAL)
--------------------------------------------------------- */

@keyframes rb-bell-ring {
  0%   { transform: rotate(0deg); }
  15%  { transform: rotate(-15deg); }
  30%  { transform: rotate(15deg); }
  45%  { transform: rotate(-10deg); }
  60%  { transform: rotate(10deg); }
  75%  { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}

.rb-bell-ring {
  animation: rb-bell-ring 0.9s ease-out 1;
  transform-origin: top center;
}