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

.cookie-consent {
  position: fixed;
  z-index: 1000;
  inset: auto 0 0;
  max-height: 85vh;
  max-height: 85dvh;
  overflow-y: auto;
  padding: 24px max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  border-top: 2px solid var(--accent);
  background: var(--linen);
  color: var(--ink);
  overscroll-behavior: contain;
}

.cookie-consent-inner {
  display: flex;
  align-items: center;
  gap: 24px 40px;
  max-width: var(--content-width);
  margin-inline: auto;
}

.cookie-consent-copy {
  flex: 1;
  min-width: 0;
}

.cookie-consent h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
}

.cookie-consent p {
  max-width: 72ch;
  margin: 6px 0 0;
  color: var(--ink);
  font-size: .9375rem;
  line-height: 1.55;
}

.cookie-consent a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent .cookie-consent-status {
  font-size: .8125rem;
}

.cookie-consent-actions {
  display: grid;
  gap: 10px;
  flex: 0 0 280px;
}

.cookie-consent button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: .875rem;
  line-height: 1.4;
  cursor: pointer;
}

.cookie-consent button:hover {
  background: #383838;
}

.cookie-consent .cookie-consent-close {
  border-color: transparent;
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent .cookie-consent-close:hover {
  background: #e8e3dc;
}

@media (max-width: 767px) {
  .cookie-consent {
    padding-top: 18px;
  }

  .cookie-consent-inner {
    display: block;
  }

  .cookie-consent-actions {
    margin-top: 16px;
  }
}

@media (forced-colors: active) {
  .cookie-consent {
    border-color: CanvasText;
  }

  .cookie-consent button {
    border-color: ButtonText;
  }
}
