:root {
  --closeButtonSize: calc(var(--defaultFontSize) * 1.5);
}

#popUpBar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(var(--headerHeight));
  opacity: 1;
  width: 100%;
  background-color: rgb(102, 214, 255);
  padding: 5px 10px;
  box-sizing: border-box;
  z-index: 5;
  transition: transform 0.2s, opacity 0.2s;
  gap: 10px;
  overflow-y: auto;
}

.popUpBarDismissed {
  opacity: 0 !important;
}

.popUpBarClosed {
  display: none !important;
}

body:has(header.headerHidden) #popUpBar {
  transform: translateY(0);
}

#popUpBar div {
  display: flex;
  flex-direction: row;
  height: 100%;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  transform: translateY(1px);
  width: 100%;
  margin: 0 0 0 var(--closeButtonSize);
}

#popUpBar p {
  margin: 0;
  color: rgb(9, 9, 9);
  font-weight: 500;
  overflow-wrap: anywhere;
  white-space: normal;
  hyphens: auto;
}

#popUpBar a {
  margin: 0;
  color: rgb(0, 4, 255);
  font-weight: 300;
  text-decoration: underline;
  overflow-wrap: break-word;
  white-space: normal;
  hyphens: auto;
}

#popUpBar button {
  all: unset;
  color: rgb(9, 9, 9);
  width: fit-content;
  height: fit-content;
  font-size: var(--closeButtonSize);
  cursor: pointer;
  transform: translateY(1px);
  margin: 2px 0;
}

#popUpBar a:focus-visible,
#popUpBar button:focus-visible {
  outline: var(--focusColor) solid var(--focusSize);
  outline-offset: var(--focusOffset);
}

  @media (max-width: 950px) {
    #popUpBar {
      position: fixed;
    }
  }

  @media (max-width: 350px) {
    #popUpBar {
      display: none;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    #popUpBar {
      transition: transform none, opacity 0.2s linear;
    }

    body:has(header.headerHidden) #popUpBar {
      transform: translateY(var(--headerHeight));
    }
  }