/* Basic styles for the banner and buttons */
#cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    z-index: 1000;
    font-family: Arial, sans-serif;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#cookie-banner p {
    margin: 0 0 10px;
}

#cookie-toggle {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

#cookie-toggle input {
    display: none;
}

#toggle-slider {
    display: inline-block;
    width: 60px;
    height: 34px;
    background-color: #ccc;
    border-radius: 34px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.4s;
}

#toggle-slider:before {
    content: "";
    position: absolute;
    height: 26px;
    width: 26px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.4s;
    left: 4px;
    bottom: 4px;
}

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

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

#cookie-buttons {
    margin-top: 15px;
}

#cookie-buttons button {
    margin: 5px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    background-color: #4CAF50;
    transition: background-color 0.3s;
}

/* New style for the greyed-out save button */
#cookie-buttons button.saved {
    background-color: grey;
    cursor: not-allowed;
}

@media (max-width: 500px) {
    #cookie-banner {
        padding: 0;
        padding-left: 5%;
        padding-top: 20px;
    }

    #cookie-banner p {
        padding-right: 30px;
    }

    #cookie-toggle {
        padding-right: 5%;
        margin-top: 10px;
    }

    #cookie-buttons {
        padding-right: 5%;
    }

    #cookie-buttons #save-cookies {
        font-size: 1rem;
    }
}