.privacy-consent-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    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.6);
}
.privacy-consent-content {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    position: relative;
    z-index: 10000;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
    animation: fadeInScale 0.3s ease-out forwards;
}
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.privacy-consent-content h2, .privacy-consent-content h3 {
    color: #333333;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.6em;
    line-height: 1.3;
}
.privacy-consent-content h3 {
    font-size: 1.4em;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.privacy-consent-content p {
    color: #555555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95em;
}
.privacy-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}
.privacy-consent-button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
    flex-grow: 1;
    text-align: center;
}
.privacy-consent-button:hover {
    transform: translateY(-1px);
}
.privacy-consent-button.accept-all-btn {
    background-color: #28a745;
    color: #ffffff;
}
.privacy-consent-button.accept-all-btn:hover {
    background-color: #218838;
}
.privacy-consent-button.reject-all-btn {
    background-color: #dc3545;
    color: #ffffff;
}
.privacy-consent-button.reject-all-btn:hover {
    background-color: #c82333;
}
.privacy-consent-button.settings-btn, .privacy-consent-button.back-btn {
    background-color: #6c757d;
    color: #ffffff;
}
.privacy-consent-button.settings-btn:hover, .privacy-consent-button.back-btn:hover {
    background-color: #5a6268;
}
.privacy-consent-button.save-preferences-btn {
    background-color: #007bff;
    color: #ffffff;
}
.privacy-consent-button.save-preferences-btn:hover {
    background-color: #0056b3;
}
.privacy-consent-settings {
    margin-top: 20px;
}
.privacy-consent-category {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e9ecef;
}
.privacy-consent-category:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.privacy-consent-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.privacy-consent-category-header h4 {
    margin: 0;
    font-size: 1.1em;
    color: #333333;
}
.privacy-consent-toggle-label {
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 500;
}
.privacy-consent-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
}
.privacy-consent-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.privacy-consent-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}
.privacy-consent-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}
input:checked + .privacy-consent-slider {
    background-color: #007bff;
}
input:focus + .privacy-consent-slider {
    box-shadow: 0 0 1px #007bff;
}
input:checked + .privacy-consent-slider:before {
    transform: translateX(20px);
}
.privacy-consent-slider.round {
    border-radius: 28px;
}
.privacy-consent-slider.round:before {
    border-radius: 50%;
}
.privacy-consent-settings-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 30px;
}
.privacy-consent-settings-actions .privacy-consent-button {
    flex-grow: 1;
}
@media (max-width: 768px) {
    .privacy-consent-content {
        max-width: 95%;
        padding: 20px;
    }
    .privacy-consent-content h2 {
        font-size: 1.4em;
    }
    .privacy-consent-content h3 {
        font-size: 1.2em;
    }
    .privacy-consent-content p {
        font-size: 0.9em;
    }
    .privacy-consent-button {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    .privacy-consent-actions, .privacy-consent-settings-actions {
        flex-direction: column;
    }
}
@media (max-width: 480px) {
    .privacy-consent-content {
        border-radius: 8px;
        padding: 15px;
    }
    .privacy-consent-content h2 {
        font-size: 1.3em;
    }
    .privacy-consent-content h3 {
        font-size: 1.1em;
    }
    .privacy-consent-content p {
        font-size: 0.85em;
    }
    .privacy-consent-button {
        font-size: 0.85em;
        padding: 10px;
    }
}