/* Cookie banner and the footer links that open it. Shared by the nine pages.
   The words are not here: they are in the markup of each page. */

.mwe-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  box-sizing: border-box;
  max-height: 80vh;
  overflow-y: auto;
  padding: 1.5em 16px;
  background: rgba(0, 0, 0, 0.85);
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Philosopher', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-align: left;
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.3s, visibility 0s 0.3s;
}

.mwe-consent--open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.3s, visibility 0s;
}

.mwe-consent:focus {
  outline: none;
}

.mwe-consent__inner {
  max-width: 1010px;
  margin: 0 auto;
}

.mwe-consent__text {
  max-width: 900px;
  margin: 0 auto;
  padding-right: 56px;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}

.mwe-consent__text a {
  color: inherit;
  text-decoration: underline;
}

.mwe-consent__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.mwe-consent__button {
  min-width: 110px;
  margin: 0;
  padding: 12px 1.4em;
  border: 0;
  border-radius: 3px;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 14px;
  letter-spacing: inherit;
  cursor: pointer;
}

.mwe-consent__button:hover,
.mwe-consent__close:hover {
  opacity: 0.9;
}

.mwe-consent__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
}

.mwe-consent__close span {
  position: absolute;
  top: 21px;
  left: 12px;
  width: 20px;
  height: 2px;
  background: #000;
  transform: rotate(45deg);
}

.mwe-consent__close span::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 2px;
  background: #000;
  transform: rotate(90deg);
}

.mwe-consent a:focus-visible,
.mwe-consent button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .mwe-consent {
    padding-top: 64px;
  }

  .mwe-consent__text {
    padding-right: 0;
  }

  .mwe-consent__button {
    flex: 1;
    min-width: 0;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mwe-consent,
  .mwe-consent--open {
    transition: none;
  }
}

/* Footer links: look like the copyright text around them. */
#socket .mwe-consent-link {
  display: inline-block;
  margin: 0;
  padding: 12px 4px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: underline;
  cursor: pointer;
}
