/* Cookie banner (GDPR, web/public/consent.js): a card at the bottom that doesn't block the page. Self-contained:
   it also sits on Pagini HTML, which have their own styles, so it sets everything it needs. Accept and Reject look
   the same, so neither is pushed. Colours: the app's theme (site.css). */
.ck, .ck-fab { --ck-brand: #FF6B6B; --ck-text: #1E1E1E; --ck-muted: #757575; --ck-border: #D9D9D9; --ck-line: #EDEDED;
  box-sizing: border-box; font: 400 14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ck-text); letter-spacing: normal; text-align: left; }
.ck *, .ck *::before, .ck *::after { box-sizing: border-box; }
.ck { position: fixed; z-index: 2147483000; left: 16px; right: 16px; bottom: 16px; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; border: 1px solid var(--ck-line); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,0.16); padding: 20px; margin: 0; }
.ck[hidden], .ck-fab[hidden] { display: none; }
.ck h2 { font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1.3; margin: 0 0 6px; color: var(--ck-text); }
.ck p { margin: 0; color: var(--ck-muted); font-size: 14px; }
.ck a { color: var(--ck-text); font-weight: 600; text-decoration: underline; }
.ck-panel { margin-top: 12px; border-top: 1px solid var(--ck-line); }
.ck-panel[hidden] { display: none; }
.ck-item { border-bottom: 1px solid var(--ck-line); padding-bottom: 8px; }
.ck-row { display: flex; align-items: center; gap: 16px; justify-content: space-between; padding: 12px 0 4px; }
.ck-row strong { font-weight: 600; color: var(--ck-text); }
.ck-row p { font-size: 13px; }
.ck-always { font-size: 12px; color: var(--ck-muted); white-space: nowrap; }
.ck-switch { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 26px; border-radius: 13px; background: var(--ck-border); position: relative; cursor: pointer; margin: 0; border: 0; transition: background .15s; }
.ck-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform .15s; }
.ck-switch:checked { background: var(--ck-brand); }
.ck-switch:checked::after { transform: translateX(18px); }
.ck-switch:focus-visible, .ck-btn:focus-visible, .ck-link:focus-visible, .ck-fab:focus-visible { outline: 2px solid var(--ck-text); outline-offset: 2px; }
.ck-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ck-btn { flex: 1 1 140px; min-height: 44px; padding: 10px 16px; border: 0; border-radius: 12px; background: var(--ck-brand); color: #fff; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; }
.ck-btn:hover { filter: brightness(0.95); }
.ck-btn[hidden], .ck-link[hidden] { display: none; }
.ck-link { flex: 1 1 100%; min-height: 44px; border: 0; background: none; color: var(--ck-text); font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: underline; cursor: pointer; }
/* On pages without a footer link (Pagini HTML): a small button that reopens the choice. */
.ck-fab { position: fixed; z-index: 2147483000; left: 12px; bottom: 12px; min-height: 32px; padding: 6px 12px; border: 1px solid var(--ck-line); border-radius: 16px;
  background: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,0.12); cursor: pointer; }
/* 44 px to tap around the small 32 px button. */
.ck-fab::before { content: ""; position: absolute; inset: -6px; }
/* The cookies under a purpose: a list that opens on a tap (<details>). */
.ck-more summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ck-text); padding: 4px 0; }
.ck-more table { width: 100%; border-collapse: collapse; margin: 6px 0 4px; font-size: 12px; }
.ck-more th, .ck-more td { text-align: left; vertical-align: top; padding: 6px 6px 6px 0; border-top: 1px solid var(--ck-line); color: var(--ck-text); }
.ck-more th { font-weight: 600; color: var(--ck-muted); }
.ck-more code { font-family: ui-monospace, Menlo, monospace; font-size: 11px; word-break: break-all; }
.ck-more small { color: var(--ck-muted); }
.ck-more p { font-size: 12px; margin: 4px 0; }
@media (prefers-reduced-motion: reduce) { .ck-switch, .ck-switch::after { transition: none; } }
