/* Banner cookie bereal-beyou.it: integrazioni a cookie-consent.css del CMS (vedi cookie_consent.tpl) */

/* Pannelli non visibili fuori dall'ordine di tabulazione e dall'albero di accessibilita' */
.cookieConsent-dialog:not(.dialog-show),
.cookieConsentCustomize-dialog:not(.dialog-show) {
    visibility: hidden;
}

/* Il banner non deve superare meta' pagina (niente "cookie wall") */
.cookieConsent-dialog {
    max-height: 50vh;
    overflow-y: auto;
}

.bereal-cookie-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 2;
}
.bereal-cookie-close:before,
.bereal-cookie-close:after {
    content: '';
    position: absolute;
    top: 12px;
    left: 21px;
    width: 2px;
    height: 20px;
    background-color: #313131;
}
.bereal-cookie-close:before {
    transform: rotate(45deg);
}
.bereal-cookie-close:after {
    transform: rotate(-45deg);
}

.bereal-cookie-link,
.cookieConsentCustomize-dialog button.to-full-list {
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    color: #313131;
    text-decoration: underline;
    cursor: pointer;
}
.bereal-cookie-link {
    font-size: inherit;
    font-weight: 600;
}

/* "Usa solo i cookie necessari" e "Personalizza" leggibili quanto "Accetta tutti i cookie" */
.cookieConsent-dialog .cookieConsent-action button.cookieConsent-allowAll {
    margin-bottom: 10px !important;
}
.cookieConsent-dialog .cookieConsent-action button.cookieConsent-customize,
.cookieConsentCustomize-dialog .cookieConsent-action button.cookieConsent-allowCustomize {
    color: #313131 !important;
    border-color: #313131 !important;
}

.cookieConsentCustomize-check label {
    align-self: center;
    margin: 0;
    font-weight: 600;
    font-size: 16px;
    color: #313131;
}

.bereal-cookie-policy-title {
    display: block;
    font-weight: 600;
    font-size: 16px;
    color: #313131;
}
.bereal-cookie-policy .cookie-full-list p {
    font-size: 14px !important;
    line-height: 22px !important;
}

.cookieConsent-dialog button:focus-visible,
.cookieConsent-dialog a:focus-visible,
.cookieConsentCustomize-dialog button:focus-visible,
.cookieConsentCustomize-dialog a:focus-visible,
.cookieConsentCustomize-dialog input:focus-visible,
#cookieConsentCustomizeTitle:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

.footer .bereal-cookie-link {
    color: inherit;
    font-weight: inherit;
}
