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

.cookie-consent {
  position: fixed;
  z-index: 1000;
  right: 0;
  bottom: 0;
  left: 0;
  color: #080808;
  border-top: 1px solid #080808;
  background: rgba(244, 244, 246, .94);
  background-blend-mode: luminosity;
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72), 0 -18px 48px rgba(0, 0, 0, .07);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .35s cubic-bezier(.22, 1, .36, 1), transform .55s cubic-bezier(.22, 1, .36, 1);
}

.cookie-consent.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-consent__inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(36px, 6vw, 110px);
  align-items: center;
  padding: 25px clamp(20px, 5.8vw, 76px) 27px;
}

.cookie-consent__copy {
  max-width: 980px;
  margin: 0;
  font-family: "Instrument Sans", Arial, sans-serif;
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 400;
  line-height: 1.47;
  text-wrap: pretty;
}

.cookie-consent__copy a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.cookie-consent__actions {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.cookie-consent__button,
.cookie-preferences-button {
  position: relative;
  padding: 7px 0 8px;
  color: #080808;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: "Instrument Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.cookie-consent__button::after,
.cookie-preferences-button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}

.cookie-consent__button:hover::after,
.cookie-consent__button:focus-visible::after,
.cookie-preferences-button:hover::after,
.cookie-preferences-button:focus-visible::after {
  transform: scaleX(1);
}

.cookie-consent__button--decline {
  color: #66666b;
  font-weight: 400;
}

.cookie-consent__button:focus-visible,
.cookie-preferences-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.cookie-preferences-button {
  margin-top: 12px;
  font-size: 13px;
}

@media (max-width: 760px) {
  .cookie-consent__inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 22px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  .cookie-consent__copy {
    font-size: 13px;
    line-height: 1.5;
  }

  .cookie-consent__actions {
    width: 100%;
    justify-content: flex-start;
    gap: 32px;
  }

  .cookie-consent__button {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent,
  .cookie-consent__button::after,
  .cookie-preferences-button::after {
    transition-duration: .01ms !important;
  }
}
