.cc-root {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none;
    padding: 16px;
    pointer-events: none;
}

.cc-root.cc-visible {
    display: flex;
    justify-content: center;
}

.cc-banner {
    position: relative;
    width: 100%;
    max-width: 760px;
    padding: 24px 24px 20px;
    background: #0f172a;
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    pointer-events: auto;
    animation: ccIn 0.3s ease;
}

@keyframes ccIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.cc-title {
    margin: 0 32px 8px 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}

.cc-text {
    margin: 0 0 16px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.85);
}

.cc-text a {
    color: #a5b4fc;
    text-decoration: underline;
}

.cc-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(255,255,255,0.7);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.cc-close:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.cc-prefs {
    margin: 0 0 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.cc-pref {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    cursor: default;
}

label.cc-pref {
    cursor: pointer;
}

.cc-pref strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.92rem;
    color: #fff;
}

.cc-pref span {
    display: block;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(255,255,255,0.75);
}

.cc-pref .cc-always {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6ee7b7;
}

.cc-switch {
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 44px;
    height: 24px;
    margin: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: background 0.2s ease;
}

.cc-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
}

.cc-switch:checked {
    background: #6366f1;
}

.cc-switch:checked::after {
    transform: translateX(20px);
}

.cc-switch:focus-visible,
.cc-btn:focus-visible,
.cc-close:focus-visible {
    outline: 2px solid #a5b4fc;
    outline-offset: 2px;
}

.cc-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.cc-btn {
    min-width: 130px;
    padding: 10px 18px;
    border: 1px solid #6366f1;
    border-radius: 999px;
    background: #6366f1;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cc-btn:hover {
    background: #4f46e5;
    border-color: #4f46e5;
}

.cc-btn-ghost {
    background: transparent;
    border-color: rgba(255,255,255,0.3);
}

.cc-btn-ghost:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.5);
}

.cc-btn[hidden],
.cc-prefs[hidden] {
    display: none;
}

@media (max-width: 575px) {
    .cc-root { padding: 8px; }
    .cc-banner { padding: 20px 16px 16px; }
    .cc-actions { justify-content: stretch; }
    .cc-btn { flex: 1 1 100%; }
}
