/* PactKeeper cookie consent styles. Dark by default, light with html[data-theme="light"]. */
:root {
  --pkc-bg: #17181B; --pkc-bg2: #1F2024; --pkc-btn: #26272B; --pkc-border: #2A2B30; --pkc-control: #6B6C73;
  --pkc-text: #F2F2F3; --pkc-muted: #9B9CA3; --pkc-accent: #1E5EFF; --pkc-link: #6EA8FF;
}
:root[data-theme="light"] {
  --pkc-bg: #FFFFFF; --pkc-bg2: #F0F0F2; --pkc-btn: #E7E7EA; --pkc-border: #E3E3E7; --pkc-control: #8E8F96;
  --pkc-text: #111214; --pkc-muted: #5E5F66; --pkc-link: #0047E0;
}
.pkc-banner, .pkc-overlay { font: 400 14px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--pkc-text); box-sizing: border-box; }
.pkc-banner *, .pkc-overlay * { box-sizing: border-box; }
.pkc-banner[hidden], .pkc-overlay[hidden] { display: none !important; }

.pkc-banner {
  position: fixed; z-index: 2147483000; right: 20px; bottom: 20px; width: 420px; max-width: calc(100vw - 40px);
  max-height: calc(100dvh - 40px); overflow-y: auto;
  background: var(--pkc-bg); border: 1px solid var(--pkc-border); border-radius: 12px; padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); display: grid; gap: 10px;
}
.pkc-title { margin: 0; font-weight: 700; font-size: 15px; }
.pkc-text { margin: 0; color: var(--pkc-muted); overflow-wrap: anywhere; }
.pkc-banner a, .pkc-overlay a { color: var(--pkc-link); text-decoration: underline; text-underline-offset: 2px; }

.pkc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
/* Accept = brand colour (primary). Reject stays the same size, font and a clearly visible bordered button,
   so refusing is as easy to see and click as accepting (no hidden or greyed-out option). */
.pkc-btn {
  flex: 1 1 0; min-width: 120px; height: 40px; padding: 0 14px; border-radius: 10px; cursor: pointer;
  background: var(--pkc-btn); color: var(--pkc-text); border: 1px solid var(--pkc-control); font: 600 14px/1 inherit;
}
.pkc-btn:hover { background: var(--pkc-bg2); }
.pkc-btn[data-pkc="accept"] { background: var(--pkc-accent); border-color: var(--pkc-accent); color: #fff; }
.pkc-btn[data-pkc="accept"]:hover { background: #0047E0; border-color: #0047E0; }
.pkc-link { flex: 1 0 100%; display: flex; align-items: center; min-height: 44px; background: none; border: 0; padding: 0; color: var(--pkc-link); font: 600 14px/1.4 inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-align: left; }
.pkc-btn:focus-visible, .pkc-link:focus-visible, .pkc-x:focus-visible, .pkc-overlay a:focus-visible, .pkc-banner a:focus-visible,
.pkc-switch input:focus-visible + span { outline: 2px solid var(--pkc-accent); outline-offset: 2px; }

.pkc-overlay { position: fixed; inset: 0; z-index: 2147483001; background: rgba(0, 0, 0, .55); display: grid; place-items: center; padding: 16px; }
.pkc-dialog {
  width: 100%; max-width: 560px; max-height: calc(100dvh - 32px); overflow-y: auto;
  background: var(--pkc-bg); border: 1px solid var(--pkc-border); border-radius: 14px; padding: 22px; display: grid; gap: 14px;
}
.pkc-dhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pkc-dhead h2 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.pkc-x { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--pkc-border); background: var(--pkc-bg2); color: var(--pkc-text); font-size: 20px; line-height: 1; cursor: pointer; }
.pkc-row { border-top: 1px solid var(--pkc-border); padding-top: 12px; display: grid; gap: 6px; }
.pkc-row-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pkc-row-t { font-weight: 600; }
.pkc-row-d { margin: 0; color: var(--pkc-muted); font-size: 13px; }
.pkc-always { font-size: 12px; color: var(--pkc-muted); }
.pkc-switch { position: relative; width: 44px; height: 26px; flex: none; }
.pkc-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.pkc-switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--pkc-btn); border: 1px solid var(--pkc-control); transition: background .2s; }
.pkc-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--pkc-text); transition: transform .2s; }
.pkc-switch input:checked + span { background: var(--pkc-accent); border-color: var(--pkc-accent); }
.pkc-switch input:checked + span::after { transform: translateX(18px); background: #fff; }
html.pkc-lock { overflow: hidden; }

@media (max-width: 600px) {
  .pkc-banner {
    left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: none; padding: 14px;
  }
  .pkc-text { font-size: 13px; }
  .pkc-btn { min-width: 0; }
  .pkc-dialog { padding: 18px; }
  .pkc-dialog .pkc-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .pkc-switch span, .pkc-switch span::after { transition: none; } }
