[data-analytics-settings] {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media screen {
  body { padding-bottom: var(--cookie-bar-height, 0px); }
}
#analytics-consent {
  position: fixed;
  z-index: 12;
  inset: auto 0 0;
  background: #fff;
  border-top: 1px solid #c6c4bd;
  color: var(--ink);
  max-height: 60vh;
  overflow-y: auto;
}
.cookie-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 19px max(19px, env(safe-area-inset-bottom));
}
.cookie-bar p, #cookie-settings p {
  font-size: 15px;
  line-height: 1.55;
  max-width: 76ch;
}
.cookie-actions, .cookie-heading {
  display: flex;
  align-items: center;
  gap: 18px;
}
.cookie-actions { flex-shrink: 0; }
.cookie-button {
  min-height: 44px;
  background: transparent;
  font: inherit;
  font-size: 15px;
  border: 1px solid #91958e;
  border-radius: 8px;
  color: var(--ink);
  padding: 8px 22px;
}
.cookie-button:hover { background: #f5f3ee; }
.cookie-bar a, #cookie-settings a { color: var(--accent); }
.cookie-bar a, #cookie-settings a { text-decoration: underline; text-underline-offset: 3px; }
#cookie-settings {
  box-sizing: border-box;
  width: min(540px, calc(100% - 32px));
  max-height: 84vh;
  max-height: 84dvh;
  overflow-y: auto;
  margin: auto;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
}
#cookie-settings::backdrop { background: rgb(30 31 28 / 49%); }
.cookie-heading { justify-content: space-between; margin-bottom: 20px; }
.cookie-heading h2 { font-size: 26px; letter-spacing: -.035em; }
.cookie-close {
  border: 0;
  background: transparent;
  font-size: 24px;
  width: 44px;
  height: 44px;
  color: inherit;
}
.cookie-option { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.cookie-option input { width: 19px; height: 19px; margin: 0; accent-color: var(--ink); }
#cookie-settings p { margin: 8px 0 12px; color: var(--muted); }
#cookie-settings a { font-size: 14px; }
#cookie-settings .cookie-actions { justify-content: flex-end; margin-top: 26px; gap: 10px; }
.cookie-button.cookie-save { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 700px) {
  .cookie-bar { flex-direction: column; align-items: stretch; gap: 10px; padding-block: 14px max(14px, env(safe-area-inset-bottom)); }
  .cookie-bar .cookie-actions { justify-content: flex-end; }
  .cookie-bar p { font-size: 14px; }
  .cookie-button { padding-inline: 16px; }
}
@media print {
  #analytics-consent, #cookie-settings, [data-analytics-settings] { display: none; }
}
