:root {
    --ccb-consent-ink: #0b153f;
    --ccb-consent-muted: #5d6685;
    --ccb-consent-border: #dfe3f2;
    --ccb-consent-surface: #ffffff;
    --ccb-consent-soft: #f5f3ff;
    --ccb-consent-purple: #6842f5;
    --ccb-consent-purple-dark: #5432db;
    --ccb-consent-green: #18a873;
}

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

.ccb-consent[hidden] {
    display: none !important;
}

.ccb-consent {
    position: fixed;
    z-index: 2147483000;
    right: 20px;
    bottom: 20px;
    left: 20px;
    max-width: 1240px;
    margin: 0 auto;
    color: var(--ccb-consent-ink);
    font-family: inherit;
}

.ccb-consent__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(210px, auto);
    gap: 18px;
    align-items: center;
    padding: 20px;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% -50%, rgba(104, 66, 245, 0.17), transparent 48%),
        var(--ccb-consent-surface);
    border: 1px solid rgba(104, 66, 245, 0.2);
    border-radius: 22px;
    box-shadow: 0 24px 75px rgba(11, 21, 63, 0.2), 0 6px 20px rgba(11, 21, 63, 0.08);
}

.ccb-consent__mark {
    display: grid;
    width: 48px;
    height: 48px;
    color: var(--ccb-consent-purple);
    background: var(--ccb-consent-soft);
    border: 1px solid rgba(104, 66, 245, 0.12);
    border-radius: 15px;
    place-items: center;
}

.ccb-consent__mark svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.ccb-consent__mark circle {
    fill: currentColor;
    stroke: none;
}

.ccb-consent__copy h2,
.ccb-dialog h2,
.ccb-preference h3 {
    margin: 0;
    color: var(--ccb-consent-ink);
    font-family: inherit;
}

.ccb-consent__copy h2 {
    margin-bottom: 6px;
    font-size: clamp(1.08rem, 2vw, 1.3rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.ccb-consent__copy p,
.ccb-dialog__intro,
.ccb-preference p {
    margin: 0;
    color: var(--ccb-consent-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.ccb-consent a,
.ccb-dialog a,
.ccb-noscript a {
    color: var(--ccb-consent-purple-dark);
    font-weight: 700;
    text-underline-offset: 3px;
}

.ccb-consent__eyebrow {
    margin: 0 0 4px !important;
    color: var(--ccb-consent-purple) !important;
    font-size: 0.69rem !important;
    font-weight: 800;
    line-height: 1.2 !important;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.ccb-consent__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 8px;
}

.ccb-consent__actions .ccb-button--customise {
    grid-column: 1 / -1;
}

.ccb-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

.ccb-button:focus-visible,
.ccb-dialog__close:focus-visible,
.ccb-switch input:focus-visible + .ccb-switch__track {
    outline: 3px solid rgba(104, 66, 245, 0.28);
    outline-offset: 3px;
}

.ccb-button--accept {
    color: #ffffff;
    background: linear-gradient(135deg, #7650ff, var(--ccb-consent-purple));
    box-shadow: 0 8px 18px rgba(104, 66, 245, 0.22);
}

.ccb-button--accept:hover {
    background: linear-gradient(135deg, var(--ccb-consent-purple), var(--ccb-consent-purple-dark));
    box-shadow: 0 10px 23px rgba(104, 66, 245, 0.28);
}

.ccb-button--reject {
    color: #ffffff;
    background: var(--ccb-consent-ink);
    box-shadow: 0 8px 18px rgba(11, 21, 63, 0.14);
}

.ccb-button--reject:hover {
    background: #152252;
    box-shadow: 0 10px 22px rgba(11, 21, 63, 0.2);
}

.ccb-button--customise {
    color: var(--ccb-consent-ink);
    background: #ffffff;
    border-color: var(--ccb-consent-border);
}

.ccb-button--customise:hover {
    background: var(--ccb-consent-soft);
    border-color: rgba(104, 66, 245, 0.34);
}

.ccb-dialog {
    position: fixed;
    z-index: 2147483001;
    inset: 0;
    width: min(680px, calc(100% - 32px));
    max-height: min(820px, calc(100vh - 32px));
    padding: 0;
    margin: auto;
    overflow: hidden;
    color: var(--ccb-consent-ink);
    background: transparent;
    border: 0;
    border-radius: 24px;
    font-family: inherit;
    box-shadow: 0 30px 90px rgba(8, 15, 48, 0.28);
}

.ccb-dialog::backdrop {
    background: rgba(7, 13, 42, 0.62);
    backdrop-filter: blur(5px);
}

.ccb-dialog:not([open]) {
    display: none;
}

.ccb-dialog__panel {
    max-height: min(820px, calc(100vh - 32px));
    padding: 26px;
    overflow-y: auto;
    background:
        radial-gradient(circle at 100% 0%, rgba(104, 66, 245, 0.12), transparent 34%),
        var(--ccb-consent-surface);
}

.ccb-dialog__header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
}

.ccb-dialog h2 {
    font-size: clamp(1.55rem, 4vw, 2rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.ccb-dialog__close {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--ccb-consent-ink);
    background: #ffffff;
    border: 1px solid var(--ccb-consent-border);
    border-radius: 12px;
    cursor: pointer;
    place-items: center;
}

.ccb-dialog__close:hover {
    background: var(--ccb-consent-soft);
}

.ccb-dialog__close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.ccb-dialog__intro {
    margin-top: 14px;
}

.ccb-preference-list {
    display: grid;
    gap: 10px;
    margin: 22px 0;
}

.ccb-preference {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 17px;
    background: #fbfbfe;
    border: 1px solid var(--ccb-consent-border);
    border-radius: 16px;
}

.ccb-preference__heading {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 5px;
}

.ccb-preference h3 {
    font-size: 0.98rem;
    line-height: 1.25;
}

.ccb-preference__status {
    padding: 4px 8px;
    color: #087a52;
    background: #e8f9f2;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.ccb-switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    cursor: pointer;
}

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

.ccb-switch__track {
    position: relative;
    display: block;
    width: 48px;
    height: 28px;
    background: #c9cedd;
    border-radius: 999px;
    transition: background-color 170ms ease;
}

.ccb-switch__thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(11, 21, 63, 0.22);
    transition: transform 170ms ease;
}

.ccb-switch input:checked + .ccb-switch__track {
    background: var(--ccb-consent-purple);
}

.ccb-switch input:checked + .ccb-switch__track .ccb-switch__thumb {
    transform: translateX(20px);
}

.ccb-switch--locked {
    cursor: not-allowed;
    opacity: 0.76;
}

.ccb-switch--locked input:checked + .ccb-switch__track {
    background: var(--ccb-consent-green);
}

.ccb-dialog__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ccb-dialog__actions .ccb-button {
    min-height: 48px;
}

.ccb-noscript {
    position: fixed;
    z-index: 2147483000;
    right: 18px;
    bottom: 18px;
    left: 18px;
    max-width: 760px;
    padding: 16px 18px;
    margin: 0 auto;
    color: var(--ccb-consent-ink);
    background: #ffffff;
    border: 1px solid var(--ccb-consent-border);
    border-radius: 14px;
    box-shadow: 0 15px 45px rgba(11, 21, 63, 0.18);
    font: 600 0.88rem/1.5 inherit;
}

.ccb-dialog-open {
    overflow: hidden;
}

.ccb-dialog-open body::before {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    background: rgba(7, 13, 42, 0.62);
    content: "";
}

@media (max-width: 900px) {
    .ccb-consent__inner {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .ccb-consent__actions {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, 1fr);
    }

    .ccb-consent__actions .ccb-button--customise {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .ccb-consent {
        right: 10px;
        bottom: 10px;
        left: 10px;
    }

    .ccb-consent__inner {
        display: block;
        max-height: calc(100vh - 20px);
        padding: 18px;
        overflow-y: auto;
        border-radius: 18px;
    }

    .ccb-consent__mark {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
        border-radius: 12px;
    }

    .ccb-consent__actions {
        grid-template-columns: 1fr;
        margin-top: 16px;
    }

    .ccb-consent__actions .ccb-button--customise {
        grid-column: auto;
    }

    .ccb-dialog {
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        border-radius: 19px;
    }

    .ccb-dialog__panel {
        max-height: calc(100vh - 20px);
        padding: 20px 17px;
    }

    .ccb-preference {
        gap: 12px;
        padding: 15px;
    }

    .ccb-dialog__actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ccb-button,
    .ccb-switch__track,
    .ccb-switch__thumb {
        transition: none;
    }
}

@media (forced-colors: active) {
    .ccb-button,
    .ccb-dialog__close,
    .ccb-preference,
    .ccb-switch__track {
        border: 1px solid CanvasText;
    }
}
