#privacy-preferences {
  width: min(34rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: clamp(1rem, 4vw, 1.6rem);
  color: #34332f;
  background: #fffdf7;
  border: 1px solid #d9d6c9;
  border-radius: 1rem;
  overflow: auto;
  font: 1rem/1.5 system-ui, sans-serif;
}

#privacy-preferences::backdrop { background: rgb(31 34 27 / 52%); }
#privacy-preferences h2 { margin: 0 0 .6rem; font: 700 1.35rem/1.2 system-ui, sans-serif; }
#privacy-preferences p { margin: 0 0 1rem; }
#privacy-preferences a { color: #34462d; text-decoration: underline; }

#privacy-preferences label {
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  align-items: start;
  gap: .65rem;
  padding: .45rem 0;
  cursor: pointer;
}

#privacy-preferences label:last-of-type { margin-bottom: .8rem; }
#privacy-preferences input { width: 1.1rem; height: 1.1rem; margin: .2rem 0 0; accent-color: #526248; }
.privacy-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .65rem; }

.privacy-actions button {
  min-height: 44px;
  padding: .55rem .85rem;
  color: #34332f;
  background: transparent;
  border: 1px solid #898875;
  border-radius: .6rem;
  font: inherit;
  cursor: pointer;
}

.privacy-actions button[value="save"] { color: #fff; background: #526248; border-color: #526248; }
#privacy-preferences :focus-visible, #privacy-preferences-link:focus-visible {
  outline: 2px solid #526248;
  outline-offset: 3px;
}
