.cc-root { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; font-family: inherit; font-size: 14px; line-height: 1.5; color: #080736; }
.cc-root .cc-panel { pointer-events: auto; background: #fff; box-shadow: 0 8px 32px rgba(0, 0, 0, .25); border-radius: 8px; padding: 24px; box-sizing: border-box; }
.cc-root h2 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.cc-root p { margin: 0 0 12px; }
.cc-root a { color: #0037ff; text-decoration: underline; }

/* Banner: bottom-left card, full width on small screens */
.cc-root:not(.cc-settings) .cc-panel { position: absolute; left: 16px; bottom: 16px; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; }

/* Settings: centred modal */
.cc-settings { pointer-events: auto; }
.cc-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.cc-modal { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; }
.cc-x { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: inherit; }

.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 16px; }
/* Brand: Optimizely blue #0037ff, navy #080736 (matches .button--highlight / .button--outline in common.css) */
.cc-btn { cursor: pointer; border-radius: 5px; padding: 10px 18px; font: inherit; font-weight: 600; border: 1px solid #0037ff; }
.cc-primary { background: #0037ff; border-color: #1a4bff; color: #fff; }
.cc-primary:hover { background: #0037ff; border-color: #1a4bff; filter: brightness(1.1); }
.cc-primary:active { background: #002ccc; border-color: #0027b3; box-shadow: inset 0 1px 3px 0 #00000080; filter: none; }
.cc-secondary { background: transparent; color: #0037ff; }
.cc-secondary:hover { background: #eef3ff; }
.cc-secondary:active { border-color: #080736; color: #080736; }
.cc-btn:focus-visible, .cc-x:focus-visible, .cc-switch input:focus-visible + .cc-slider { outline: 3px solid #ff8c00; outline-offset: 2px; }

.cc-gpc { background: #eef3ff; border-left: 4px solid #0037ff; padding: 8px 12px; margin: 0 0 12px; }
.cc-gpc p { margin: 4px 0 0; }

.cc-row { border-top: 1px solid #e3e3e3; padding: 12px 0; }
.cc-switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.cc-switch input { position: absolute; opacity: 0; }
.cc-slider { flex: none; position: relative; width: 40px; height: 22px; border-radius: 11px; background: #b5b5b5; transition: background .15s; margin-top: 2px; }
.cc-slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.cc-switch input:checked + .cc-slider { background: #0037ff; }
.cc-switch input:checked + .cc-slider::after { transform: translateX(18px); }
.cc-switch input:disabled + .cc-slider { opacity: .55; }
.cc-label { display: flex; flex-direction: column; }
.cc-label span { color: #555; }

@media (prefers-reduced-motion: reduce) { .cc-slider, .cc-slider::after { transition: none; } }
@media (max-width: 480px) { .cc-root:not(.cc-settings) .cc-panel { left: 8px; bottom: 8px; width: calc(100vw - 16px); } .cc-btn { flex: 1 1 100%; } }
