/* =============================
   NOTIFICATION BAR
   Sits above the fixed headers. --nb-h is the height the rest of the page is
   pushed down by; notification-bar.js keeps it in sync when the text wraps.

   The background gradient is set here, not in wp-admin - edit the `background`
   declaration below to restyle every bar at once.
============================= */
.notification-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 300;
  color: var(--nb-color, #fff);
  /* Revealed by the inline script once it has confirmed the bar is not expired
     or already dismissed, so an unwanted bar never flashes. */
  visibility: hidden;
  background: linear-gradient(270deg, #FF2626 0%, #FF2F70 30%, #FF2626 70.5%, #FF2F70 100%);
}

.has-notification-bar .notification-bar {
  visibility: visible;
}

.notification-bar__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--container-max, 107.5rem);
  margin: 0 auto;
  padding: 0.3rem 1.5rem;
}

.notification-bar__eyebrow {
  flex: 0 0 auto;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  color: #FFF;
  /* Eyebrow Small */
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
}

/* Centred against the bar, not against the eyebrow/close buttons. */
.notification-bar__message {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  max-width: calc(100% - 20rem);
  color: inherit;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  font-family: Inter;
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 500;
}

a.notification-bar__message:hover,
a.notification-bar__message:focus-visible {
  color: inherit;
  text-decoration: none;
}

.notification-bar__arrow {
  flex: 0 0 auto;
  transition: transform 0.25s cubic-bezier(.2, .8, .22, 1);
}

a.notification-bar__message:hover .notification-bar__arrow {
  transform: translateX(0.25rem);
}

.notification-bar__close {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.notification-bar__close:hover,
.notification-bar__close:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, 0.18);
}

/* =============================
   PAGE OFFSET
   The headers are position:fixed, so they get pushed down explicitly while the
   rest of the page is pushed down with body padding.
============================= */
.has-notification-bar {
  --nb-h: 3.5rem;
}

.has-notification-bar body {
  padding-top: var(--nb-h);
}

.has-notification-bar .site-header,
.has-notification-bar .header-mobile {
  top: var(--nb-h);
}

.notification-bar__message .arrow_btn {
  width: 5.4%;
}

/* =============================
   MOBILE
============================= */
@media (max-width: 991px) {
  .has-notification-bar {
    --nb-h: 3.25rem;
  }

  .notification-bar__inner {
    gap: 0.5rem;
    padding: 0.5rem 1rem;
  }

  /* Not enough room to centre against the bar - lay it out in flow instead. */
  .notification-bar__message {
    position: static;
    left: auto;
    transform: none;
    max-width: none;
    flex: 1 1 auto;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
  }

  .notification-bar__eyebrow {
    display: none;
  }

  .notification-bar__arrow {
    width: 18px;
    height: 10px;
  }

  .notification-bar__close {
    width: 1.75rem;
    height: 1.75rem;
  }

  .notification-bar__close svg {
    width: 14px;
    height: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notification-bar__arrow {
    transition: none;
  }
}