/*
 * Only placement and accessibility rules. Colours, typography, spacing and buttons come from the
 * theme and from the "Cookie banner" pattern (Appearance → Patterns → "Cookie consent").
 */
.matomo-consent {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99999;
    box-sizing: border-box;
    max-height: 60vh;
    overflow-y: auto;
    /* Fallback so the banner never shows the page through it; a background on the pattern's outer group covers it. */
    background: var(--wp--preset--color--base, #ffffff);
    color: var(--wp--preset--color--contrast, #1a1a1a);
    box-shadow: 0 -0.25rem 1rem rgba(0, 0, 0, 0.15);
}
.matomo-consent[hidden],
.matomo-consent [hidden] {
    display: none !important;
}
.matomo-consent :focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}
/* The banner only receives focus programmatically, when the visitor opens the settings. */
.matomo-consent:focus {
    outline: none;
}
.matomo-consent__cookie-list code {
    overflow-wrap: anywhere;
}
/* Low viewport height or strong zoom: show the banner in the page flow instead of covering content. */
@media (max-height: 32em) {
    .matomo-consent {
        position: static;
        max-height: none;
        box-shadow: none;
    }
}
.matomo-consent__visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
