#privacy-consent-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: fadeIn 0.3s ease-out;
}
.privacy-consent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}
.privacy-consent-box {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    max-width: 500px;
    width: 90%;
    position: relative;
    z-index: 10001;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}
.privacy-consent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background-color: #f8f8f8;
}
.privacy-consent-header h3 {
    margin: 0;
    font-size: 1.4em;
    color: #333;
}
.privacy-consent-close-btn {
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}
.privacy-consent-close-btn:hover {
    color: #333;
}
.privacy-consent-content {
    padding: 25px;
    font-size: 0.95em;
    line-height: 1.6;
    color: #555;
    flex-grow: 1;
    overflow-y: auto;
}
.privacy-consent-content p {
    margin-bottom: 15px;
}
.privacy-consent-description {
    font-size: 0.85em;
    color: #777;
}
.privacy-consent-policy-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.privacy-consent-policy-link:hover {
    color: #0056b3;
    text-decoration: underline;
}
.privacy-consent-actions {
    display: flex;
    justify-content: space-between;
    padding: 20px 25px;
    border-top: 1px solid #eee;
    gap: 10px;
    flex-wrap: wrap;
}
.privacy-consent-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    flex: 1;
    min-width: 120px;
    white-space: nowrap;
}
.privacy-consent-accept-all {
    background-color: #28a745;
    color: #fff;
}
.privacy-consent-accept-all:hover {
    background-color: #218838;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}
.privacy-consent-reject-all {
    background-color: #dc3545;
    color: #fff;
}
.privacy-consent-reject-all:hover {
    background-color: #c82333;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}
.privacy-consent-settings-btn {
    background-color: #007bff;
    color: #fff;
}
.privacy-consent-settings-btn:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}
.privacy-consent-settings {
    padding: 25px;
    border-top: 1px solid #eee;
    background-color: #fdfdfd;
    flex-grow: 1;
    overflow-y: auto;
}
.privacy-consent-settings-description {
    font-size: 0.85em;
    color: #777;
    margin-bottom: 20px;
}
.privacy-consent-category {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}
.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: #333;
}
.privacy-consent-category p {
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
}
.privacy-consent-status {
    font-size: 0.8em;
    color: #28a745;
    font-weight: 600;
}
.privacy-consent-toggle {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 25px;
}
.privacy-consent-toggle 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: 0.4s;
}
.privacy-consent-slider:before {
    position: absolute;
    content: "";
    height: 17px;
    width: 17px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
}
input:checked + .privacy-consent-slider {
    background-color: #28a745;
}
input:focus + .privacy-consent-slider {
    box-shadow: 0 0 1px #28a745;
}
input:checked + .privacy-consent-slider:before {
    transform: translateX(20px);
}
.privacy-consent-slider.round {
    border-radius: 25px;
}
.privacy-consent-slider.round:before {
    border-radius: 50%;
}
.privacy-consent-settings-footer {
    padding-top: 20px;
    text-align: right;
    border-top: 1px solid #eee;
    margin-top: 20px;
}
.privacy-consent-save-prefs {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
}
.privacy-consent-save-prefs:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
    .privacy-consent-box {
        max-width: 95%;
        margin: 20px;
    }
    .privacy-consent-header {
        padding: 15px 20px;
    }
    .privacy-consent-header h3 {
        font-size: 1.2em;
    }
    .privacy-consent-content {
        padding: 20px;
        font-size: 0.9em;
    }
    .privacy-consent-actions {
        flex-direction: column;
        padding: 15px 20px;
    }
    .privacy-consent-btn {
        width: 100%;
        min-width: unset;
    }
    .privacy-consent-settings {
        padding: 20px;
    }
    .privacy-consent-category h4 {
        font-size: 1em;
    }
    .privacy-consent-category p {
        font-size: 0.75em;
    }
}
@media (max-width: 480px) {
    .privacy-consent-box {
        border-radius: 8px;
    }
    .privacy-consent-header {
        padding: 10px 15px;
    }
    .privacy-consent-header h3 {
        font-size: 1.1em;
    }
    .privacy-consent-close-btn {
        font-size: 1.5em;
    }
    .privacy-consent-content {
        padding: 15px;
        font-size: 0.85em;
    }
    .privacy-consent-actions {
        padding: 10px 15px;
    }
    .privacy-consent-btn {
        padding: 10px 15px;
        font-size: 0.85em;
    }
    .privacy-consent-settings {
        padding: 15px;
    }
    .privacy-consent-settings-footer {
        padding-top: 15px;
        margin-top: 15px;
    }
}