:root {
    --cc-font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    --cc-radius: 10px;
    --cc-shadow: 0 6px 24px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.08);
    --cc-border: 1px solid rgba(0,0,0,.08);
    --cc-bg: #ffffff;
    --cc-fg: #111827;
    --cc-muted: #6b7280;
    --cc-link: #2563eb;
    --cc-primary: #2563eb;
    --cc-primary-contrast: #ffffff;
    --cc-secondary: #e5e7eb;
}

.cc-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 2147483646;
    font-family: var(--cc-font);
    color: var(--cc-fg);
}

.cc-banner--bottom { bottom: 0; }
.cc-banner--top { top: 0; }

.cc-banner__content {
    margin: 16px auto;
    max-width: 1000px;
    background: var(--cc-bg);
    border: var(--cc-border);
    box-shadow: var(--cc-shadow);
    border-radius: var(--cc-radius);
    padding: 14px 16px;
    /*display: flex;*/
    /*gap: 12px;*/
    /*align-items: center;*/
}

.cc-banner__text {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.cc-link { color: var(--cc-link); text-decoration: underline; }

.cc-banner__actions {
    display: flex;
    gap: 8px;
    justify-content: end;
}

.cc-btn {
    font: inherit;
    padding: 5px 8px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 16px;
}

.cc-btn--primary { background: var(--cc-primary); color: var(--cc-primary-contrast); }
.cc-btn--secondary { background: var(--cc-secondary); color: var(--cc-fg); }
.cc-btn--neutral { background: #fff; border-color: #d1d5db; color: var(--cc-fg); }

.cc-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17,24,39,.5);
    z-index: 2147483646;
    display: none;
}

.cc-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2147483647;
    width: min(680px, 92vw);
    background: var(--cc-bg);
    border: var(--cc-border);
    border-radius: 12px;
    box-shadow: var(--cc-shadow);
    display: none;
}

.cc-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.cc-modal__title { font-weight: 600; font-size: 16px; }
.cc-icon-btn { background: transparent; border: none; font-size: 20px; cursor: pointer; }

.cc-modal__body { padding: 12px 16px; max-height: 60vh; overflow: auto; }
.cc-modal__footer { padding: 12px 16px; display: flex; align-items: center; gap: 8px; border-top: 1px solid #e5e7eb; }
.cc-modal__spacer { flex: 1; }

.cc-row { padding: 10px 0; display: grid; gap: 6px; }
.cc-row__header { display: flex; align-items: center; gap: 10px; }
.cc-row__title { font-weight: 600; }
.cc-row__desc { color: var(--cc-muted); font-size: 14px; }

.cc-badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    margin-left: 8px;
}

/* Toggle switch */
.cc-switch { position: relative; display: inline-flex; align-items: center; width: 44px; height: 24px; }
.cc-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.cc-slider {
    position: relative;
    display: inline-block;
    width: 44px; height: 24px;
    background: #e5e7eb;
    border-radius: 999px;
    transition: background .2s;
}
.cc-slider::after {
    content: "";
    position: absolute; left: 3px; top: 3px;
    width: 18px; height: 18px;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0,0,0,.15);
    transition: transform .2s;
}
.cc-switch input:checked + .cc-slider { background: var(--cc-primary); }
.cc-switch input:checked + .cc-slider::after { transform: translateX(20px); }
.cc-switch input:disabled + .cc-slider { background: #d1d5db; cursor: not-allowed; }

@media (max-width: 640px) {
    .cc-banner__content { flex-direction: column; align-items: stretch; }
    .cc-banner__actions { justify-content: flex-end; }
}


