/* General Banner Styling */
.cookie-banner {
    opacity: 0;
    visibility: hidden;

    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 16px;
    text-align: center;
    font-size: 14px;
    z-index: 1000;

    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* Show Banner */
.cookie-banner.show {
    visibility: visible;
    opacity: 1;
}

.cookie-banner a {
    color: #00aaff; /* Brighter blue for better readability */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-buttons {
    margin-top: 10px;
}

.cookie-btn {
    background-color: #f4f4f4;
    color: #333;
    border: none;
    padding: 8px 16px;
    margin: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cookie-btn:hover {
    background-color: #0056b3;
    color: #fff;
}

/* Cookie Settings Modal */
.cookie-modal {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    color: #333;
    padding: 20px;
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1100;
    text-align: left;
    box-sizing: border-box; /* Prevents overflow due to padding */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-modal h3 {
    margin-top: 0;
    font-size: 18px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    color: #0056b3;
}

.cookie-modal p {
    font-size: 14px;
    margin-bottom: 15px;
    color: #555;
}

.cookie-modal label {
    display: grid;
    grid-template-columns: auto 1fr; /* Two columns: checkbox + text */
    vertical-align: middle;
    column-gap: 16px; /* Space between columns */
    margin-left: 0px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.cookie-modal input[type="checkbox"] {
    margin-left: 0px;
    margin-right: 8px;
    cursor: pointer;
    transform: scale(1.2);
}

/* General Styling */
.cookie-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    font-size: 14px;
    color: #333;
}

/* Toggle Switch Container */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

/* Hide the Default Checkbox */
.toggle-switch input {
    visibility: hidden;
}

/* Checked State (ON) */
.toggle-switch input:checked + .slider {
    background-color: #0056b3;
}

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

/* Required (Non-Optional) Toggle Styling */
.toggle-switch.required {
    opacity: 0.8; /* Grayed-out effect */
    pointer-events: none; /* Prevent interaction */
}

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

/* Circular Handle */
.slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch.required .slider {
    background-color: #aaa; /* Gray background */
}

.toggle-switch.required .slider::before {
    background-color: #ddd; /* Lighter gray handle */
}

/* Remove the blue highlight for checked state in required toggle */
.toggle-switch.required input:checked + .slider {
    background-color: #aaa; /* Same neutral gray as default */
}

.cookie-modal .cookie-buttons {
    text-align: center;
    margin-top: 15px;
}

.cookie-modal .cookie-btn {
    margin-top: 0;
}

/* Overlay for Modal Background */
.cookie-overlay {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1099;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show Overlay and Modal */
.cookie-modal.show,
.cookie-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive Modal */
@media (max-width: 576px) {
    .cookie-modal {
        width: 75%;
        padding: 16px;
    }

    .cookie-modal h3 {
        font-size: 16px;
    }
}




