:root {
    --cc-bg: #171717;
    --cc-text: #ffffff;
    --cc-muted: #cfcfcf;
    --cc-border: rgba(255, 255, 255, 0.14);
    --cc-card-bg: #2f2d2a;
    --cc-primary-bg: #ffffff;
    --cc-primary-text: #171717;
    --cc-secondary-bg: transparent;
    --cc-secondary-text: #ffffff;
    --cc-toggle-active: #9b6b58;
    --cc-toggle-inactive: #8b8a86;
}

#cc-banner,
#cc-modal,
#cc-settings-button {
    box-sizing: border-box;
    font-family: Georgia, "Times New Roman", serif;
}

.cc-banner {
    position: fixed;
    z-index: 99998;
    width: min(560px, calc(100vw - 24px));
    padding: 28px;
    border-radius: 24px;
    background: var(--cc-bg);
    color: var(--cc-text);
    border: 1px solid var(--cc-border);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.cc-position-left {
    left: 12px;
    bottom: 12px;
}

.cc-position-center {
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
}

.cc-position-right {
    right: 12px;
    bottom: 12px;
}

.cc-banner-title,
.cc-modal-title {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.05;
    font-weight: 700;
    color: var(--cc-text);
}

.cc-banner-text,
.cc-modal-text {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    color: var(--cc-text);
}

.cc-banner-text {
    margin-bottom: 18px;
}

.cc-modal-text {
    margin-bottom: 20px;
}

.cc-policy-link {
    color: inherit;
    text-decoration: underline;
}

.cc-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cc-banner-action-row {
    display: flex;
    gap: 10px;
}

.cc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    border-radius: 14px;
    border: 1px solid var(--cc-border);
    cursor: pointer;
    padding: 12px 18px;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.cc-button:hover {
    opacity: 0.92;
}

.cc-button-primary {
    background: var(--cc-primary-bg);
    color: var(--cc-primary-text);
}

.cc-button-secondary {
    background: var(--cc-secondary-bg);
    color: var(--cc-secondary-text);
}

.cc-button-half {
    width: calc(50% - 5px);
}

.cc-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.32);
}

.cc-modal {
    width: min(720px, 100%);
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 28px;
    border-radius: 24px;
    background: var(--cc-bg);
    color: var(--cc-text);
    border: 1px solid var(--cc-border);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.cc-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cc-category-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: var(--cc-card-bg);
    border-radius: 16px;
}

.cc-category-copy {
    flex: 1 1 auto;
}

.cc-category-title {
    margin-bottom: 4px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--cc-text);
}

.cc-category-description {
    font-size: 16px;
    line-height: 1.32;
    color: var(--cc-muted);
}

.cc-category-control {
    display: flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}

.cc-category-badge {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--cc-text);
}

.cc-toggle {
    position: relative;
    display: inline-flex;
    width: 60px;
    height: 32px;
    flex: 0 0 60px;
}

.cc-toggle input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.cc-toggle-track {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: var(--cc-toggle-inactive);
    transition: background 0.2s ease;
}

.cc-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.cc-toggle input:checked + .cc-toggle-track {
    background: var(--cc-toggle-active);
}

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

.cc-button-save {
    margin-top: 20px;
}

.cc-settings-button {
    position: fixed;
    left: 12px;
    bottom: 12px;
    z-index: 99997;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--cc-border);
    background: var(--cc-bg);
    color: var(--cc-text);
    cursor: pointer;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
}

@media (max-width: 767px) {
    .cc-banner {
        width: calc(100vw - 16px);
        right: 8px;
        left: 8px;
        bottom: 8px;
        transform: none;
        padding: 22px;
        border-radius: 20px;
    }

    .cc-position-left,
    .cc-position-center,
    .cc-position-right {
        left: 8px;
        right: 8px;
        bottom: 8px;
        transform: none;
    }

    .cc-banner-title,
    .cc-modal-title {
        font-size: 26px;
    }

    .cc-banner-text,
    .cc-modal-text,
    .cc-category-description,
    .cc-button {
        font-size: 16px;
    }

    .cc-banner-action-row,
    .cc-category-card {
        flex-direction: column;
        align-items: stretch;
    }

    .cc-button-half {
        width: 100%;
    }

    .cc-category-control {
        justify-content: space-between;
    }

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

    .cc-settings-button {
        left: 8px;
        bottom: 8px;
    }
}
