/* consent.css — generic cookie consent banner (pairs with consent.js).
   Restyle per site by overriding the custom properties on :root. */
:root {
  --kc-bg: #ffffff;
  --kc-fg: #1c2321;
  --kc-muted: #4d5957;
  --kc-border: #d5dbda;
  --kc-btn-bg: #1c2321;
  --kc-btn-fg: #ffffff;
  --kc-btn-hover: #3a4643;
  --kc-link: #1c2321;
  --kc-focus: #0b6f95;
  --kc-font: inherit;
  --kc-z: 2147483000;
}

.kc {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--kc-z);
  background: var(--kc-bg);
  color: var(--kc-fg);
  border-top: 1px solid var(--kc-border);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
  font-family: var(--kc-font);
  font-size: 0.875rem;
  line-height: 1.5;
  max-height: 85vh;
  overflow-y: auto;
}
.kc[hidden] { display: none; }

.kc-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "text actions" "panel panel";
  gap: 12px 24px;
  align-items: center;
  padding: 16px 24px;
}
.kc-text { grid-area: text; margin: 0; }
.kc-text a { color: var(--kc-link); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }

.kc-actions { grid-area: actions; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.kc-btn {
  flex: 1 1 0;
  min-width: 8.5em;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 4px;
  background: var(--kc-btn-bg);
  color: var(--kc-btn-fg);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.kc-btn[hidden] { display: none; }
.kc-btn:hover { background: var(--kc-btn-hover); }
.kc-btn:focus-visible,
.kc a:focus-visible,
.kc input:focus-visible { outline: 3px solid var(--kc-focus); outline-offset: 2px; }

.kc-panel { grid-area: panel; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; border-top: 1px solid var(--kc-border); padding-top: 12px; }
.kc-panel[hidden] { display: none; }
.kc-cat__head { display: flex; align-items: center; gap: 8px; }
.kc-cat__head input { width: 20px; height: 20px; margin: 0; accent-color: var(--kc-btn-bg); }
.kc-cat__title { font-weight: 700; }
.kc-cat__desc, .kc-cat__prov { margin: 4px 0 0 28px; color: var(--kc-muted); }
.kc-note { grid-column: 1 / -1; margin: 0; color: var(--kc-muted); }

/* Small button that reopens the banner once a choice is made (reopenButton). */
.kc-reopen {
  position: fixed; left: 16px; bottom: 16px; z-index: var(--kc-z);
  padding: 6px 12px; border: 1px solid var(--kc-border); border-radius: 999px;
  background: var(--kc-bg); color: var(--kc-fg); font: inherit; font-family: var(--kc-font);
  font-size: 0.8125rem; line-height: 1.4; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.kc-reopen[hidden] { display: none; }
.kc-reopen:focus-visible { outline: 3px solid var(--kc-focus); outline-offset: 2px; }

/* In-flow spacer (sized by consent.js) so the page end stays reachable. */
.kc-spacer { background: var(--kc-spacer-bg, transparent); }
.kc-spacer[hidden] { display: none; }

@media (max-width: 760px) {
  .kc-inner { grid-template-columns: 1fr; grid-template-areas: "text" "panel" "actions"; padding: 14px 16px; }
  .kc-actions { justify-content: stretch; }
  .kc-btn { min-width: 0; white-space: normal; padding: 10px 8px; line-height: 1.25; }
  .kc-panel { grid-template-columns: 1fr; }
}
