/* Cookie Consent Banner (Horizontal layout) */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: true,
}

.cookie-consent-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-consent-button {
    background-color: #0af;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.cookie-consent-button:hover {
    background-color: rgb(0, 145, 255);
}

.cookie-consent-content a {
    color: #81C784;
    text-decoration: none;
}

/* Title Styling */
.cookie-consent-content h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: white;
}



/* Position the Manage Preferences Banner on the right edge */
/* Updated Layout for the Cookie Preferences Banner */
#cookie-preferences-banner {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    height: 100vh;  /* Full screen height */
    padding: 10px;
    display: flex;
    flex-direction: column;  /* Change to column layout */
    justify-content: flex-start;
    align-items: flex-end;  /* Align content to the left */
    z-index: 1001;
    overflow-y: auto;
}

/* Cookie Preferences Content */
.cookie-preferences-content {
    display: flex;
    flex-direction: column;  /* Stack items vertically */
    justify-content: flex-start;  /* Align items to the top */
    align-items: flex-start;  /* Align the content to the left */
    width: 100%;
    max-width: 300px;  /* Set a maximum width for content */
    padding: 20px;
}

/* Title Styling */
.cookie-preferences-content h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: white;
}


/* Toggle switch style */
.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 50px;
}

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

/* When the checkbox is checked, move the slider */
input:checked + .slider {
    background-color: #0af;
}

input:checked + .slider:before {
    transform: translateX(14px);
}

.cookie-option {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: left;
    flex-direction: column;
}

.cookie-option label {
    font-size: 16px;
    color: #f9f9f9;
    display: block;
    margin-bottom: 10px;
    margin-left: 0px;
}

.cookie-description {
    font-size: 14px;
    color: #ddd;
    margin-top: 5px;
}



/* Close button to hide preferences */
#close-preferences {
    background-color: #ccc;
    color: #333;
}

#close-preferences:hover {
    background-color: #aaa;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    /* Adjust the layout for cookie consent banner */
    .cookie-consent-banner {
        width: 100%;  /* Full width on mobile */
        height: auto;  /* Allow height to adjust based on content */
        position: fixed;
        bottom: 0;
        left: 0;
        padding: 15px; /* Adjust padding for smaller screens */
        display: none;
        flex-direction: column;  /* Stack items vertically */
        justify-content: flex-start;  /* Align items to the top */
        align-items: center;  /* Center the content horizontally */
        overflow-y: auto;
    }

    .cookie-consent-content {
        width: 100%;  /* Make content fill the width */
        margin: 0;
        display: flex;
        flex-direction: column;  /* Stack items vertically */
        justify-content: flex-start;
        align-items: center;  /* Center the content */
    }

    .cookie-consent-button {
        width: 100%;  /* Make buttons fill the width on mobile */
        padding: 10px 20px;
        font-size: 16px;
        margin-top: 10px;
    }

    .cookie-consent-content a {
        font-size: 14px;  /* Adjust link font size */
    }

    /* Cookie Preferences Content for Mobile */
    #cookie-preferences-banner {
        width: 100%;
        height: auto;
        padding: 15px;
    }

    .cookie-preferences-content {
        display: flex;
        flex-direction: column;  /* Stack items vertically */
        justify-content: flex-start;  /* Align items to the top */
        align-items: center;  /* Center content */
    }

    .cookie-preferences-content h2 {
        font-size: 18px;  /* Smaller title for mobile */
    }

    .cookie-option {
        margin-bottom: 15px;
    }

    /* Switch Size for Mobile */
    .switch {
        width: 30px;
        height: 16px;
    }

    .slider:before {
        width: 10px;
        height: 10px;
    }

    /* Adjust the cookie option labels */
    .cookie-option label {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .cookie-description {
        font-size: 12px;
    }
}
