.cc-root {
    --cc-accent: #ffc800;
    --cc-text: #222;
    --cc-muted: #666;
    --cc-border: #e0e0e0;
    --cc-bg: #fff;
    font-family: 'ProximaNova', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    color: var(--cc-text);
}

.cc-root *,
.cc-root *::before,
.cc-root *::after {
    box-sizing: border-box;
}

.cc-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2147483647;
    max-width: 640px;
    margin: 0 auto;
    padding: 20px 24px;
    background: var(--cc-bg);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.cc-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    background: rgba(0, 0, 0, 0.45);
}

.cc-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 2147483647;
    width: calc(100% - 32px);
    max-width: 640px;
    max-height: calc(100% - 32px);
    overflow-y: auto;
    padding: 24px;
    background: var(--cc-bg);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transform: translate(-50%, -50%);
    outline: none;
}

.cc-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--cc-muted);
    font-size: 28px;
    line-height: 32px;
    cursor: pointer;
}

.cc-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.cc-icon {
    flex: 0 0 auto;
    font-size: 32px;
    line-height: 1;
}

.cc-root .cc-title {
    margin: 0;
    padding: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
    color: var(--cc-text);
}

.cc-root .cc-text {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--cc-muted);
}

.cc-root a {
    color: inherit;
    text-decoration: underline;
}

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

.cc-btn {
    flex: 1 1 180px;
    min-height: 44px;
    padding: 10px 18px;
    border: 2px solid var(--cc-accent);
    border-radius: 22px;
    background: var(--cc-accent);
    color: #000;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.cc-btn:hover,
.cc-btn:focus-visible {
    background: #fff;
}

.cc-btn--link {
    flex: 1 1 100%;
    min-height: 36px;
    padding: 6px;
    border-color: transparent;
    background: none;
    text-decoration: underline;
}

.cc-btn--link:hover,
.cc-btn--link:focus-visible {
    background: none;
    border-color: transparent;
    text-decoration: none;
}

.cc-actions--settings {
    position: sticky;
    bottom: -24px;
    margin: 0 -24px -24px;
    padding: 16px 24px 24px;
    background: var(--cc-bg);
    border-top: 1px solid var(--cc-border);
}

.cc-actions--settings .cc-btn {
    flex-basis: 160px;
}

.cc-cats {
    margin-bottom: 16px;
    border: 1px solid var(--cc-border);
    border-radius: 14px;
}

.cc-cat {
    padding: 14px 16px;
}

.cc-cat + .cc-cat {
    border-top: 1px solid var(--cc-border);
}

.cc-cat__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cc-cat__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.cc-root .cc-cat__text,
.cc-root .cc-cat__services {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--cc-muted);
}

.cc-root .cc-cat__services {
    font-style: italic;
}

.cc-switch {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 26px;
}

.cc-switch input {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.cc-switch__track {
    position: absolute;
    inset: 0;
    border-radius: 13px;
    background: #ccc;
    transition: background 0.15s;
}

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

.cc-switch input:checked + .cc-switch__track {
    background: var(--cc-accent);
}

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

.cc-switch input:focus-visible + .cc-switch__track {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.cc-switch--locked input {
    cursor: not-allowed;
}

.cc-switch--locked .cc-switch__track {
    opacity: 0.5;
}

@media (max-width: 575px) {
    .cc-banner {
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 16px;
    }

    .cc-dialog {
        width: calc(100% - 16px);
        max-height: calc(100% - 16px);
        padding: 20px 16px;
    }

    .cc-actions--settings {
        bottom: -20px;
        margin: 0 -16px -20px;
        padding: 12px 16px 20px;
    }

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