.cc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #fff;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
    padding: 24px 32px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Urbanist', sans-serif;
}

.cc-banner.cc-visible {
    transform: translateY(0);
}

[data-theme="dark"] .cc-banner {
    background: #1a1a2e;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}

.cc-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.cc-banner-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
}

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

.cc-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cc-btn {
    padding: 10px 20px;
    border-radius: var(--radius-small);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.cc-btn:hover {
    transform: translateY(-1px);
}

.cc-btn--accept {
    background: #fa700d;
    color: #fff;
}

.cc-btn--accept:hover {
    background: #e06000;
}

.cc-btn--reject {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid rgba(0,0,0,0.15);
}

[data-theme="dark"] .cc-btn--reject {
    color: #e0e0e0;
    border-color: rgba(255,255,255,0.2);
}

.cc-btn--reject:hover {
    background: rgba(0,0,0,0.04);
}

.cc-btn--settings {
    background: transparent;
    color: var(--text-secondary);
    padding: 10px 14px;
}

.cc-btn--settings:hover {
    color: var(--text-primary);
}

/* ─── Preferences modal ─── */

.cc-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.cc-overlay.cc-visible {
    opacity: 1;
    visibility: visible;
}

.cc-modal {
    background: #fff;
    border-radius: var(--radius-large);
    max-width: 520px;
    width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: var(--shadow-medium);
    font-family: 'Urbanist', sans-serif;
}

[data-theme="dark"] .cc-modal {
    background: #1a1a2e;
}

.cc-modal-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-primary);
}

.cc-modal-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 24px;
    line-height: 1.5;
}

.cc-category {
    padding: 16px 0;
    border-top: 1px solid var(--border-light);
}

.cc-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cc-category-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.cc-category-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
}

.cc-category-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

[data-theme="dark"] .cc-category-badge {
    background: rgba(255,255,255,0.08);
}

/* Toggle switch */
.cc-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.cc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.cc-toggle-track {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.cc-toggle input:checked + .cc-toggle-track {
    background: #fa700d;
}

.cc-toggle-track::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.cc-toggle input:checked + .cc-toggle-track::after {
    transform: translateX(20px);
}

.cc-toggle input:disabled + .cc-toggle-track {
    opacity: 0.5;
    cursor: default;
}

.cc-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

/* ─── Responsive ─── */

@media (max-width: 768px) {
    .cc-banner {
        padding: 20px 16px;
    }

    .cc-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .cc-banner-actions {
        flex-wrap: wrap;
    }

    .cc-btn {
        flex: 1;
        text-align: center;
        min-width: 0;
    }

    .cc-btn--settings {
        flex-basis: 100%;
    }

    .cc-modal {
        padding: 24px 20px;
    }
}
