.cc-root {
    --cc-accent: #5147e5;
    --cc-on-accent: #ffffff;
    --cc-ink: #101426;
    --cc-copy: #596579;
    --cc-muted: #657086;
    --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 {
    position: fixed;
    z-index: 110;
    left: max(24px, env(safe-area-inset-left));
    bottom: max(24px, env(safe-area-inset-bottom));
    display: grid;
    width: min(336px, calc(100vw - 32px));
    max-height: calc(100dvh - 48px);
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 24px;
    overflow: auto;
    border: 1px solid #eeedf3;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 36px rgba(16, 20, 38, .1), 0 2px 8px rgba(16, 20, 38, .03);
    animation: cc-dialog-in .2s ease both;
}

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

.cc-privacy-mark {
    flex: 0 0 auto;
    font-size: 21px;
    line-height: 1;
}

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

.cc-banner h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 18px;
    line-height: 1.35;
}

.cc-banner-copy p {
    margin: 14px 0 0;
    color: var(--cc-copy);
    font-size: 14px;
    line-height: 1.65;
}

.cc-policy-link 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: 10px;
}

.cc-banner-actions .cc-button-settings {
    grid-column: 1 / -1;
    min-height: 30px;
    padding: 4px 10px;
    border-color: transparent;
    background: transparent;
    color: #625b8c;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cc-banner-actions .cc-button-settings:hover {
    background: transparent;
    border-color: transparent;
    color: var(--cc-accent);
}

.cc-root .cc-banner .cc-button {
    font-size: 13px;
}

.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-root .cc-button {
    font-size: 11.5px;
    font-weight: 780;
    line-height: 1.2;
}

.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: #5147e5;
    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: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid #e0e3e9;
    border-radius: 12px;
    background: #f8f9fb;
    color: #505b6d;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.cc-dialog-close:hover {
    background: #eff1f5;
    color: #1f2938;
    transform: rotate(3deg);
}

.cc-dialog-close svg {
    width: 19px;
    height: 19px;
    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: #5147e5;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.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 {
        left: max(16px, env(safe-area-inset-left));
        bottom: max(16px, env(safe-area-inset-bottom));
        max-height: calc(100dvh - 32px);
        padding: 22px;
    }

    .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-dialog-footer {
        grid-template-columns: 1fr;
    }

    .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;
    }
}
