/* Cookie banner. Desktop: a bottom bar that does not block the page — the
   wrapper is click-through so someone who wants to read before deciding can.
   Mobile: a centred modal over a blurred backdrop, because a bottom bar on a
   short viewport covers the content it is asking about. Both shapes are from
   the landomo banner; the palette is this site's. */
.gpw-consent {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px; pointer-events: none;
}
.gpw-consent-card {
  pointer-events: auto; position: relative;
  width: 100%; max-width: 780px;
  background: var(--card, #151815);
  border: 1px solid var(--border-hi, #3a423a);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  color: var(--text, #f1f2f0);
  font-size: 13.5px; line-height: 1.55;
  max-height: 86vh; display: flex; flex-direction: column; overflow: hidden;
}
.gpw-c-body { display: flex; align-items: center; gap: 18px; padding: 15px 18px; flex-wrap: wrap; }
.gpw-c-text { flex: 1; min-width: 240px; margin: 0; color: var(--text-dim, #99a099); }
.gpw-c-text b { color: var(--text, #f1f2f0); font-weight: 600; }
.gpw-consent a { color: var(--accent, #76b900); text-decoration: underline; text-underline-offset: 2px; }
.gpw-consent a:hover { color: var(--accent-hi, #8ed600); }

.gpw-c-actions { display: flex; gap: 8px; flex-shrink: 0; }
.gpw-c-actions-foot { padding: 13px 18px; border-top: 1px solid var(--border, #262b26); justify-content: flex-end; }
.gpw-btn {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 9px 15px; border-radius: 8px; border: 1px solid transparent;
  white-space: nowrap; transition: background .12s, border-color .12s, color .12s;
}
/* Reject is the same size and weight as Accept. A banner where refusing is a
   grey whisper next to a green button is not freely given consent, and the
   regulators that matter here have said so. */
.gpw-btn-ghost { background: transparent; color: var(--text, #f1f2f0); border-color: var(--border-hi, #3a423a); }
.gpw-btn-ghost:hover { background: var(--card-hover, #1b1f1b); border-color: #4d574d; }
.gpw-btn-primary { background: var(--accent, #76b900); color: #0a0b0a; }
.gpw-btn-primary:hover { background: var(--accent-hi, #8ed600); }
.gpw-consent :focus-visible { outline: 2px solid var(--accent, #76b900); outline-offset: 2px; }

.gpw-c-head { padding: 15px 18px 12px; border-bottom: 1px solid var(--border, #262b26); }
.gpw-c-head b { display: block; font-size: 15px; margin-bottom: 3px; }
.gpw-c-head span { color: var(--text-dim, #99a099); font-size: 13px; }

.gpw-c-cats { overflow-y: auto; }
.gpw-c-cat { border-bottom: 1px solid var(--border, #262b26); }
.gpw-c-cat:last-child { border-bottom: 0; }
.gpw-c-cat-head { display: flex; align-items: center; gap: 12px; padding: 11px 18px; }
.gpw-c-cat-toggle {
  flex: 1; display: flex; align-items: center; gap: 8px; text-align: left;
  background: none; border: 0; cursor: pointer; padding: 0;
  color: var(--text, #f1f2f0); font: inherit; font-weight: 600; font-size: 13.5px;
}
.gpw-c-chev { color: var(--text-dim, #99a099); font-size: 10px; width: 10px; }
.gpw-c-count { color: var(--text-dim, #99a099); font-weight: 400; font-size: 12px; }
.gpw-c-cat-body { padding: 0 18px 13px; background: rgba(0,0,0,.18); }
.gpw-c-cat-body p { margin: 0 0 9px; color: var(--text-dim, #99a099); font-size: 13px; }
.gpw-c-none { font-style: italic; }

.gpw-c-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.gpw-c-table th {
  text-align: left; font-size: 10px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-dim, #99a099); font-weight: 600; padding: 6px 8px;
  border-bottom: 1px solid var(--border, #262b26);
}
.gpw-c-table td { padding: 7px 8px; vertical-align: top; border-bottom: 1px solid rgba(38,43,38,.6); color: var(--text-dim, #99a099); }
.gpw-c-table tr:last-child td { border-bottom: 0; }
.gpw-c-table code {
  font-family: var(--mono, Consolas, monospace); font-size: 11px;
  background: rgba(255,255,255,.05); padding: 1px 5px; border-radius: 4px; color: var(--text, #f1f2f0);
}

/* Switch */
.gpw-sw { position: relative; display: inline-block; width: 38px; height: 22px; flex-shrink: 0; }
.gpw-sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.gpw-sw span {
  position: absolute; inset: 0; border-radius: 99px; pointer-events: none;
  background: #3a423a; transition: background .15s;
}
.gpw-sw span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #f1f2f0; transition: transform .15s;
}
.gpw-sw input:checked + span { background: var(--accent, #76b900); }
.gpw-sw input:checked + span::after { transform: translateX(16px); }
.gpw-sw input:focus-visible + span { outline: 2px solid var(--accent, #76b900); outline-offset: 2px; }
.gpw-sw-locked span { opacity: .5; }
.gpw-sw-locked input { cursor: not-allowed; }

@media (max-width: 640px) {
  /* A compact bottom sheet, not a blocking modal: no backdrop, the page stays
     scrollable behind it, and it takes only as much height as it needs. */
  .gpw-consent { padding: 0; align-items: flex-end; }
  .gpw-consent-card {
    max-width: none; width: 100%;
    border-radius: 14px 14px 0 0;
    max-height: 70vh;
  }
  .gpw-c-body { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px; }
  .gpw-c-actions, .gpw-c-actions-foot {
    flex-direction: row; flex-wrap: wrap;
  }
  .gpw-c-actions-foot { padding: 12px 16px; }
  .gpw-btn { flex: 1 1 auto; min-width: 100px; padding: 11px 14px; }
}
