:root { --cc-primary: #3f5363; --cc-accent: #22D3EE; --cc-surface: #FFFFFF; --cc-muted: #414B57; --cc-font: system-ui, sans-serif; }
html.cc-locked { overflow: hidden; }
/* La bolla della chat copriva i pulsanti del banner su telefono. */
html.cc-open #chat-widget-container, html.cc-locked #chat-widget-container { display: none !important; }
#cc-root { position: relative; z-index: 9990; font-family: var(--font-body, system-ui), system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--cc-primary); }
#cc-root *, #cc-root *::before, #cc-root *::after { box-sizing: border-box; }
#cc-root p { margin: 0; }
#cc-root .cc-btn { font: 600 15px/1.2 var(--font-body, system-ui), system-ui, sans-serif; border-radius: var(--radius, 100px); padding: 12px 22px; min-height: 48px; cursor: pointer; border: 2px solid var(--cc-primary); text-transform: none; letter-spacing: 0; transition: background-color 160ms ease, color 160ms ease; }
#cc-root .cc-choice { background: var(--cc-primary); color: #FFFFFF; }
#cc-root .cc-choice:hover, #cc-root .cc-choice:focus { background: #2A2A2A; color: #FFFFFF; }
#cc-root .cc-ghost { background: var(--cc-surface); color: var(--cc-primary); }
#cc-root .cc-ghost:hover, #cc-root .cc-ghost:focus { background: var(--cc-surface); color: var(--cc-primary); }
#cc-root .cc-btn:focus-visible, #cc-root .cc-x:focus-visible, #cc-root a:focus-visible { outline: 2px solid var(--cc-primary); outline-offset: 3px; }
#cc-root .cc-x, #cc-root .cc-x:hover, #cc-root .cc-x:focus { background: none; border: 0; box-shadow: none; font-size: 28px; line-height: 1; color: var(--cc-muted); cursor: pointer; padding: 6px; min-width: 44px; min-height: 44px; }
#cc-root .cc-x:hover { color: var(--cc-primary); }
#cc-root a { color: var(--cc-primary); text-decoration: underline; text-underline-offset: 2px; }
.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.cc-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2147483000; max-width: 920px; margin: 0 auto; background: var(--cc-surface); border: 1px solid #D5DBE3; border-radius: var(--radius-m, 16px); box-shadow: 0 2px 8px rgb(10 10 10 / 0.08), 0 18px 48px rgb(10 10 10 / 0.18); padding: 24px 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 28px; align-items: center; }
.cc-banner .cc-x { position: absolute; top: 6px; right: 8px; }
#cc-root .cc-title { font-family: var(--font-heading, system-ui), system-ui, sans-serif; font-weight: 700; font-size: 18px; margin: 0 0 6px; color: var(--cc-primary); }
#cc-root .cc-banner p { color: var(--cc-muted); font-size: 15px; line-height: 1.55; max-width: 62ch; }
.cc-overlay { position: fixed; inset: 0; z-index: 2147483001; background: rgb(10 10 10 / 0.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
#cc-root { z-index: auto; }
.cc-modal { background: var(--cc-surface); border-radius: var(--radius-m, 16px); box-shadow: 0 24px 64px rgb(10 10 10 / 0.28); width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; padding: 28px; }
.cc-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#cc-root .cc-modal-head h2 { font-family: var(--font-heading, system-ui), system-ui, sans-serif; font-size: 22px; font-weight: 700; margin: 0; line-height: 1.2; color: var(--cc-primary); text-transform: none; }
#cc-root .cc-modal-intro { font-size: 15px; color: var(--cc-muted); margin: 10px 0 0; line-height: 1.55; }
.cc-cats { display: grid; margin: 20px 0; }
.cc-cat { padding: 16px 0; border-top: 1px solid #D5DBE3; }
.cc-cat:last-child { border-bottom: 1px solid #D5DBE3; }
.cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cc-cat-name { font-weight: 600; }
#cc-root .cc-cat-desc { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--cc-muted); }
.cc-switch { position: relative; display: inline-flex; width: 48px; height: 28px; flex: none; }
.cc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.cc-switch.cc-locked input { cursor: not-allowed; }
.cc-slider { position: absolute; inset: 0; background: #8A8A8A; border-radius: 999px; transition: background-color 160ms ease; pointer-events: none; }
.cc-slider::before { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; background: var(--cc-surface); border-radius: 50%; transition: transform 160ms ease; }
.cc-switch input:checked + .cc-slider { background: var(--cc-primary); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(20px); }
.cc-switch.cc-locked .cc-slider { opacity: 0.55; }
.cc-switch input:focus-visible + .cc-slider { outline: 2px solid var(--cc-primary); outline-offset: 3px; }
.cc-reopen { position: fixed; left: 16px; bottom: 16px; z-index: 9980; width: 44px; height: 44px; border-radius: 50%; background: var(--cc-surface); border: 1px solid var(--cc-primary); color: var(--cc-primary); display: grid; place-items: center; cursor: pointer; padding: 0; }
@media (max-width: 767px) {
.cc-banner { grid-template-columns: minmax(0, 1fr); left: 8px; right: 8px; bottom: 8px; padding: 20px 18px 18px; }
.cc-actions .cc-btn { flex: 1 1 auto; }
.cc-actions .cc-ghost { order: 3; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
.cc-slider, .cc-slider::before, #cc-root .cc-btn { transition: none; }
}
