/* Cookie consent banner. Self-contained: pages that include it don't share a stylesheet. */
.consent {
  --c-bg: #ffffff;
  --c-fg: #141414;
  --c-muted: #5c5c5c;
  --c-border: #dcdcdc;
  --c-btn-bg: #141414;
  --c-btn-fg: #fafafa;
  --c-link: #135ba8;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 2147483000;
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 20px;
  background: var(--c-bg);
  color: var(--c-fg);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  font: 15px/1.5 'DM Sans', system-ui, -apple-system, sans-serif;
  text-align: left;
  -webkit-user-select: text;
  user-select: text;
}
@media (prefers-color-scheme: dark) {
  .consent {
    --c-bg: #212121;
    --c-fg: #ebebeb;
    --c-muted: #a3a3a3;
    --c-border: #383838;
    --c-btn-bg: #ebebeb;
    --c-btn-fg: #141414;
    --c-link: #7fb4ee;
  }
}
.consent[hidden] { display: none; }
.consent__title { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.consent__text { margin: 0 0 14px; color: var(--c-muted); font-size: 14px; }
.consent__text a { color: var(--c-link); }
.consent__actions { display: flex; gap: 10px; }
/* Both choices look the same: refusing must be as easy as accepting. */
.consent__btn {
  flex: 1 1 0;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--c-btn-bg);
  border-radius: 8px;
  background: var(--c-btn-bg);
  color: var(--c-btn-fg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.consent__btn:hover { opacity: 0.88; }
.consent__btn:focus-visible { outline: 3px solid var(--c-link); outline-offset: 2px; }
/* Footer "Ustawienia cookies" links stay hidden until consent.js reveals them,
   even where a page's link class sets display (e.g. .contact-link). */
[data-consent-open][hidden] { display: none !important; }
