/* Cookie consent banner (Views/Shared/_CookiePopUp.cshtml, rendered from Home only).
   Linked from that partial, so the rest of the site no longer downloads it.

   The <link> sits immediately before the #popup-box markup: a stylesheet link in the body still
   blocks rendering of the content that follows it, so the banner never paints unstyled.

   `transform` is load-bearing for the reveal - cookiePopUp.js toggles .is-visible - so do not add a
   reduced-motion override that redeclares it. If a transition is ever added here, disable it from
   ONE @media (prefers-reduced-motion: reduce) block at the END of this file, motion properties only.

   Centred by auto inline margins between left:0 and right:0 rather than by a hardcoded offset. The
   old rule had no `left` at all - just width:40% with margin-left:18% - so the banner sat left of
   centre and drifted further as the viewport grew. translateX(-50%) is avoided on purpose. */
#popup-box {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 40%;
  margin-inline: auto;
  display: none;
  justify-content: center;
  z-index: 10001;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  padding: 0.75rem 1rem;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

#popup-box.is-visible {
  display: flex;
  visibility: visible;
}

#popup-box .toast-body {
  flex: 1 1 auto;
  padding: 0.25rem 0.5rem;
}

@media only screen and (max-width: 600px) {
  #popup-box {
    width: 63%;
  }
}
