.cookie-settings {
  padding: 0;
  color: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: .25em;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.consent-banner, .consent-dialog {
  z-index: 20;
  width: min(34rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  overflow: auto;
  padding: clamp(1rem, 4vw, 1.5rem);
  color: #f7ead5;
  background: #20170f;
  border: 1px solid #bc8f58;
  border-radius: .55rem;
  box-shadow: 0 .65rem 2rem #000b;
  font: .92rem/1.55 system-ui, sans-serif;
}

.consent-banner {
  position: fixed;
  inset: auto 0 .75rem;
  margin-inline: auto;
}

.consent-dialog::backdrop { background: #100c08c9; }

.consent-banner h2, .consent-dialog h2 {
  margin: 0 0 .55rem;
  color: #ffe1b3;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.consent-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: .75rem;
}

.consent-policy {
  display: inline-block;
  margin-top: .4rem;
  color: #f1c987;
  text-underline-offset: .2em;
}

.consent-options {
  display: grid;
  gap: .7rem;
  margin: .9rem 0 .55rem;
  padding: .75rem;
  border: 1px solid #a67d50;
}

.consent-options label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: .12rem .65rem;
  cursor: pointer;
}

.consent-options input { margin: .33rem 0 0; accent-color: #e9b66f; }
.consent-options label span { grid-column: 2; color: #d9c6a9; }
.consent-options label:has(input:disabled) { cursor: default; }

.consent-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  margin-top: .9rem;
}

.consent-actions button:last-child { grid-column: 1 / -1; }

.consent-actions button, .consent-heading button {
  min-height: 2.7rem;
  padding: .5rem .7rem;
  color: #ffe1b3;
  background: #322219;
  border: 1px solid #b78b56;
  border-radius: .28rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.consent-actions button:hover, .consent-heading button:hover { background: #493226; }
.consent-heading button { min-width: 2.7rem; font-size: 1.25rem; line-height: 1; }
.consent-status:not(:empty) { margin-top: .45rem; color: #ffd7a6; }
.consent-status:empty { margin: 0; }
