.gcbi-cbc {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--gcbi-colore_background);
    width: 100%;
    height: auto;
    max-height: 500px;
    max-width: 360px;
    padding: var(--gcbi-padding);
    border-radius: var(--gcbi-border_radius);
    overflow: scroll;
    box-shadow: 0 11px 32px 0 rgb(0 0 0 / 10%), 0 5px 12px -8px rgb(0 0 0 / 20%), 0 0 1px 0 rgb(0 0 0 / 20%);
    z-index: 9999;
}

.gcbi-opc {
    cursor: pointer;
}

.gcbi-cbh {
    color: var(--gcbi-colore_testo);
}

.gcbi-img-ck {
    position: absolute;
    top: 0;
    right: 0;
}

.gcbi-cbt {
    font-size: 16px;
    color: var(--gcbi-colore_headline);
    font-weight: 700;
    margin-bottom: 5px;
}

.gcbi-cbd {
    font-size: 14px;
    line-height: 1.4;
}

.gcbi-link {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.gcbi-link a {
    font-size: 14px;
    color: var(--gcbi-colore_testo);
    font-weight: 400;
}

.gcbi-link a.gcbi-crediti {
    width: 100%;
    font-style: italic;
    text-align: center;
    text-decoration: none;
}

.gcbi-close {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 0;
    width: 20px;
    height: 20px;
    background: var(--colore-secondario);
    border-radius: 50%;
    border: 0;
}

.gcbi-close:hover,
.gcbi-close:focus {
    background: var(--colore-secondario);
    outline: none;
}

/* OPZIONI COOKIE */
.gcbi-opct {
    font-family: inherit;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
}

.gcbi-box-check {
    position: relative;
    margin-bottom: 5px;
}

input.gcbi-consents-cookie-category[name="necessari"] {
    border-color: var(--gcbi-colore_bordo_toggle) !important;
    box-shadow: inset 20px 0 0 0 var(--gcbi-colore_bordo_toggle) !important;
    opacity: .6;
    cursor: not-allowed !important;
}

button.gcbi-apri-drop-pref-cookie {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    border: 0;
    font-family: inherit;
    font-size: 14px;
    background: transparent;
    color: var(--gcbi-colore_testo_preferenze_cookie);
    text-align: left;
    padding: 5px 0 10px 20px;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

button.gcbi-apri-drop-pref-cookie:before,
button.gcbi-apri-drop-pref-cookie:after {
    position: absolute;
    content: '';
    display: block;
    width: 10px;
    height: 1px;
    background: var(--gcbi-colore_testo_preferenze_cookie);
    transition: 0.3s ease-in-out;
}

button.gcbi-apri-drop-pref-cookie:before {
    left: 0;
    top: 45%;
    transform: rotate(45deg);
}

button.gcbi-apri-drop-pref-cookie:after {
    left: 7px;
    top: 45%;
    transform: rotate(-45deg);
}

button.gcbi-apri-drop-pref-cookie.aperto:before {
    transform: rotate(-45deg);
}

button.gcbi-apri-drop-pref-cookie.aperto:after {
    transform: rotate(45deg);
}

button.gcbi-apri-drop-pref-cookie:hover,
button.gcbi-apri-drop-pref-cookie:focus {
    opacity: 1.1;
    outline: none;
}

.gcbi-ele-cookie {
    overflow: hidden;
    transition: max-height .5s;
    max-height: 0;
}

span.gcbi-titolo-cat-cookie {
    display: flex;
    align-items: center;
    color: var(--gcbi-colore_testo);
    height: 24px;
    margin-bottom: 10px;
}

.gcbi-titolo-cat-cookie svg {
    margin-right: 5px;
    transition: transform .4s;
}

.aperto span.gcbi-titolo-cat-cookie svg {
    transform: rotate(90deg);
}

.gcbi-con-inf {
    cursor: pointer;
}

.gcbi-options {
    overflow: hidden;
    transition: max-height .5s;
    max-height: 0;
}

.gcbi-box-check label {
    position: absolute;
    left: auto;
    top: 0;
    right: 0;
    bottom: auto;
}

input.gcbi-consents-cookie-category {
    position: relative;
    appearance: none;
    outline: none;
    width: 50px !important;
    min-width: 50px;
    height: 30px;
    background-color: #fff;
    border: 1px solid #D9DADC;
    border-radius: 50px;
    box-shadow: inset -20px 0 0 0 #fff;
    transition-duration: 200ms;
    -webkit-appearance: none !important;
    margin-right: 10px;
    cursor: pointer;
}

input.gcbi-consents-cookie-category:checked {
    border-color: var(--gcbi-colore_toggle_attivo);
    box-shadow: inset 20px 0 0 0 var(--gcbi-colore_toggle_attivo);
}

input.gcbi-consents-cookie-category:after {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    width: 26px;
    height: 26px;
    background-color: transparent;
    border-radius: 50%;
    box-shadow: 2px 4px 6px rgb(0 0 0 / 20%);
}

input.gcbi-consents-cookie-category[name="necessari"]:after {
    left: 20px;
}

input.gcbi-consents-cookie-category:checked:after {
    left: 20px;
    box-shadow: -2px 4px 3px rgb(0 0 0 / 5%);
}

.gcbi-info-tip {
    font-size: 12px;
    color: var(--gcbi-colore_testo);
}

.gcbi-tool {
    background: var(--colore-secondario);
    padding: 5px;
    border-radius: 5px;

    margin-top: 5px;
}

span.gcbi-titolo-cookie {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

a.gcbi-piu-info-for {
    display: block;
    font-size: 12px;
    color: var(--colore-primario);
}

a.gcbi-piu-info-for:hover {
    color: var(--colore-primario);
}

/* PULSANTI PRINCIPALI */
.gcbi-cta {
    display: flex;
    justify-content: center;
    gap: 5px;
}

button.disattivato {
    display: none;
}

.gcbi-cookie-btn-acc {
    display: block;
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    border-radius: 5px;
    background: var(--gcbi-colore_background_accetta_tutti);
    padding: 10px 15px;
    font-family: inherit;
    color: var(--gcbi-colore_testo_accetta_tutti);
    border: 0;
    outline: none;
    cursor: pointer;
}

.gcbi-cookie-btn-acc:hover,
.gcbi-cookie-btn-acc:focus {
    opacity: .9;
}

.gcbi-cookie-btn-rej,
.gcbi-cookie-settings {
    display: block;
    width: 100%;
    padding: 10px 15px;
    font-family: inherit;
    font-size: 16px;
    border-radius: 5px;
    border: 0;
    outline: none;
    cursor: pointer;
}

.gcbi-cookie-btn-rej {
    background: var(--gcbi-colore_background_rifiuta_tutti);
    color: var(--gcbi-colore_testo_rifiuta_tutti);
}

.gcbi-cookie-settings {
    background: var(--gcbi-colore_background_accetta_selezionati);
    color: var(--gcbi-colore_testo_accetta_selezionati);
    margin: 10px 0;
}

.gcbi-cookie-btn-rej:hover,
.gcbi-cookie-btn-rej:focus,
.gcbi-cookie-settings:hover,
.gcbi-cookie-settings:focus {
    opacity: .9;
}

/* OPZIONI COOKIE BOX */
.completato .gcbi-cbc {
    display: none;
}

.gcbi-cb:not(.completato) .gcbi-opc {
    display: none;
}

button.gcbi-opc {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background: #FFF;
    border: 1px solid #0068d9;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 3px;
    padding: 0;
    cursor: pointer;
}

button.gcbi-opc:hover,
button.gcbi-opc:focus {
    background: #FFF;
    outline: none;
}

button.gcbi-opc svg {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
}

@media(max-width:767px) {
    .gcbi-cbc {
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        border-radius: 0 !important;
    }
}