.cookie-banner {
  position: fixed; z-index: 10000; bottom: max(16px, env(safe-area-inset-bottom));
  right: max(20px, env(safe-area-inset-right)); width: min(380px, calc(100% - 40px));
  box-sizing: border-box; padding: 18px; display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  max-height: 70dvh; overflow-y: auto;
  color: #233d30; background: #f7f5ec; border: 1px solid #aeb8a4; border-radius: 8px;
  box-shadow: 0 6px 24px #142c261a; font-family: system-ui, sans-serif; text-align: left;
}
.cookie-banner[hidden], .cookie-banner [hidden] { display: none; }
.cookie-banner h2 { font: 600 20px/1.2 Georgia, serif; margin: 0 0 8px; letter-spacing: normal; }
.cookie-banner p { font-size: 13px; line-height: 1.5; margin: 0; color: #364c40; }
.cookie-banner a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__copy { flex: 1; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-banner__actions button {
  appearance: none; flex: 1 1 140px; min-height: 44px; padding: 10px 12px; margin: 0;
  font: 500 13px/1.3 system-ui, sans-serif; color: #233d30; background: transparent;
  border: 1px solid #526b57; border-radius: 3px; cursor: pointer;
}
.cookie-banner__actions [data-cookie-close] { flex-basis: 100%; }
.cookie-banner__actions button:hover { background: #e8ecdf; }
.cookie-banner :focus-visible, [data-cookie-settings]:focus-visible { outline: 3px solid #9b711e; outline-offset: 3px; }
.cookie-banner .cookie-banner__current:not(:empty) { margin-top: 8px; font-weight: 600; }
button[data-cookie-settings] { appearance: none; font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cookie-settings-row { text-align: center; margin: 12px 0; font-size: 13px; color: #f5f5ee; }
@media (max-width: 480px) {
  .cookie-banner {
    right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100% - 24px); padding: 16px;
  }
  .cookie-banner__actions button { flex-basis: 120px; }
  .cookie-banner__actions [data-cookie-close] { flex-basis: 100%; }
}
