/* Cookie consent: in page flow, above the header */

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

html[data-cookie-banner-initial="show"] #cookieConsent[hidden] {
  display: block !important;
}

.cookie-consent {
  background: #fff;
  color: #222;
  border-bottom: 1px solid #d5dbe1;
}

.cookie-consent__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.5rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: .75rem 1rem;
}

.cookie-consent__text {
  flex: 1 1 32rem;
}

.cookie-consent__text h2 {
  margin: 0 0 .15rem;
  font-size: 1rem;
}

.cookie-consent__text h2:focus {
  outline: none;
}

.cookie-consent__text p {
  margin: 0;
  font-size: .875rem;
  line-height: 1.45;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  flex: 0 1 auto;
}

.cookie-consent__actions button {
  position: relative;
  min-width: 6.5rem;
  padding: .25rem .9rem;
  border: 2px solid #007c60;
  border-radius: .25rem;
  background: #007c60;
  color: #fff;
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-consent__actions button:hover {
  background: #005c47;
  border-color: #005c47;
}

/* Keeps the click target at 44px tall */
.cookie-consent__actions button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 44px;
}

.cookie-consent__actions button:focus-visible {
  outline: 3px solid #222;
  outline-offset: 3px;
}

@media (max-width: 575.98px) {
  .cookie-consent__actions {
    width: 100%;
  }

  .cookie-consent__actions button {
    flex: 1 1 0;
    min-width: 0;
  }
}