/* Evästebanneri. Värit muuttujina, jotta ne voi ylikirjoittaa sivuston teemalla. */
.consent {
  --consent-bg: #ffffff;
  --consent-fg: #1a1a1a;
  --consent-muted: #555;
  --consent-accent: #1a1a1a;
  --consent-accent-fg: #ffffff;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 9999;
  padding: 16px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  .consent { --consent-bg: #1c1c1e; --consent-fg: #f2f2f2; --consent-muted: #b0b0b0; --consent-accent: #f2f2f2; --consent-accent-fg: #111; }
}
.consent__box {
  pointer-events: auto;
  width: 100%;
  max-width: 720px;
  background: var(--consent-bg);
  color: var(--consent-fg);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .25);
  padding: 20px 24px;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.consent [hidden] { display: none !important; }
.consent__title { margin: 0 0 6px; font-size: 1.1rem; }
.consent__text { margin: 0 0 14px; color: var(--consent-muted); }
.consent__text a { color: inherit; text-decoration: underline; }
.consent__details { display: grid; gap: 10px; margin: 0 0 14px; }
.consent__cat { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.consent__cat input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.consent__cat span { display: grid; }
.consent__cat small { color: var(--consent-muted); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
/* Hyväksy ja Hylkää ovat samannäköisiä: kumpaakaan ei korosteta. */
.consent__btn {
  font: inherit;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--consent-accent);
  background: var(--consent-accent);
  color: var(--consent-accent-fg);
  cursor: pointer;
}
.consent__btn--link { background: transparent; color: var(--consent-fg); }
.consent__btn:focus-visible { outline: 3px solid #4c9ffe; outline-offset: 2px; }
@media (max-width: 520px) {
  .consent__actions { justify-content: stretch; }
  .consent__btn { flex: 1 1 100%; }
}
