.cookie-choice {
  position: fixed;
  z-index: 40;
  right: 24px;
  bottom: max(24px, env(safe-area-inset-bottom));
  width: min(540px, calc(100% - 48px));
  max-height: 70vh;
  max-height: 70svh;
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 10px 40px #172d2326;
}
.cookie-choice h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.15;
}
.cookie-choice p { margin: 0; font-size: 1rem; line-height: 1.55; }
.cookie-choice-details { margin-top: 12px; font-size: .875rem; }
.cookie-choice-details summary { display: list-item; cursor: pointer; width: fit-content; }
.cookie-choice-details p { margin: 12px 0 8px; font-size: .875rem; }
.cookie-choice-details a { text-decoration: underline; text-underline-offset: 3px; }
.cookie-choice-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.cookie-choice-actions button {
  flex: 1 1 160px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: .875rem;
  line-height: 1.5;
}
.cookie-choice-actions button:hover { background: #e5e8dc; }
.cookie-settings {
  min-height: 44px;
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font-size: .875rem;
}
.cookie-settings:hover { text-decoration: underline; text-underline-offset: 4px; }
body.nav-open .cookie-choice { visibility: hidden; }
@media (max-width: 540px) {
  .cookie-choice { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); width: calc(100% - 28px); padding: 20px; }
  .cookie-choice-actions { gap: 10px; }
  .cookie-choice-actions button { flex-basis: 130px; }
}
