.cc-root {
    --cc-bg: #ffffff;
    --cc-fg: #1a1a1a;
    --cc-border: #dddddd;
    --cc-accent: #1f6feb;
    --cc-accent-fg: #ffffff;
    position: fixed;
    z-index: 2147483000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.cc-root.cc-theme-dark {
    --cc-bg: #1e1e1e;
    --cc-fg: #f0f0f0;
    --cc-border: #3a3a3a;
    --cc-accent: #4c9aff;
    --cc-accent-fg: #0b1220;
}

.cc-root[hidden] {
    display: none;
}

.cc-error { color: #b42318; margin: 12px 0 0; }
.cc-error[hidden] { display: none; }
.cc-btn:disabled { opacity: 0.65; cursor: wait; }

.cc-panel {
    background: var(--cc-bg);
    color: var(--cc-fg);
    border: 1px solid var(--cc-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    border-radius: 10px;
    max-width: 640px;
    padding: 20px;
}

.cc-layout-banner {
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    padding: 16px;
}

.cc-layout-banner .cc-panel {
    max-width: none;
    width: 100%;
    border-radius: 10px 10px 0 0;
}

.cc-layout-modal {
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
}

.cc-layout-drawer {
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: stretch;
}

.cc-layout-drawer .cc-panel {
    border-radius: 0;
    height: 100%;
    overflow-y: auto;
}

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

.cc-text {
    margin: 0;
    flex: 1 1 260px;
}

.cc-text a {
    color: var(--cc-accent);
}

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

.cc-btn {
    border: 1px solid var(--cc-border);
    background: transparent;
    color: var(--cc-fg);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
}

.cc-btn-primary {
    background: var(--cc-accent);
    border-color: var(--cc-accent);
    color: var(--cc-accent-fg);
}

.cc-details {
    margin-top: 16px;
    border-top: 1px solid var(--cc-border);
    padding-top: 16px;
    max-height: 50vh;
    overflow-y: auto;
}

.cc-details[hidden] {
    display: none;
}

.cc-category {
    margin-bottom: 14px;
}

.cc-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
}

.cc-locked {
    font-weight: 400;
    font-size: 12px;
    opacity: 0.7;
}

.cc-scripts {
    list-style: none;
    margin: 8px 0 0 26px;
    padding: 0;
    font-size: 13px;
    opacity: 0.85;
}

.cc-scripts li {
    margin-bottom: 6px;
}

.cc-scripts p {
    margin: 2px 0 0;
}

.cc-script-provider,
.cc-script-expiry {
    opacity: 0.7;
    margin-left: 6px;
}

.cc-reopen {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 2147483000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: var(--cc-accent, #1f6feb);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.cc-reopen[hidden] {
    display: none;
}

.cc-reopen svg { display: block; flex-shrink: 0; }
