/* Preferenze privacy (consenso.js) – 13 ottobre 2026 */
.cp-dialog{width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:24px 26px;border:0;border-radius:16px;box-shadow:0 24px 60px rgb(8 43 89 / 25%);color:#082b59;font:inherit;overflow:auto}
.cp-dialog::backdrop{background:rgb(8 30 60 / 55%)}
.cp-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.cp-head h2{margin:0;font-size:1.375rem}
.cp-x{width:36px;height:36px;border:1px solid #d6e0ec;border-radius:9px;background:#fff;color:#082b59;font-size:1.375rem;line-height:1;cursor:pointer}
.cp-intro{margin:12px 0 0;color:#4d6482;font-size:.9375rem;line-height:1.55}
.cp-intro a,.cp-banner a{color:#082b59;font-weight:600}
.cp-cats{display:grid;gap:10px;margin-top:16px}
.cp-cat{border:1px solid #d6e0ec;border-radius:12px;padding:12px 14px}
.cp-cat-head{display:flex;align-items:center;gap:10px;font-weight:700;cursor:pointer}
.cp-cat-head input{width:18px;height:18px;flex-shrink:0}
.cp-cat-head input:disabled+.cp-cat-name{color:#082b59}
.cp-cat-name{flex:1}
.cp-badge{font-size:.75rem;font-weight:600;padding:3px 9px;border-radius:999px;background:#eef3f9;color:#4d6482;white-space:nowrap}
.cp-cat-text,.cp-cat-list{margin:6px 0 0 28px;color:#4d6482;font-size:.875rem;line-height:1.5}
.cp-cat-list{font-size:.8125rem}
.cp-services{margin:6px 0 0 28px;padding-left:16px;font-size:.8125rem;color:#4d6482}
.cp-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.cp-btn{flex:1;min-width:140px;min-height:44px;padding:10px 16px;border:1px solid #082b59;border-radius:8px;background:#fff;color:#082b59;font:inherit;font-weight:650;cursor:pointer}
.cp-btn:hover{background:#eef3f9}
.cp-btn-primary{background:#082b59;color:#fff}
.cp-btn-primary:hover{background:#164574}
.cp-link{border:0;background:none;padding:10px 6px;color:#082b59;font:inherit;font-weight:600;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.cp-status{min-height:1.4em;margin:10px 0 0;font-size:.875rem;color:#0a7a4c}
.cp-foot{margin:4px 0 0;font-size:.75rem;color:#6b7d95}
.cp-banner{position:fixed;left:16px;right:16px;bottom:16px;z-index:1000;max-width:760px;margin:0 auto;padding:18px 54px 18px 20px;border-radius:14px;background:#fff;color:#082b59;box-shadow:0 18px 50px rgb(8 43 89 / 25%);border:1px solid #d6e0ec}
.cp-banner p{margin:0;font-size:.9375rem;line-height:1.5}
.cp-banner .cp-x{position:absolute;top:10px;right:10px}
.cp-banner .cp-btn{flex:0 1 auto}
.footer-prefs{background:none;border:0;padding:0;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
@media(max-width:560px){.cp-dialog{padding:18px}.cp-cat-text,.cp-cat-list,.cp-services{margin-left:0}.cp-banner{padding:16px 16px 16px 16px}.cp-banner p{padding-right:34px}}
@media (prefers-color-scheme:dark){.cp-dialog,.cp-banner{color-scheme:light}}
