#chcc-root[hidden],
.chcc-banner[hidden],
.chcc-message[hidden],
.chcc-video [hidden] {
    display: none !important;
}

#chcc-root:not([hidden]) {
    display: contents;
}

.chcc-banner,
.chcc-dialog,
.chcc-video {
    --chcc-ink: #15324e;
    --chcc-action: #005ea8;
    color: var(--chcc-ink);
    background: #fff;
    text-align: start;
}

#chcc-root .chcc-banner {
    position: fixed;
    z-index: 1080;
    inset-inline: max(1rem, env(safe-area-inset-left), env(safe-area-inset-right));
    inset-block-end: max(1rem, env(safe-area-inset-bottom));
    box-sizing: border-box;
    max-height: 55vh;
    max-height: 55dvh;
    overflow: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem 1rem;
    border: 1px solid #698db2;
    border-inline-start: .22rem solid #79c7ff;
    border-radius: .65rem;
    box-shadow: 0 8px 32px rgb(8 30 55 / 35%);
    padding: .7rem .85rem;
    margin: 0;
    font-size: .875rem;
    line-height: 1.5;
    color: #fff;
    background: #102b48;
}

#chcc-root .chcc-banner :is(h2, p, a, .chcc-link) {
    color: inherit;
}

#chcc-root .chcc-banner .chcc-link {
    background: transparent;
}

#chcc-root .chcc-banner .chcc-choice {
    color: #fff;
    background: #234b71;
}

#chcc-root .chcc-banner [data-chcc-accept] {
    color: #102b48;
    background: #fff;
}

#chcc-root .chcc-banner .chcc-choice:hover {
    color: #102b48;
    background: #d8edff;
}

#chcc-root .chcc-banner :focus-visible {
    outline: 2px solid #9bd6ff;
    outline-offset: 2px;
}

.chcc-copy {
    flex: 1 1 19rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.chcc-banner h2,
.chcc-dialog h2 {
    font-size: 1rem;
    margin: 0 0 .2rem;
}

.chcc-banner p,
.chcc-dialog p {
    margin: 0;
}

.chcc-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
}

.chcc-choice,
.chcc-link {
    box-sizing: border-box;
    min-height: 2.5rem;
    font: inherit;
    line-height: 1.3;
    color: var(--chcc-action, #005ea8);
    background: #fff;
    cursor: pointer;
    padding: .35rem .6rem;
}

.chcc-choice {
    border: 1px solid currentColor;
    border-radius: .35rem;
    font-weight: 600;
}

.chcc-choice:hover {
    background: #eaf4fc;
}

.chcc-link {
    border: 0;
    text-decoration: underline;
}

.chcc-choice:focus-visible,
.chcc-link:focus-visible,
.chcc-banner a:focus-visible,
.chcc-dialog :focus-visible {
    outline: 2px solid #005ea8;
    outline-offset: 2px;
}

.chcc-dialog {
    box-sizing: border-box;
    width: min(34rem, calc(100% - 1.5rem));
    max-height: calc(100% - 1.5rem);
    padding: 1rem;
    border: 1px solid #d3e2ed;
    border-radius: .55rem;
    overflow: auto;
}

.chcc-dialog::backdrop {
    background: rgb(18 40 63 / 52%);
}

.chcc-categories {
    margin: .85rem 0;
}

.chcc-categories dt span {
    font-size: .85em;
    font-weight: normal;
}

.chcc-categories dd {
    margin: 0 0 .65rem;
}

.chcc-message {
    color: #8a2619;
    flex-basis: 100%;
}

.chcc-video {
    border: 1px solid #d3e2ed;
    border-radius: .45rem;
    padding: .8rem;
}

.chcc-video [data-chcc-player]:not([hidden]) {
    margin-block: .7rem 0;
}

.chcc-video iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
}
