.user-consent {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 360px;
    max-width: calc(100% - 40px);
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}
.consent-banner-content, .consent-settings-panel {
    padding: 25px;
}
.consent-header, .settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.consent-header h3, .settings-header h3 {
    margin: 0;
    font-size: 1.4em;
    color: #222;
}
.consent-close-button, .settings-close-button {
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}
.consent-close-button:hover, .settings-close-button:hover {
    color: #555;
}
.user-consent p {
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #555;
}
.consent-actions, .settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}
.consent-btn {
    flex-grow: 1;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.consent-accept-all {
    background-color: #007bff;
    color: #fff;
}
.consent-accept-all:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}
.consent-decline-all, .consent-manage-settings, .consent-save-preferences {
    background-color: #e9ecef;
    color: #495057;
}
.consent-decline-all:hover, .consent-manage-settings:hover, .consent-save-preferences:hover {
    background-color: #dae0e5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.consent-policy-link {
    display: block;
    text-align: center;
    font-size: 0.85em;
    color: #007bff;
    text-decoration: none;
    margin-top: 10px;
    transition: color 0.2s ease;
}
.consent-policy-link:hover {
    color: #0056b3;
    text-decoration: underline;
}
.consent-settings-panel {
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}
.cookie-category {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}
.cookie-category:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.category-header label {
    font-weight: 600;
    font-size: 1em;
    color: #333;
}
.category-description {
    font-size: 0.85em;
    color: #6c757d;
    margin-top: 0;
    margin-bottom: 0;
}
/* Toggle Switch CSS */
.switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 25px;
}
.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: 25px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 19px;
    width: 19px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #007bff;
}
input:focus + .slider {
    box-shadow: 0 0 1px #007bff;
}
input:checked + .slider:before {
    transform: translateX(20px);
}
input:disabled + .slider {
    opacity: 0.6;
    cursor: not-allowed;
}
input:disabled:checked + .slider {
    background-color: #6c757d;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .user-consent {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    }
    .consent-banner-content, .consent-settings-panel {
        padding: 20px;
    }
    .consent-header h3, .settings-header h3 {
        font-size: 1.2em;
    }
    .user-consent p {
        font-size: 0.9em;
    }
    .consent-btn {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    .consent-actions {
        flex-direction: column;
    }
}
@media (max-width: 480px) {
    .user-consent {
        border-radius: 0;
    }
    .consent-banner-content, .consent-settings-panel {
        padding: 15px;
    }
    .consent-header h3, .settings-header h3 {
        font-size: 1.1em;
    }
    .user-consent p {
        font-size: 0.85em;
    }
    .consent-btn {
        font-size: 0.85em;
    }
}