/* Cookie Banner Styles */

cookie-banner {
    --__font-family: var(--cookie-banner-font-family, inherit);
    --__color-background: var(--cookie-banner-color-background, #f7f7f7);
    --__color-text: var(--cookie-banner-color-text, #000000);
    --__color-border: var(--cookie-banner-color-border, rgba(0,0,0,.1));
    display: contents;
    font-family: var(--__font-family);
}

cookie-banner[aria-hidden] {
    display: none;
}

cookie-banner section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--__color-background);
    color: var(--__color-text);
    border-top: 1px solid var(--__color-border);
    padding: clamp(20px, 2vw, 32px);
    display: grid;
    column-gap: 16px;
    row-gap: 16px;
    grid-template-columns: 1fr auto;
    z-index: 2147483647;
}

cookie-banner h2 {
    font-family: var(--__font-family);
    font-size: 18px;
    font-weight: 600;
    margin: 0 !important;
    line-height: 1.5 !important;
}

cookie-banner p {
    font-size: 14px;
    max-width: 90ch;
    margin: 0 !important;
    padding: 0 !important;
    grid-column: 1/2;
}

cookie-banner:not(:has(h2)) p {
    grid-row: span 2;
    align-self: center;
}

cookie-banner button {
    align-self: end;
    grid-row: 1 / 3;
    grid-column: 2 / 3;
    background: initial;
}

cookie-banner button:hover {
    background: initial;
}

cookie-banner a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media screen and (max-width: 549px) {
    cookie-banner section {
        display: block;
    }
    
    cookie-banner h2 {
        margin-bottom: 10px !important;
    }
    
    cookie-banner p {
        font-size: 12px;
    }
    
    cookie-banner button {
        margin-top: 24px !important;
        width: 100% !important;
    }
}