The banner DOM exposes multiple CSS classes. Most are customizable. .ag-branding and its children (.ag-cookie-mark, .ag-bite, .ag-cr1, .ag-cr2, .ag-cr3) are protected and cannot be styled via custom CSS.
Selector — the CSS class name to use in your rules
Role badge — container, text, interactive, overlay, or branding
DOM path — where it sits in the tree
Default properties — what the template recipe sets (expandable)
Tokens used — which design tokens control defaults for this element
GDPR warnings/errors — if this selector has compliance implications
All classes are scoped inside a Shadow Root. Write selectors as you normally would — no Shadow DOM prefix needed in your custom CSS.
Your custom CSS is injected into all three consent shadow roots: the banner (#ag-consent-banner-host), the floating privacy trigger (#ag-privacy-trigger), and the preferences popup (#ag-privacy-popup-host). Banner selectors simply never match inside the trigger/popup roots and vice versa, so one stylesheet safely styles all three surfaces. The trigger and popup classes are listed in their own section below.
Full-viewport fixed-position backdrop. Hosts the banner inside. Neither shows nor takes clicks while the visitor has folded the banner (it carries .minimized then), or when the owner has switched the backdrop off.
Visual surface of the banner — background, border, shadow, position. Renders template-specific signature decorations via ::before/::after. Carries .minimized while the visitor has folded the banner into a strip (only when visitors may minimize it). aria-modal is false then, and on a banner whose backdrop the owner has switched off.
The floating privacy trigger and its preferences popup render in their own shadow roots (#ag-privacy-trigger and #ag-privacy-popup-host). Since v2026.08.04 your custom CSS reaches both, and the classes below are stable API — safe to target in production stylesheets.
.ag-trigger-btn
interactivecustomizable
DOM path:#ag-privacy-trigger (shadow root) > .ag-trigger-btn
Floating round privacy-trigger button shown after a consent decision. Reopens the preferences popup.
DOM path:#ag-privacy-trigger (shadow root) > .ag-trigger-btn > .ag-mark
KookiOk mark on the privacy button: a cookie on its edge, which opens into the word on hover and keyboard focus. **Protected**: cannot be modified via custom CSS.
Protected: Protected branding: the first cascade layer of the trigger stylesheet locks it, and custom CSS targeting this selector returns HTTP 422. Only a paid plan that removes the KookiOk branding takes it off the button.
DOM path:#ag-privacy-popup-host (shadow root) > .ag-popup
Preferences popup card opened by the privacy trigger. Shows current consent per category, consent date/ID, and Change/Withdraw actions. Its background is laid on an opaque white (light theme) or black (dark theme) base, so the page never shows through.
Decision metadata block: the date of the decision and its consent ID (.ag-popup-id). For the default where no regulation applies only the date ("Allowed by default"): nothing was recorded.
HTML context
<div class="ag-popup-meta"> (when a decision is stored and has a date or a consent ID to show)
Consent ID line of the metadata block; breaks anywhere so the ID fits the popup.
HTML context
<div class="ag-popup-id"> (not for the default where no regulation applies)
Default properties
Property
Value
word-break
break-all
.ag-popup-actions
containercustomizable
DOM path:.ag-popup > .ag-popup-actions
Action row holding the change and withdraw buttons (privacyTriggerChange and privacyTriggerWithdraw; customizeSettingsText and rejectAllText for the default where no regulation applies).
HTML context
<div class="ag-popup-actions">
Default properties
Property
Value
display
flex
gap
8px
margin-top
14px
Warning: Hiding this container hides the withdrawal path — consent withdrawal must remain as easy as giving consent (GDPR Art. 7(3)).
.ag-popup-btn
interactivecustomizable
DOM path:.ag-popup-actions > .ag-popup-btn
Popup action button (privacyTriggerChange / privacyTriggerWithdraw, or customizeSettingsText / rejectAllText for the default where no regulation applies). Shares the banner button tokens.
Powered by Kookiok attribution. **Protected** — cannot be modified via custom CSS.
Protected: Protected attribution: inline !important styles at render time prevent any external CSS override, and custom CSS targeting this selector returns HTTP 422. Only a paid plan that removes the KookiOk branding takes the badge off the banner. The privacy popup ends with the same element.
Protected: Part of the protected branding element.
HTML context
<svg class="ag-cookie-mark">
.ag-bite
brandingprotected
DOM path:.ag-cookie-mark > .ag-bite
Cookie bite shape inside the branding SVG animation. **Protected**.
Protected: Part of the protected branding cookie SVG animation.
HTML context
<path class="ag-bite">
.ag-cr1
brandingprotected
DOM path:.ag-cookie-mark > .ag-cr1
Cookie crumb animation element 1 within branding mark. **Protected**.
Protected: Cookie crumb animation elements within branding mark.
HTML context
<circle class="ag-cr1">
.ag-cr2
brandingprotected
DOM path:.ag-cookie-mark > .ag-cr2
Cookie crumb animation element 2 within branding mark. **Protected**.
Protected: Cookie crumb animation elements within branding mark.
HTML context
<circle class="ag-cr2">
.ag-cr3
brandingprotected
DOM path:.ag-cookie-mark > .ag-cr3
Cookie crumb animation element 3 within branding mark. **Protected**.
Protected: Cookie crumb animation elements within branding mark.
HTML context
<circle class="ag-cr3">
.ag-mark
brandingprotected
DOM path:#ag-privacy-trigger (shadow root) > .ag-trigger-btn > .ag-mark
KookiOk mark on the privacy button: a cookie on its edge, which opens into the word on hover and keyboard focus. **Protected**: cannot be modified via custom CSS.
Protected: Protected branding: the first cascade layer of the trigger stylesheet locks it, and custom CSS targeting this selector returns HTTP 422. Only a paid plan that removes the KookiOk branding takes it off the button.