/* CSS Gam Gam Style*/
#cookie-consent-banner {
    display: none; /* Nasconde il banner di default */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 20px;
    font-size: 14px;
    z-index: 99999;
    text-align: center;
    display: fixed;
    flex-direction: column;
    align-items: center;
}

#cookie-consent-banner.hidden {
    display: none !important;
}

 #cookie-consent-banner.visible {
    display: flex;
}

#cookie-preferences-tab {
    position: fixed;
    bottom: 0;
    right: 0;
    background-color: #4CAF50;
    color: white;
    padding: 1px 10px;
    font-size: 10px;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    z-index: 99999;
    width:145px;
}

#cookie-preferences-tab.hidden {
    display: none;
}

#cookie-preferences-tab button {
    background: none;
    border: none;
    color: inherit;
    font-size: inherit;
    cursor: pointer;
}

 #cookie-consent-banner.visible {
    display: flex;
} 

#cookie-consent-banner p {
    margin: 0 0 10px;
}
#cookie-consent-banner p a {
    color: #4CAF50!important;
    text-decoration: underline;
    margin: 0 5px;
}
#cookie-consent-banner a {
    color: #4CAF50;
    text-decoration: underline;
    margin: 0 5px;
}

.toggle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin: 10px 0;
    gap: 15px;
}

.toggle-switch {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: relative;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    cursor: pointer;
    transition: 0.4s;
}

.slider:before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
    bottom: 3px;
    left: 4px;
    transition: 0.4s;
}

.toggle-switch input:checked + .slider {
    background-color: #4CAF50;
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(26px);
}

.buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

button {
    padding: 5px 15px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}

#accept-cookies {
    background-color: #4CAF50;
    color: white;
}
#accept-all-cookies {
    background-color: #21f348;
    color: white;
}
#reject-cookies {
    background-color: #F44336;
    color: white;
}
