/* PiknPark cookie consent — namespaced (.pnp-cc*), no external fonts or libraries */
.pnp-cc, .pnp-cc-modal, .pnp-cc-reopen { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.5; color: #1a1a1a; box-sizing: border-box; }
.pnp-cc *, .pnp-cc-modal *, .pnp-cc-reopen { box-sizing: border-box; }
.pnp-cc[hidden], .pnp-cc-modal[hidden], .pnp-cc-reopen[hidden] { display: none !important; }

/* ── Banner (bottom of the page) ── */
.pnp-cc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 999990; background: #fff; border-top: 1px solid #d9d9d9; box-shadow: 0 -4px 24px rgba(0,0,0,.12); padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px)); }
.pnp-cc__inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pnp-cc__text { flex: 1 1 420px; min-width: 0; }
.pnp-cc__title { margin: 0 0 4px; font-weight: 700; font-size: 16px; }
.pnp-cc__desc { margin: 0; font-size: 14px; color: #3a3a3a; }
.pnp-cc__desc a, .pnp-cc-modal a { color: #0a58ca; text-decoration: underline; }
.pnp-cc__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Buttons: Accept all and Reject all are IDENTICAL (same size, colour, weight) ── */
.pnp-cc-btn { appearance: none; cursor: pointer; font: inherit; font-weight: 600; font-size: 14px; min-width: 130px; padding: 11px 18px; border-radius: 6px; border: 2px solid #1a1a1a; line-height: 1.2; text-align: center; }
.pnp-cc-btn--solid   { background: #1a1a1a; color: #fff; }
.pnp-cc-btn--outline { background: #fff; color: #1a1a1a; }
.pnp-cc-btn:hover { opacity: .88; }
.pnp-cc-btn:focus-visible, .pnp-cc-x:focus-visible, .pnp-cc-reopen:focus-visible, .pnp-cc-switch input:focus-visible + .pnp-cc-switch__ui, .pnp-cc-details summary:focus-visible { outline: 3px solid #0a58ca; outline-offset: 2px; }

/* ── Settings panel ── */
.pnp-cc-modal { position: fixed; inset: 0; z-index: 999995; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pnp-cc-modal__box { background: #fff; border-radius: 10px; width: 100%; max-width: 640px; max-height: 90vh; display: flex; flex-direction: column; outline: none; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.pnp-cc-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #e5e5e5; }
.pnp-cc-modal__head h2 { margin: 0; font-size: 18px; }
.pnp-cc-x { background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: #1a1a1a; padding: 0 6px; }
.pnp-cc-modal__body { padding: 16px 20px; overflow-y: auto; }
.pnp-cc-modal__body p { margin: 0 0 12px; font-size: 14px; }
.pnp-cc-modal__foot { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #e5e5e5; }

.pnp-cc-cat { border: 1px solid #e5e5e5; border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; }
.pnp-cc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.pnp-cc-cat p { margin: 0 0 6px; }
.pnp-cc-always { font-size: 13px; font-weight: 600; color: #1a6b2f; }
.pnp-cc-note { background: #f4f6f8; border-radius: 8px; padding: 10px 12px; }
.pnp-cc-cat__none { font-size: 13px; color: #666; margin: 0; }
.pnp-cc-details summary { cursor: pointer; font-size: 13px; color: #0a58ca; }
.pnp-cc-details ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
.pnp-cc-details li { margin-bottom: 6px; }

/* Switch (OFF by default — nothing is pre-ticked) */
.pnp-cc-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.pnp-cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.pnp-cc-switch__ui { position: absolute; inset: 0; background: #8a8a8a; border-radius: 26px; transition: background .2s; }
.pnp-cc-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .2s; }
.pnp-cc-switch input:checked + .pnp-cc-switch__ui { background: #1a6b2f; }
.pnp-cc-switch input:checked + .pnp-cc-switch__ui::after { transform: translateX(20px); }
.pnp-cc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Re-open button (withdraw / change consent at any time) ── */
.pnp-cc-reopen { position: fixed; left: 12px; bottom: 12px; z-index: 999980; background: #fff; border: 1px solid #1a1a1a; border-radius: 20px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.pnp-cc-linkbtn { background: none; border: 0; padding: 0; color: #0a58ca; text-decoration: underline; cursor: pointer; font: inherit; }
html.pnp-cc-lock { overflow: hidden; }
/* The reCAPTCHA badge is fixed bottom-right and would cover the banner's last button; hide it only while the banner is open. */
html.pnp-cc-open .grecaptcha-badge { visibility: hidden !important; }

@media (max-width: 640px) {
  .pnp-cc { padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px)); max-height: 80vh; overflow-y: auto; }
  .pnp-cc__actions { width: 100%; }
  .pnp-cc-btn { flex: 1 1 100%; }
  .pnp-cc-modal__foot .pnp-cc-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .pnp-cc-switch__ui, .pnp-cc-switch__ui::after { transition: none; } }
