#user-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}
.modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 25px 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    z-index: 100000;
    text-align: left;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.modal-content h2, .modal-content h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.6em;
    font-weight: 600;
}
.modal-content h3 {
    font-size: 1.3em;
    margin-bottom: 20px;
}
.modal-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95em;
}
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-end;
}
.button-group button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.1s ease;
    flex-grow: 1;
    min-width: 120px;
}
.button-group .accept-all-btn, .button-group .save-preferences-btn {
    background-color: #007bff;
    color: #ffffff;
}
.button-group .accept-all-btn:hover, .button-group .save-preferences-btn:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}
.button-group .decline-all-btn, .button-group .manage-btn, .button-group .back-btn {
    background-color: #e9ecef;
    color: #333;
}
.button-group .decline-all-btn:hover, .button-group .manage-btn:hover, .button-group .back-btn:hover {
    background-color: #dae0e5;
    transform: translateY(-1px);
}
.settings-view {
    padding-top: 10px;
}
.cookie-category {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
}
.cookie-category .category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.cookie-category .category-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.1em;
    font-weight: 500;
}
.cookie-category p {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 0;
    line-height: 1.5;
}
.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;
}
.slider:before {
    position: absolute;
    content: "";
    height: 17px;
    width: 17px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}
input:checked + .slider {
    background-color: #007bff;
}
input:focus + .slider {
    box-shadow: 0 0 1px #007bff;
}
input:checked + .slider:before {
    transform: translateX(20px);
}
.slider.round {
    border-radius: 25px;
}
.slider.round:before {
    border-radius: 50%;
}
input:disabled + .slider {
    background-color: #a0a0a0;
    cursor: not-allowed;
}
input:disabled + .slider:before {
    background-color: #e0e0e0;
}
@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        max-width: 95%;
    }
    .modal-content h2 {
        font-size: 1.4em;
    }
    .modal-content h3 {
        font-size: 1.2em;
    }
    .button-group {
        flex-direction: column;
        gap: 8px;
    }
    .button-group button {
        width: 100%;
        min-width: unset;
    }
}
@media (max-width: 480px) {
    .modal-content {
        padding: 15px;
    }
    .modal-content h2 {
        font-size: 1.3em;
    }
    .modal-content h3 {
        font-size: 1.1em;
    }
    .modal-content p {
        font-size: 0.9em;
    }
    .cookie-category .category-header h4 {
        font-size: 1em;
    }
}