#cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    z-index: 1000;
    font-family: Arial, sans-serif;
    font-size: 14px;
    padding: 20px;
    box-sizing: border-box;
}

#cookie-banner h2 {
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

#cookie-banner p {
    font-size: 12px;
    color: #555;
    line-height: 1.4;
    margin-bottom: 20px;
}

#cookie-banner .buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

#cookie-banner button {
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    padding: 8px 15px;
}

#cookie-banner button.accept {
    background: #007bff;
    color: #fff;
}

#cookie-banner button.accept:hover {
    background: #0056b3;
}

#cookie-banner button.deny {
    background: #ddd;
    color: #333;
}

#cookie-banner button.deny:hover {
    background: #bbb;
}

#cookie-banner button.view-preferences,
#cookie-banner button.save-preferences {
    background: #eee;
    color: #333;
}

#cookie-banner button.view-preferences:hover,
#cookie-banner button.save-preferences:hover {
    background: #ccc;
}

#cookie-banner .preferences-panel {
    margin-bottom: 15px;
}

.preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.preference-item:last-child {
    border-bottom: none;
}

.preference-title {
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

.preference-subtitle {
    font-size: 12px;
    color: #888;
    margin-top: 3px;
    display: inline-block;
    margin-left: 10px;
}

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    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: .4s; 
    border-radius: 20px;
}
.slider:before {
    content: "";
    position: absolute;
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: .4s;
}
input:checked + .slider {
    background-color: #007bff;
}
input:checked + .slider:before {
    transform: translateX(20px);
}

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

.policy-links {
    display: flex;
    gap: 15px;
    font-size: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.policy-links a {
    color: #007bff;
    text-decoration: underline;
}

.policy-links a:hover {
    color: #0056b3;
}

.close-button-cm {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    font-size: 1rem;
    color: #333; 
    cursor: pointer; 
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    #cookie-banner {
        width: 95%;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
    }
}

