.cb-stats-preferences {
    background: #fcf9f5;
    color: #5e3440;
    padding: .65rem 1rem;
    text-align: center;
}

.cb-stats-preferences button {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-size: .875rem;
    min-height: 44px;
    padding: .45rem .65rem;
    text-decoration: underline;
    text-underline-offset: .2em;
}

html.cb-stats-dialog-open {
    overflow: hidden;
}

.cb-stats-consent {
    --cb-consent-ink: #171f37;
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: min(44rem, calc(100% - 2rem));
    max-width: none;
    height: fit-content;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: 1.5rem clamp(1rem, 5vw, 3.125rem) 2rem;
    overflow: auto;
    overscroll-behavior: contain;
    border: 4px double var(--cb-consent-ink);
    border-radius: 5px;
    background: #fff;
    color: var(--cb-consent-ink);
    font: 400 1rem/1.55 Arial, Helvetica, sans-serif;
    color-scheme: light;
}

.cb-stats-consent:not([open]),
.cb-stats-consent [hidden],
.cb-stats-preferences[hidden] {
    display: none !important;
}

.cb-stats-consent::backdrop {
    background: rgb(255 255 255 / 76%);
}

.cb-stats-consent:focus,
.cb-stats-consent-top:focus {
    outline: none;
}

.cb-stats-consent-top {
    display: flex;
    justify-content: flex-end;
}

.cb-stats-consent button {
    box-sizing: border-box;
    min-height: 44px;
    margin: 0;
    padding: .55rem .75rem;
    border: 1px solid transparent;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    letter-spacing: normal;
    line-height: 1.25;
    text-transform: none;
}

.cb-stats-consent .cb-stats-consent-refuse {
    padding-inline: .25rem;
    background: transparent;
    color: #50596b;
    font-size: .8125rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: .15em;
}

.cb-stats-consent-logo {
    display: block;
    width: clamp(10rem, 34vw, 12.5rem);
    max-width: 100%;
    height: auto;
    margin: .65rem auto 1.4rem;
    filter: brightness(0);
}

.cb-stats-consent h2,
.cb-stats-consent h3 {
    margin: 0 0 .7rem;
    color: inherit;
    font: inherit;
    font-weight: 700;
    line-height: 1.3;
}

.cb-stats-consent h2 {
    text-transform: uppercase;
}

.cb-stats-consent p {
    margin: 0 0 .75rem;
    color: inherit;
}

.cb-stats-consent a {
    color: inherit;
    text-decoration: underline;
}

.cb-stats-consent-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    width: min(100%, 25.75rem);
    margin: 1.45rem auto 0;
}

.cb-stats-consent .cb-stats-consent-more {
    border-color: #c2c2c2;
    background: #efefef;
    color: #333;
}

.cb-stats-consent .cb-stats-consent-accept {
    border-color: var(--cb-consent-ink);
    background: var(--cb-consent-ink);
    color: #fff;
}

.cb-stats-consent .cb-stats-consent-more:hover {
    background: #e1e1e1;
}

.cb-stats-consent .cb-stats-consent-accept:hover {
    background: #2a3556;
}

.cb-stats-consent .cb-stats-consent-refuse:hover {
    color: #73283e;
}

.cb-stats-consent :is(button, a):focus-visible,
.cb-stats-preferences button:focus-visible {
    outline: 2px solid #73283e;
    outline-offset: 2px;
}

@media (max-width: 560px) {
    .cb-stats-consent {
        width: calc(100% - 1.5rem);
        max-height: calc(100dvh - 1.5rem);
        padding: .85rem 1rem 1.25rem;
        font-size: .9375rem;
    }

    .cb-stats-consent-logo {
        margin-block: .65rem 1.15rem;
    }

    .cb-stats-consent-actions {
        gap: .5rem;
        margin-top: 1rem;
    }

    .cb-stats-consent-actions button {
        padding-inline: .4rem;
        font-size: .875rem;
    }
}
