html.citebase-cookie-chosen #citebase-cookie-notice {
  display: none;
}

body:has(#citebase-cookie-notice) {
  padding-bottom: 6.75rem;
}

html.citebase-cookie-chosen body:has(#citebase-cookie-notice) {
  padding-bottom: 0;
}

.cookie-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: 0.85rem max(1.25rem, env(safe-area-inset-right)) calc(0.9rem + env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  background: #161411;
  border-top: 1px solid rgba(243, 238, 228, 0.22);
  color: #c9c1b4;
  font: 400 0.9rem/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

.cookie-notice-inner {
  width: min(100%, 64rem);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-notice-copy {
  flex: 1 1 16rem;
  min-width: 0;
}

.cookie-notice-title {
  margin: 0 0 0.28rem;
  font: 600 0.72rem/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c4a574;
}

.cookie-notice-copy p {
  margin: 0;
  color: #c9c1b4;
}

.cookie-notice a {
  color: #c4a574;
  text-underline-offset: 0.18em;
}

.cookie-notice a:hover {
  color: #f3eee4;
}

.cookie-notice-actions {
  display: flex;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.cookie-btn {
  min-height: 2.35rem;
  padding: 0.4rem 0.85rem;
  font: 600 0.8125rem/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  border-radius: 2px;
  cursor: pointer;
}

.cookie-btn-primary {
  background: #f3eee4;
  color: #0d0c0a;
  border: 1px solid transparent;
}

.cookie-btn-ghost {
  background: transparent;
  color: #f3eee4;
  border: 1px solid rgba(243, 238, 228, 0.22);
}

.cookie-btn:focus-visible {
  outline: 2px solid #c4a574;
  outline-offset: 3px;
}
