.cookie-preferences {
  width: min(100% - 2rem, 42rem);
  margin: 1.5rem auto;
  color: var(--ink, #14342a);
  font: inherit;
}

.cookie-preferences [hidden] {
  display: none !important;
}

.cookie-panel {
  padding: clamp(1rem, 4vw, 1.6rem);
  border: 1px solid #b8c5b7;
  border-radius: 1rem;
  background: #faf9f3;
}

.cookie-panel h2 {
  margin: 0 0 .55rem;
  font-size: clamp(1.7rem, 4.2vw, 2.25rem);
}

.cookie-panel p {
  margin: 0 0 .75rem;
}

.cookie-essential {
  font-weight: 700;
}

.cookie-actions, .cookie-options {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .75rem;
}

.cookie-options {
  margin-block-end: .8rem;
}

.cookie-options label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.75rem;
}

.cookie-preferences button {
  min-height: 2.75rem;
  padding: .45rem .85rem;
  border: 1px solid #43634d;
  border-radius: .5rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cookie-preferences button:focus-visible,
.cookie-preferences input:focus-visible {
  outline: 2px solid #285840;
  outline-offset: 3px;
}

.cookie-preview-results > div {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .3rem 1rem;
  padding-block: .6rem;
  border-bottom: 1px solid #d7ddd1;
}

.cookie-preview-results dd {
  margin: 0;
}

.cookie-status:empty {
  display: none;
}

.cookie-preferences:not([data-cookie-demo], .cookie-inline) .cookie-panel {
  position: fixed;
  z-index: 10;
  inset: auto 1rem 1rem;
  width: min(100% - 2rem, 42rem);
  margin-inline: auto;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  box-shadow: 0 .5rem 2rem #14342a22;
}

.cookie-inline {
  width: min(100% - 2rem, 69rem);
  margin-block: .5rem;
}

.cookie-inline:has(.cookie-panel[hidden]) { margin: 0 auto; }
html:not([data-cookie-js]) [data-cookie-initial],
html:not([data-cookie-js]) [data-cookie-settings],
html[data-cookie-choice] [data-cookie-initial] { display: none; }
.cookie-inline .cookie-panel { padding: .6rem .85rem; }
.cookie-inline .cookie-panel h2 { font: 700 1rem/1.35 var(--sans, system-ui, sans-serif); margin-bottom: .25rem; }
.cookie-inline .cookie-panel p { margin-bottom: .4rem; }
.cookie-inline .cookie-actions { gap: .35rem; }
.cookie-inline [data-choice="accept"], .cookie-inline [data-choice="reject"] { border-color: #43634d; }
[data-cookie-settings] .cookie-settings {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .17em;
  padding: .35rem 0;
  min-height: 44px;
  cursor: pointer;
}
.cookie-settings:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.cookie-inline .cookie-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
