.el-cookies-consent-button {
    --el-cookies-consent-button-list-spacing: var(
        --cookies-consent-button-list-spacing
    );
    --el-cookies-consent-button-list-border-radius: var(
        --cookies-consent-button-list-border-radius
    );
    --el-cookies-consent-button-list-color-text-highlight: var(
        --cookies-consent-button-list-color-text-highlight
    );
    --el-cookies-consent-button-list-color-text-on-background: var(
        --cookies-consent-button-list-color-text-on-background
    );
    --el-cookies-consent-button-list-color-background: var(
        --cookies-consent-button-list-color-background
    );
    --el-cookies-consent-button-list-text-opacity-dimmed: var(
        --cookies-consent-button-list-text-opacity-dimmed
    );
}

/** @see `.bh-cookies-consent-button` styled in `/fileadmin/templates/ext/bh_landingpages/css/design.css` */
:where(body:not(.bhe-state-editing))
    .el-cookies-consent-button
    .bh-cookies-consent-button {
    cursor: pointer;
}

.el-cookies-consent-button .bh-cookies-popup-intro-cookies-list {
    border-radius: var(--el-cookies-consent-button-list-border-radius);
    padding: var(--el-cookies-consent-button-list-spacing);
    background: var(--el-cookies-consent-button-list-color-background);
    box-shadow: var(--el-cookies-consent-button-list-box-shadow);
}

.el-cookies-consent-button:has(.bh-cookies-consent-button)
    .bh-cookies-popup-intro-cookies-list {
    margin-block-end: var(--el-cookies-consent-button-list-spacing);
}

.el-cookies-consent-button
    .bh-cookies-popup-intro-cookies-list
    *:not(.bh-cookies-popup-highlight-color) {
    color: var(--el-cookies-consent-button-list-color-text-on-background);
}

.el-cookies-consent-button .bh-cookies-popup-highlight-color {
    color: var(--el-cookies-consent-button-list-color-text-highlight);
}

.el-cookies-consent-button
    .bh-cookies-popup-intro-cookies-list-cookie-description {
    opacity: var(--el-cookies-consent-button-list-text-opacity-dimmed);
}
