.cookie-consent {
  position: fixed;
  z-index: 1000;
  inset-inline: auto max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  width: min(460px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  overflow: auto;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--line, #d1cec6);
  border-radius: 16px;
  background: var(--surface, #fff);
  color: var(--text, #182019);
  box-shadow: 0 8px 32px #0004;
  font: 400 1rem/1.45 var(--font-body, system-ui);
}
.cookie-consent[hidden] { display: none; }
.cookie-consent h2 {
  margin: 0 0 8px;
  font: 700 1.125rem/1.3 var(--font-body, system-ui);
  color: inherit;
}
.cookie-consent p { margin: 0 0 16px; }
.cookie-consent a,
.cookie-settings {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cookie-consent__actions button {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: 600 0.875rem/1.25 var(--font-body, system-ui);
  cursor: pointer;
}
.cookie-consent__actions button[data-choice="all"] {
  background: var(--text, #182019);
  color: var(--surface, #fff);
}
.cookie-settings {
  min-height: 44px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.cookie-consent :focus-visible,
.cookie-settings:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
