body {
  padding-bottom: var(--cookie-notice-space, 0px);
}

.cookie-notice {
  position: fixed;
  inset: auto 0 0;
  z-index: 1040;
  max-height: 60vh;
  overflow-y: auto;
  padding: 0;
  background: #fff;
  border-top-color: #2567b4 !important;
}

.cookie-notice[hidden], .cookie-notice [hidden] {
  display: none !important;
}

.cookie-actions .btn {
  flex: 1 1 150px;
}

.cookie-notice .btn-outline-primary {
  color: #2567b4;
  border-color: #2567b4;
}

.cookie-notice .btn-outline-primary:hover,
.cookie-notice .btn-outline-primary:active {
  color: #fff;
  background: #2567b4;
}

.cookie-notice a, .cookie-policy a {
  color: #2567b4;
  text-decoration: underline;
}

.cookie-notice :focus-visible, .footer-legal :focus-visible,
.cookie-policy :focus-visible {
  outline: 3px solid #2567b4;
  outline-offset: 3px;
}

.footer-meta {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

#footer .footer-legal .dropdown-menu {
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 2rem);
  max-height: 65vh;
  overflow-y: auto;
  text-align: start;
}

#footer .footer-legal .dropdown-item {
  white-space: normal;
}

#footer .footer-legal .dropdown-item:focus-visible {
  outline-offset: -3px;
}

.cookie-policy {
  max-width: 960px;
  overflow-wrap: anywhere;
}

.cookie-policy h2 {
  margin-top: 2rem;
}

.cookie-policy dt {
  margin-top: 1rem;
}

.back-to-top {
  bottom: calc(15px + var(--cookie-notice-space, 0px));
}
