#cookie-consent-root {
    --cc-primary: #0d6efd;
    --cc-primary-hover: #0b5ed7;
    --cc-text: #172033;
    --cc-muted: #5f6b7a;
    --cc-surface: #ffffff;
    --cc-border: #dfe5ec;
    --cc-shadow: 0 18px 55px rgba(15, 23, 42, .22);
    color: var(--cc-text);
    font-family: inherit;
}

#cookie-consent-root:not([data-cc-ready]) {
    display: none;
}

#cookie-consent-root [hidden] {
    display: none !important;
}

.cc-no-scroll {
    overflow: hidden;
}

.cc-banner {
    position: fixed;
    z-index: 2147483000;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    justify-content: space-between;
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--cc-border);
    border-radius: .9rem;
    background: var(--cc-surface);
    box-shadow: var(--cc-shadow);
}

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

.cc-banner__title,
.cc-modal__title {
    margin: 0 0 .45rem;
    color: var(--cc-text);
    font-size: 1.15rem;
    font-weight: 700;
}

.cc-banner__text,
.cc-modal__intro {
    margin: 0;
    color: var(--cc-muted);
    font-size: .95rem;
    line-height: 1.55;
}

.cc-banner__link {
    display: inline-block;
    margin-top: .55rem;
    color: var(--cc-primary);
    font-size: .9rem;
    text-decoration: underline;
}

.cc-banner__actions,
.cc-modal__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: .55rem;
    justify-content: flex-end;
}

.cc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.55rem;
    padding: .55rem .9rem;
    border: 1px solid transparent;
    border-radius: .45rem;
    cursor: pointer;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.2;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.cc-button:focus-visible,
.cc-modal__close:focus-visible,
.cc-floating:focus-visible,
.cc-category input:focus-visible {
    outline: 3px solid rgba(13, 110, 253, .35);
    outline-offset: 2px;
}

.cc-button--primary {
    border-color: var(--cc-primary);
    background: var(--cc-primary);
    color: #fff;
}

.cc-button--primary:hover {
    border-color: var(--cc-primary-hover);
    background: var(--cc-primary-hover);
}

.cc-button--outline {
    border-color: var(--cc-primary);
    background: transparent;
    color: var(--cc-primary);
}

.cc-button--outline:hover {
    background: rgba(13, 110, 253, .08);
}

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

.cc-button--secondary:hover {
    background: #f3f5f8;
}

.cc-overlay {
    position: fixed;
    z-index: 2147483001;
    inset: 0;
    background: rgba(15, 23, 42, .55);
}

.cc-modal {
    position: fixed;
    z-index: 2147483002;
    top: 50%;
    left: 50%;
    width: min(620px, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 1.35rem;
    transform: translate(-50%, -50%);
    border: 1px solid var(--cc-border);
    border-radius: .9rem;
    background: var(--cc-surface);
    box-shadow: var(--cc-shadow);
}

.cc-modal__header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

.cc-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: .4rem;
    background: transparent;
    color: var(--cc-muted);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.cc-modal__close:hover {
    background: #f3f5f8;
    color: var(--cc-text);
}

.cc-category-list {
    display: grid;
    gap: .65rem;
    margin: 1.15rem 0 1.25rem;
}

.cc-category {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1rem;
    border: 1px solid var(--cc-border);
    border-radius: .65rem;
    cursor: pointer;
}

.cc-category:hover {
    background: #fafbfd;
}

.cc-category__copy {
    display: grid;
    gap: .25rem;
}

.cc-category__copy strong {
    color: var(--cc-text);
    font-size: .95rem;
}

.cc-category__copy small {
    color: var(--cc-muted);
    font-size: .82rem;
    line-height: 1.4;
}

.cc-category input {
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 auto;
    accent-color: var(--cc-primary);
}

.cc-floating {
    position: fixed;
    z-index: 2147482999;
    bottom: 1rem;
    left: 1rem;
    display: inline-flex;
    gap: .45rem;
    align-items: center;
    padding: .6rem .85rem;
    border: 1px solid var(--cc-border);
    border-radius: 999px;
    background: var(--cc-surface);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .16);
    color: var(--cc-text);
    cursor: pointer;
    font: inherit;
    font-size: .82rem;
    font-weight: 600;
}

.cc-floating:hover {
    border-color: var(--cc-primary);
    color: var(--cc-primary);
}

@media (max-width: 760px) {
    .cc-banner {
        display: block;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
        padding: 1rem;
    }

    .cc-banner__actions {
        margin-top: 1rem;
        justify-content: stretch;
    }

    .cc-banner__actions .cc-button {
        flex: 1 1 100%;
    }

    .cc-modal__actions {
        justify-content: stretch;
    }

    .cc-modal__actions .cc-button {
        flex: 1 1 100%;
    }
}

@media (prefers-color-scheme: dark) {
    #cookie-consent-root {
        --cc-text: #edf2f7;
        --cc-muted: #b3bfcc;
        --cc-surface: #1f2937;
        --cc-border: #3c4a5d;
    }

    .cc-button--secondary:hover,
    .cc-modal__close:hover,
    .cc-category:hover {
        background: #2b3748;
    }
}
