:root {
    --cc-banner-bg: #111111;
    --cc-banner-text: #ffffff;
    --cc-button-bg: #ffffff;
    --cc-button-text: #111111;
    --cc-accent-bg: #2f6fed;
    --cc-accent-text: #ffffff;
    --cc-panel-bg: #ffffff;
    --cc-panel-text: #111111;
}

.cc-banner,
.cc-modal,
.cc-floating-button,
.cc-reopen-inline {
    font-family: inherit;
}

.cc-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 99990;
    background: var(--cc-banner-bg);
    color: var(--cc-banner-text);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.cc-banner[hidden],
.cc-modal[hidden] {
    display: none !important;
}

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

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

.cc-banner__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.cc-banner__text {
    min-width: 0;
}

.cc-banner__text p {
    margin: 0;
    line-height: 1.45;
    font-size: 14px;
}

.cc-banner__actions,
.cc-modal__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cc-banner__actions {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.cc-banner__actions .cc-btn {
    white-space: nowrap;
}

.cc-btn,
.cc-floating-button,
.cc-reopen-inline {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    background: var(--cc-button-bg);
    color: var(--cc-button-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cc-btn:hover,
.cc-floating-button:hover,
.cc-reopen-inline:hover,
.cc-btn:focus-visible,
.cc-floating-button:focus-visible,
.cc-reopen-inline:focus-visible {
    opacity: 0.96;
    transform: translateY(-1px);
}

.cc-btn:focus-visible,
.cc-floating-button:focus-visible,
.cc-reopen-inline:focus-visible {
    outline: 2px solid var(--cc-accent-bg);
    outline-offset: 2px;
}

.cc-btn--primary {
    background: var(--cc-accent-bg);
    color: var(--cc-accent-text);
    border-color: var(--cc-accent-bg);
    box-shadow: 0 8px 20px rgba(47, 111, 237, 0.2);
}

.cc-btn:not(.cc-btn--primary) {
    background: var(--cc-button-bg);
    color: var(--cc-button-text);
    border-color: rgba(17, 17, 17, 0.14);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.cc-btn:not(.cc-btn--primary):hover,
.cc-btn:not(.cc-btn--primary):focus-visible {
    background: #f7f7f7;
    border-color: rgba(17, 17, 17, 0.22);
}

.cc-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.cc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.cc-modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 24px;
}

.cc-modal__content {
    width: 100%;
    max-width: 760px;
    background: var(--cc-panel-bg);
    color: var(--cc-panel-text);
    border-radius: 18px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.28);
    padding: 28px;
}

.cc-modal__content h2,
.cc-category__text h3 {
    margin-top: 0;
}

.cc-modal__content h2 {
    margin-bottom: 18px;
    font-size: 22px;
    line-height: 1.25;
}

.cc-modal__overview,
.cc-policy p,
.cc-category__text p {
    line-height: 1.6;
    font-size: 14px;
}

.cc-modal__overview {
    margin: 0 0 20px;
}

.cc-category {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 18px 22px;
    margin: 16px 0;
    background: #ffffff;
}

.cc-category--locked {
    background: #f6f6f7;
    border-color: rgba(0, 0, 0, 0.06);
}

.cc-category__text {
    min-width: 0;
    flex: 1 1 auto;
}

.cc-category__text h3 {
    margin-bottom: 6px;
    font-size: 16px;
    line-height: 1.3;
}

.cc-category__text p {
    margin: 0;
}

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

.cc-switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.cc-switch__slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #c5cad3;
    transition: background 0.2s ease;
}

.cc-switch__slider::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

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

.cc-switch input:checked + .cc-switch__slider::before {
    transform: translateX(24px);
}

.cc-switch input:disabled + .cc-switch__slider {
    background: #bfc4cd;
    opacity: 1;
    cursor: not-allowed;
}

.cc-category--locked .cc-switch__slider {
    background: #bfc4cd;
}

.cc-category--locked .cc-switch__slider::before {
    background: #f5f5f5;
}

.cc-policy {
    margin: 22px 0 8px;
}

.cc-policy p {
    margin: 0;
}

.cc-modal__actions {
    margin-top: 26px;
    align-items: center;
}

.cc-modal__actions .cc-btn {
    min-width: 148px;
}

.cc-floating-button {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 99980;
    background: var(--cc-accent-bg);
    color: var(--cc-accent-text);
    border-color: var(--cc-accent-bg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.cc-reopen-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cc-accent-bg);
    color: var(--cc-accent-text);
    border-color: var(--cc-accent-bg);
}

.cc-modal-open {
    overflow: hidden;
}

@media (max-width: 1100px) {
    .cc-banner__inner {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .cc-banner__actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media (max-width: 782px) {
    .cc-banner__inner {
        padding: 16px;
    }

    .cc-banner__actions,
    .cc-modal__actions {
        width: 100%;
        flex-direction: column;
    }

    .cc-btn,
    .cc-floating-button,
    .cc-reopen-inline,
    .cc-modal__actions .cc-btn {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .cc-modal__dialog {
        padding: 12px;
    }

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

    .cc-category {
        align-items: flex-start;
        padding: 16px;
    }

    .cc-floating-button {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
    }
}