/* Stile base per il dialogo dei cookie */
.dialog {
    background-color: #fff;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    z-index: 9999;
    display: none; /* nascosto di default */
}
.close_pop {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px;
    cursor: pointer;
    font-size: 15px;
    color: black;
    z-index: 9999;
  }
/* Stile per l'header del dialogo */
.dialog-header {
    padding-bottom: 10px;
}

.dialog-header h2, .tabs h2 {
    margin-bottom: 10px;
    color: #3e3cff;
    font-weight: bold;
    font-size: 18px !important;
}

.dialog-header p {
    color: #333;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 300;
    line-height: 19px;
}

/* Stile per il contenuto delle tab */
.tab-content {
    display: none; /* nascosto di default */
}

.tab-content.active {
    display: block;
}

/* Stile per i bottoni */
.dialog-footer {
    text-align: right;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.dialog-footer > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}
.dialog-footer .button  {
    background-color: #3e3cff;
    border: solid 1px #3e3cff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin: 0px;
    font-size: 15px;
    width: -webkit-fill-available;
}

.cookie_consent_bottombanner button {
    background-color: white;
    color: #3e3cff;
    font-size: 12px;
    box-shadow: none !important;
    border-color: rgba(0, 0, 0, 0);
    margin: 0px;
}
.cookie_consent_bottombanner button:hover {
    text-decoration: underline;
    background-color: white;
    color: #3e3cff;
}

.dialog-footer .button-outline {
    background-color: #0b0a50;
    color: white;
    border: solid 1px #3e3cff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin: 0px;
    font-size: 15px;
    width: 100%;
}

/* Stile per le tab */
.tabs {
    list-style-type: none;
    padding: 10px 0px;
    margin: 0;
    display: flex;
    justify-content: center;
}

.tabs li {
    padding: 10px 20px;
    background-color: #f7f7f7;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.tabs li.active,
.tabs li:hover {
    background-color: #ddd;
}

/* Stile per gli accordion */
.cookie_consent-accordion-item {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.cookie_consent-accordion-cont {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie_consent-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: white;
    padding: 0 20px;
    font-size: 14px;
}


.cookie_consent-accordion-cont button{
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    margin: 0px;
    color: black;
    text-transform: capitalize;
    padding: 0;
}

/* Stile per gli switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
    margin:0px;
}

.cookie_switch {
    position: absolute  !important;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
    display: block; /* Imposta lo slider come blocco */
    height: 34px; /* Altezza dello slider */
}

.cookie_switch:before {
    position: absolute !important;
    content: "";
    height: 26px; /* Altezza del cerchio interno */
    width: 26px; /* Larghezza del cerchio interno */
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cookie_switch {
    background-color: #3e3cff;
}
input:checked + .cookie_switch.necessary {
    opacity: 0.5;
}

input:focus + .cookie_switch {
    box-shadow: 0 0 1px #3e3cff;
}

input:checked + .cookie_switch:before {
    transform: translateX(26px);
}



#cookieSettingsButton {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background-color: #3e3cff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    margin: 0px;
}


.cookie_consent_bottombanner_cont {
    background-color: white;
    color: black;
    height: 120px;
    position: fixed;
    bottom: 60px;
    display: none;
    z-index: 99999999;
    max-width: 1200px;
    margin: auto;
    left: 0;
    right: 0;
    border-radius: 10px;
    opacity: 0.93;
}

.cookie_consent_bottombanner {
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    padding: 18px;
    height: 100%;
    width: 100%;
}
.cookie_consent_bottombanner_cont > div > span{
    width: 60%;
    display: block;
    font-size: 13px;
    font-weight: 300;
    line-height: 19px;
}

.cookie_consent_bottombanner_cont > div > div{
    width: 40%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.do_cookie_consent_dialog li[data-target="detailsTab"], .do_cookie_consent_dialog li[data-target="cookieInfoTab"], .do_cookie_consent_dialog #cookieInfoTab, .do_cookie_consent_dialog #nomarketingButton {
    display:none;
}
.do_cookie_consent_dialog #detailsTab {
    display: block;
    border-top: 1px solid #ddd;
}

.cookie_consent_bottombanner a {
    color: #3e3cff !important;
}
.open_cookie_pref {
    font-size: 12px;
    cursor: pointer;
}
.open_cookie_pref:hover {
    color: white;
}
@media only screen and (max-width: 48em) {
    .dialog {
        width: 95%;
        padding: 16px;
        top: calc(50% + 35px);
        z-index: 99999;
    }
    .dialog * {
        font-size: 10px!important;
        line-height: 15px!important;
    }
    .tabs {
        padding: 4px 0px;
    }
    .cookie_consent_bottombanner {
        display:block;
    }
    .cookie_consent_bottombanner_cont > div > span {
        font-size: 10px;
        line-height: 14px;
        width: 100%;
    }
    .cookie_consent_bottombanner button {
        font-size: 10px;
        line-height: 14px;
    }
    .cookie_consent_bottombanner_cont > div > div {
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }
    .cookie_consent_bottombanner_cont {
        opacity: 1;
        bottom: 0;
    }
    .cookie_consent-accordion-item {
        padding: 6px 0;
    }
}
