#privacy-consent-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.privacy-consent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}
.privacy-consent-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10002;
    max-width: 90%;
    width: 500px;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}
.consent-main-panel, .consent-settings-panel {
    width: 100%;
    transition: opacity 0.3s ease-in-out;
}
.consent-title {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}
.consent-description {
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
}
.consent-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}
.consent-actions button, .settings-save {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
    flex-grow: 1;
    max-width: 200px;
}
.consent-actions button:hover, .settings-save:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}
.consent-actions .consent-manage-settings {
    background-color: #6c757d;
}
.consent-actions .consent-manage-settings:hover {
    background-color: #5a6268;
}
.consent-settings-panel {
    padding-top: 10px;
}
.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.settings-title {
    font-size: 1.5em;
    color: #333;
    margin: 0;
}
.settings-close {
    background: none;
    border: none;
    font-size: 1.8em;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}
.settings-close:hover {
    color: #333;
}
.category-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.category-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    position: relative;
}
.category-name {
    font-weight: 600;
    color: #333;
    font-size: 1.05em;
    flex-grow: 1;
    cursor: pointer;
    padding-right: 60px;
}
.category-description {
    font-size: 0.85em;
    color: #666;
    line-height: 1.5;
    margin-top: 5px;
}
.category-header input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 45px;
    height: 24px;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    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(21px);
}
input:disabled + .slider {
    opacity: 0.6;
    cursor: not-allowed;
}
.settings-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    gap: 15px;
    flex-wrap: wrap;
}
.settings-footer .settings-save {
    margin-bottom: 0;
    flex-grow: 1;
    max-width: 200px;
}
.privacy-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s ease;
    flex-grow: 1;
    text-align: center;
}
.privacy-link:hover {
    color: #0056b3;
    text-decoration: underline;
}
@media (max-width: 600px) {
    .privacy-consent-content {
        width: 95%;
        padding: 20px;
    }
    .consent-title {
        font-size: 1.5em;
    }
    .consent-description {
        font-size: 0.9em;
    }
    .consent-actions {
        flex-direction: column;
        gap: 10px;
    }
    .consent-actions button, .settings-save {
        max-width: 100%;
        padding: 10px 15px;
    }
    .settings-title {
        font-size: 1.3em;
    }
    .settings-close {
        font-size: 1.5em;
    }
    .category-name {
        font-size: 1em;
    }
    .category-description {
        font-size: 0.8em;
    }
    .settings-footer {
        flex-direction: column;
        gap: 10px;
    }
    .privacy-link {
        font-size: 0.85em;
    }
}