.cookie-consent {
  position: fixed;
  inset: auto max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) auto;
  width: min(31rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  z-index: 1100;
  padding: clamp(1rem, 3vw, 1.65rem);
  box-sizing: border-box;
  background: #f7f4ed;
  color: #24221d;
  border: 1px solid #d5c9b9;
  box-shadow: 0 8px 32px rgb(23 24 22 / 22%);
  font-family: system-ui, sans-serif;
  text-align: left;
}

.cookie-consent[hidden] { display: none; }

.cookie-consent h2 {
  margin: 0 0 .45rem;
  color: inherit;
  font: normal 1.6rem/1.2 Georgia, serif;
}

.cookie-consent p {
  margin: 0 0 .55rem;
  color: inherit;
  font-size: .92rem;
  line-height: 1.55;
}

.cookie-consent a {
  color: #733b25;
  font-size: .86rem;
  text-decoration: underline;
  text-underline-offset: .15em;
}

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

.cookie-consent-actions button {
  min-height: 44px;
  padding: .6rem .5rem;
  border: 1px solid #76513c;
  background: #f7f4ed;
  color: #2f281f;
  font: 600 .83rem/1.2 system-ui, sans-serif;
  cursor: pointer;
}

.cookie-consent-actions button:hover { background: #ece3d6; }

.cookie-consent button:focus-visible,
.cookie-consent a:focus-visible,
.cookie-consent-settings:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.cookie-consent-settings {
  color: inherit;
  background: none;
  border: 0;
  padding: .35rem 0;
  font: inherit;
  font-size: .8rem;
  text-decoration: underline;
  text-underline-offset: .16em;
  cursor: pointer;
}

.site-footer .cookie-consent-settings { margin-inline-end: auto; }

.cookie-consent-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

