.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: #0a0f1c;
    color: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(7, 11, 20, 0.5);
    font-family: 'Inter', -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: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.cc-text {
    margin: 0 0 16px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #cbd5e1;
}

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

.cc-text a:hover {
    color: #fff;
}

.cc-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    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(148, 163, 184, 0.16);
}

.cc-pref {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    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: #94a3b8;
}

.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(148, 163, 184, 0.28);
    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: #2563eb;
}

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

.cc-switch:focus-visible,
.cc-btn:focus-visible,
.cc-close:focus-visible {
    outline: 2px solid #67e8f9;
    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 #2563eb;
    border-radius: 999px;
    background: #2563eb;
    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: #1d4ed8;
    border-color: #1d4ed8;
}

.cc-btn-ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.35);
}

.cc-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(148, 163, 184, 0.6);
}

.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%; }
}
