:root {
    --cc-bg: rgba(8, 12, 22, 0.94);
    --cc-panel-bg: linear-gradient(180deg, rgba(14, 19, 34, 0.98) 0%, rgba(10, 14, 25, 0.98) 100%);
    --cc-border: rgba(255, 255, 255, 0.12);
    --cc-border-strong: rgba(108, 150, 255, 0.45);
    --cc-text: #f6f8ff;
    --cc-text-muted: rgba(246, 248, 255, 0.72);
    --cc-surface: rgba(255, 255, 255, 0.04);
    --cc-surface-strong: rgba(255, 255, 255, 0.08);
    --cc-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
    --cc-primary: #7cd6ff;
    --cc-primary-strong: #8d7cff;
    --cc-success: #7fffb1;
    --cc-radius-lg: 22px;
    --cc-radius-md: 16px;
    --cc-radius-sm: 999px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.cc-lock-scroll {
    overflow: hidden;
}

.cc-widget {
    position: relative;
    z-index: 9999;
}

.cc-banner,
.cc-modal,
.cc-manage-button {
    font-family: inherit;
}

.cc-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    max-width: 1120px;
    margin: 0 auto;
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius-lg);
    background: var(--cc-panel-bg);
    box-shadow: var(--cc-shadow);
    backdrop-filter: blur(18px);
    color: var(--cc-text);
    animation: ccFadeSlideUp 320ms ease;
}

.cc-banner__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
    gap: 24px;
    padding: 26px 28px;
}

.cc-banner__eyebrow,
.cc-modal__eyebrow {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cc-primary);
}

.cc-banner__title,
.cc-modal__title {
    margin: 0 0 12px;
    font-size: 1.45rem;
    line-height: 1.2;
    color: var(--cc-text);
}

.cc-banner__description,
.cc-modal__description,
.cc-category__description {
    margin: 0;
    color: var(--cc-text-muted);
    line-height: 1.65;
}

.cc-banner__note {
    margin: 14px 0 0;
    color: var(--cc-text-muted);
    font-size: 0.95rem;
}

.cc-banner__actions,
.cc-modal__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.cc-button,
.cc-manage-button,
.cc-icon-button {
    appearance: none;
    border: 0;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.cc-button {
    min-height: 48px;
    padding: 0 18px;
    border-radius: var(--cc-radius-sm);
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.cc-button:focus-visible,
.cc-icon-button:focus-visible,
.cc-manage-button:focus-visible,
.cc-switch__input:focus-visible + .cc-switch__track {
    outline: 2px solid rgba(124, 214, 255, 0.95);
    outline-offset: 3px;
}

.cc-button:hover,
.cc-manage-button:hover,
.cc-icon-button:hover {
    transform: translateY(-1px);
}

.cc-button--primary {
    background: linear-gradient(135deg, var(--cc-primary) 0%, var(--cc-primary-strong) 100%);
    color: #040711;
    box-shadow: 0 12px 30px rgba(124, 214, 255, 0.18);
}

.cc-button--primary:hover {
    box-shadow: 0 16px 36px rgba(124, 214, 255, 0.24);
}

.cc-button--secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--cc-text);
    border-color: rgba(255, 255, 255, 0.14);
}

.cc-button--ghost {
    background: transparent;
    color: var(--cc-text-muted);
    border-color: rgba(255, 255, 255, 0.12);
}

.cc-manage-button {
    position: fixed;
    left: 24px;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: var(--cc-radius-sm);
    background: rgba(10, 14, 25, 0.9);
    
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
    z-index: 9997;

    background: #FFF;
    padding: 6px;
    font-size: 0.8rem;
    opacity: 0.6;
}

.cc-manage-button__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 0px;
    transition: width .2s;
    margin-left: -10px;
    opacity: 0;
}
.cc-manage-button:hover {
    opacity: 1;
}
.cc-manage-button:hover .cc-manage-button__text {
    width: 140px;
    opacity: 1;
    margin-left: 0;
}

.cc-manage-button__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cc-success) 0%, var(--cc-primary) 100%);
    box-shadow: 0 0 0 6px rgba(127, 255, 177, 0.12);
}

.cc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 6, 12, 0.72);
    backdrop-filter: blur(10px);
    animation: ccFadeIn 220ms ease;
    z-index: 9998;
}

.cc-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    z-index: 9999;
}

.cc-modal__panel {
    width: min(100%, 760px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 28px;
    border-radius: 24px;
    border: 1px solid var(--cc-border);
    background: var(--cc-panel-bg);
    box-shadow: var(--cc-shadow);
    color: var(--cc-text);
    animation: ccFadeSlideUp 260ms ease;
}

.cc-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.cc-icon-button {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--cc-text);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 1.4rem;
    line-height: 1;
}

.cc-category-list {
    display: grid;
    gap: 16px;
    margin: 24px 0 28px;
}

.cc-category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 18px 20px;
    border-radius: var(--cc-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--cc-surface);
}

.cc-category--locked {
    border-color: rgba(127, 255, 177, 0.18);
    background: linear-gradient(180deg, rgba(127, 255, 177, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.cc-category__title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: var(--cc-text);
}

.cc-switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.cc-switch__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cc-switch__track {
    position: relative;
    width: 56px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.14);
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.cc-switch__track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
    transition: transform 180ms ease;
}

.cc-switch__input:checked + .cc-switch__track {
    background: linear-gradient(135deg, rgba(124, 214, 255, 0.95) 0%, rgba(141, 124, 255, 0.95) 100%);
    border-color: transparent;
}

.cc-switch__input:checked + .cc-switch__track::after {
    transform: translateX(24px);
}

.cc-switch__input:disabled + .cc-switch__track {
    background: linear-gradient(135deg, rgba(127, 255, 177, 0.8) 0%, rgba(124, 214, 255, 0.85) 100%);
}

.cc-switch__label {
    color: var(--cc-text);
    font-size: 0.92rem;
    font-weight: 600;
}

.cc-modal__footer {
    justify-content: flex-end;
}

@media (max-width: 991.98px) {
    .cc-banner__inner,
    .cc-category {
        grid-template-columns: 1fr;
    }

    .cc-banner__actions,
    .cc-modal__footer {
        justify-content: stretch;
    }

    .cc-button {
        flex: 1 1 100%;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .cc-banner {
        left: 14px;
        right: 14px;
        bottom: 14px;
        border-radius: 18px;
    }

    .cc-banner__inner {
        gap: 18px;
        padding: 18px;
    }

    .cc-banner__eyebrow,
    .cc-modal__eyebrow {
        margin-bottom: 8px;
    }

    .cc-banner__title {
        font-size: 1.18rem;
    }

    .cc-banner__description,
    .cc-banner__note,
    .cc-modal__description,
    .cc-category__description {
        font-size: 0.95rem;
    }

    .cc-manage-button {
        right: 14px;
        bottom: 14px;
        min-height: 40px;
        padding: 0 14px;
        font-size: 0.88rem;
    }

    .cc-modal {
        padding: 14px;
    }

    .cc-modal__panel {
        padding: 20px;
        border-radius: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cc-banner,
    .cc-modal__panel,
    .cc-modal-backdrop,
    .cc-button,
    .cc-manage-button,
    .cc-icon-button,
    .cc-switch__track,
    .cc-switch__track::after {
        animation: none !important;
        transition: none !important;
    }
}

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

@keyframes ccFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
