.cc-root {
    --cc-accent: var(--public-primary, #5547ed);
    --cc-on-accent: var(--public-on-primary, #ffffff);
    --cc-ink: #182230;
    --cc-copy: #596579;
    --cc-muted: #7b8495;
    --cc-line: #e3e6ed;
    --cc-soft: #f7f7fb;
    --cc-surface: #ffffff;
    --cc-focus: rgba(85, 71, 237, .24);
    --cc-shadow: 0 24px 64px rgba(18, 24, 45, .19), 0 4px 14px rgba(18, 24, 45, .08);
    color: var(--cc-ink);
    font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.cc-gate {
    width: min(620px, calc(100vw - 36px));
    max-width: none;
    max-height: calc(100dvh - 36px);
    margin: auto;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 22px;
    background: rgba(255, 255, 255, .94);
    color: var(--cc-ink);
    box-shadow: var(--cc-shadow);
}

.cc-gate[open] {
    animation: cc-dialog-in .24s cubic-bezier(.22, .8, .32, 1) both;
}

.cc-gate::backdrop {
    background: rgba(12, 18, 33, .4);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.cc-gate:focus,
#cc-banner-title:focus {
    outline: none;
}

#cc-banner-title:focus {
    box-shadow: none;
}

.cc-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px;
}

.cc-banner-copy {
    display: grid;
    min-width: 0;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: start;
    gap: 15px;
}

.cc-privacy-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid #dedaff;
    border-radius: 14px;
    background: #f2f0ff;
    color: #5547ed;
}

.cc-privacy-mark svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.cc-banner h2,
.cc-dialog h2 {
    margin: 0;
    color: var(--cc-ink);
    font-family: inherit;
    font-weight: 820;
    letter-spacing: -.025em;
}

.cc-banner h2 {
    font-size: clamp(19px, 2vw, 23px);
    line-height: 1.18;
}

.cc-banner-copy p {
    max-width: 670px;
    margin: 6px 0 0;
    color: var(--cc-copy);
    font-size: 12.5px;
    line-height: 1.6;
}

.cc-banner-copy .cc-withdrawal-note {
    margin-top: 5px;
    color: var(--cc-muted);
    font-size: 11px;
}

.cc-withdrawal-note strong {
    color: #555f70;
    font-weight: 750;
}

.cc-withdrawal-note a {
    color: #493bd7;
    font-weight: 760;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.cc-banner-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.cc-banner-actions .cc-button-settings {
    grid-column: 1 / -1;
}

.cc-button,
.cc-floating-open,
.cc-footer-link,
.cc-dialog-close {
    appearance: none;
    border: 0;
    font: inherit;
}

.cc-button {
    display: inline-flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 11.5px;
    font-weight: 780;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.cc-button:hover {
    transform: translateY(-1px);
}

.cc-button:active {
    transform: translateY(0);
}

.cc-button:focus-visible,
.cc-floating-open:focus-visible,
.cc-footer-link:focus-visible,
.cc-dialog-close:focus-visible,
.cc-switch input:focus-visible + .cc-switch-track {
    outline: 3px solid var(--cc-focus);
    outline-offset: 2px;
}

.cc-button-primary {
    border-color: var(--cc-accent);
    background: var(--cc-accent);
    color: var(--cc-on-accent);
    box-shadow: none;
}

.cc-button-primary:hover {
    filter: brightness(.95);
}

.cc-button-reject,
.cc-button-secondary {
    border-color: #cfd4de;
    background: #ffffff;
    color: #263244;
}

.cc-button-reject:hover,
.cc-button-secondary:hover {
    border-color: #9da6b5;
    background: #f8f9fb;
}

.cc-button-settings {
    border-color: #e1e3e9;
    background: #f3f4f7;
    color: #4c5667;
}

.cc-button-settings:hover {
    border-color: #cbcfd8;
    background: #eaecf1;
    color: #293447;
}

.cc-modal-layer {
    display: grid;
}

.cc-dialog {
    position: relative;
    display: grid;
    width: 100%;
    max-height: min(760px, calc(100dvh - 36px));
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
}

.cc-dialog:focus {
    outline: none;
}

.cc-dialog-header {
    position: relative;
    padding: 27px 72px 22px 28px;
    border-bottom: 1px solid var(--cc-line);
}

.cc-dialog-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #5547ed;
    font-size: 10px;
    font-weight: 830;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.cc-dialog h2 {
    font-size: 27px;
    line-height: 1.15;
}

.cc-dialog-header p {
    margin: 8px 0 0;
    color: var(--cc-copy);
    font-size: 12.5px;
    line-height: 1.65;
}

.cc-dialog-close {
    position: absolute;
    top: 22px;
    right: 22px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid #d4d8e2;
    border-radius: 12px;
    background: #ffffff;
    color: #46516a;
    box-shadow: 0 2px 8px rgba(18, 25, 45, .04);
    cursor: pointer;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.cc-dialog-close:hover {
    border-color: #c8c3fb;
    background: #f7f6ff;
    color: #5547ed;
    box-shadow: 0 4px 12px rgba(85, 71, 237, .1);
}

.cc-dialog-close svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.cc-category-list {
    display: grid;
    gap: 10px;
    padding: 20px 28px;
    overflow: auto;
    background: #fbfbfd;
}

.cc-category {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 16px 17px;
    border: 1px solid var(--cc-line);
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 2px 7px rgba(20, 28, 44, .025);
}

.cc-category.is-required {
    border-color: #dfe2e8;
    background: #f7f8fa;
}

.cc-category-copy {
    min-width: 0;
}

.cc-category-copy strong {
    display: block;
    margin-bottom: 4px;
    color: #253043;
    font-size: 13px;
    font-weight: 790;
}

.cc-category-copy p {
    margin: 0;
    color: #687386;
    font-size: 11.5px;
    line-height: 1.55;
}

.cc-required-state {
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border: 1px solid #d9dddf;
    border-radius: 999px;
    background: #ffffff;
    color: #596477;
    font-size: 9.5px;
    font-weight: 780;
    white-space: nowrap;
}

.cc-required-state i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1b9b6b;
    box-shadow: 0 0 0 3px rgba(27, 155, 107, .12);
}

.cc-switch {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

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

.cc-switch-track {
    position: relative;
    display: block;
    width: 48px;
    height: 28px;
    border: 1px solid #cbd1dc;
    border-radius: 999px;
    background: #e9ecf1;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.cc-switch-track i {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(20, 28, 45, .22);
    transition: transform .2s cubic-bezier(.22, .8, .32, 1);
}

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

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

.cc-dialog-footer {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 9px;
    padding: 19px 28px 22px;
    border-top: 1px solid var(--cc-line);
    background: #ffffff;
}

.cc-floating-open {
    position: fixed;
    z-index: 2147482900;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(24, 34, 48, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #566174;
    box-shadow: 0 7px 22px rgba(18, 24, 45, .12);
    font-size: 10px;
    font-weight: 740;
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.cc-floating-open:hover {
    border-color: #a9a1ee;
    color: #493bd7;
}

.cc-footer-link {
    display: inline;
    min-height: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-decoration: none;
    cursor: pointer;
}

.cc-footer-link:hover {
    color: #5547ed;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-footer .cc-footer-link,
.unclaimed-footer .cc-footer-link {
    margin-left: 14px;
}

.cc-noscript {
    position: fixed;
    z-index: 2147483000;
    right: 18px;
    bottom: 18px;
    left: 18px;
    width: min(720px, calc(100% - 36px));
    margin: auto;
    padding: 14px 17px;
    border: 1px solid #d9dde5;
    border-radius: 13px;
    background: #ffffff;
    color: #4f5b6d;
    box-shadow: var(--cc-shadow);
    font-size: 12px;
}

.cc-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

html.cc-modal-open,
body.cc-modal-open {
    overflow: hidden !important;
}

@keyframes cc-dialog-in {
    from { opacity: 0; transform: translateY(8px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
    .cc-gate {
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: 18px;
    }

    .cc-banner {
        gap: 15px;
        padding: 20px;
    }

    .cc-banner-copy {
        grid-template-columns: 39px minmax(0, 1fr);
        gap: 12px;
    }

    .cc-privacy-mark {
        width: 39px;
        height: 39px;
        border-radius: 12px;
    }

    .cc-privacy-mark svg {
        width: 22px;
        height: 22px;
    }

    .cc-banner h2 {
        font-size: 19px;
    }

    .cc-banner-copy p {
        font-size: 11.5px;
        line-height: 1.52;
    }

    .cc-banner-actions {
        grid-template-columns: 1fr 1fr;
        margin-left: 0;
    }

    .cc-button-settings {
        grid-column: 1 / -1;
    }

    .cc-dialog {
        max-height: calc(100dvh - 26px);
    }

    .cc-dialog-header {
        padding: 23px 66px 18px 20px;
    }

    .cc-dialog h2 {
        font-size: 24px;
    }

    .cc-dialog-close {
        top: 18px;
        right: 18px;
    }

    .cc-category-list {
        padding: 15px 18px;
    }

    .cc-category {
        gap: 14px;
        padding: 14px;
    }

    .cc-dialog-footer {
        grid-template-columns: 1fr 1fr;
        padding: 15px 18px calc(17px + env(safe-area-inset-bottom));
    }

    .cc-dialog-footer .cc-button-primary {
        grid-column: 1 / -1;
    }
}

@media (max-width: 390px) {
    .cc-banner-actions,
    .cc-dialog-footer {
        grid-template-columns: 1fr;
    }

    .cc-button-settings,
    .cc-dialog-footer .cc-button-primary {
        grid-column: auto;
    }

    .cc-category {
        align-items: start;
        gap: 10px;
    }

    .cc-required-state {
        padding-inline: 7px;
        font-size: 8.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cc-root *,
    .cc-root *::before,
    .cc-root *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
