/* Privacy Preference Center Styles */
.fcp-privacy-center {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.fcp-privacy-center.fcp-visible {
    display: block;
}

.fcp-privacy-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.fcp-privacy-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: white;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fcp-privacy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.fcp-privacy-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.fcp-privacy-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #666;
    transition: all 0.2s ease;
}

.fcp-privacy-close:hover {
    background: #e0e0e0;
    color: #333;
}

.fcp-privacy-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.fcp-privacy-description p {
    margin: 0 0 16px 0;
    color: #666;
    font-size: 13px;
}

.fcp-privacy-description p:last-child {
    margin-bottom: 24px;
}

.fcp-privacy-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fcp-privacy-category {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.fcp-privacy-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.fcp-privacy-category-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.fcp-privacy-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.fcp-privacy-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.fcp-privacy-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.fcp-privacy-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.fcp-privacy-toggle input:checked + .fcp-privacy-toggle-slider {
    background-color: #4caf50;
}

.fcp-privacy-toggle input:checked + .fcp-privacy-toggle-slider:before {
    transform: translateX(24px);
}

.fcp-privacy-toggle input:disabled + .fcp-privacy-toggle-slider {
    background-color: #4caf50;
    cursor: not-allowed;
}

.fcp-privacy-toggle input:disabled + .fcp-privacy-toggle-slider:before {
    transform: translateX(24px);
}

.fcp-privacy-category-content {
    padding: 20px;
}

.fcp-privacy-category-content p {
    margin: 0 0 16px 0;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.fcp-privacy-dependencies {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.fcp-privacy-dependencies h4 {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.fcp-privacy-dependencies ul {
    margin: 0;
    padding: 0 0 0 20px;
    list-style: none;
}

.fcp-privacy-dependencies li {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
    position: relative;
}

.fcp-privacy-dependencies li:before {
    content: "•";
    position: absolute;
    left: -16px;
    color: #4caf50;
}

.fcp-privacy-dependencies strong {
    color: #333;
    font-weight: 600;
}

.fcp-privacy-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px 24px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.fcp-privacy-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 100px;
    text-align: center;
}

.fcp-privacy-btn:focus {
    outline: 2px solid #4caf50;
    outline-offset: 2px;
}

.fcp-privacy-btn-reject {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.fcp-privacy-btn-reject:hover {
    background-color: #e0e0e0;
    color: #333;
}

.fcp-privacy-btn-accept {
    background-color: #4caf50;
    color: white;
}

.fcp-privacy-btn-accept:hover {
    background-color: #45a049;
}

.fcp-privacy-footer {
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    background: #fff;
    text-align: center;
}

.fcp-privacy-btn-confirm {
    background-color: #2196f3;
    color: white;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
}

.fcp-privacy-btn-confirm:hover {
    background-color: #1976d2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fcp-privacy-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .fcp-privacy-header {
        padding: 16px 20px;
    }
    
    .fcp-privacy-header h2 {
        font-size: 18px;
    }
    
    .fcp-privacy-content {
        padding: 20px;
    }
    
    .fcp-privacy-category-header {
        padding: 12px 16px;
    }
    
    .fcp-privacy-category-header h3 {
        font-size: 15px;
    }
    
    .fcp-privacy-category-content {
        padding: 16px;
    }
    
    .fcp-privacy-actions {
        padding: 16px 20px;
        flex-direction: column;
        gap: 8px;
    }
    
    .fcp-privacy-btn {
        width: 100%;
        min-width: auto;
    }
    
    .fcp-privacy-footer {
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .fcp-privacy-container {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .fcp-privacy-header {
        padding: 12px 16px;
    }
    
    .fcp-privacy-header h2 {
        font-size: 16px;
    }
    
    .fcp-privacy-content {
        padding: 16px;
    }
    
    .fcp-privacy-category-header {
        padding: 10px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .fcp-privacy-toggle {
        align-self: flex-end;
    }
    
    .fcp-privacy-category-content {
        padding: 12px;
    }
    
    .fcp-privacy-actions {
        padding: 12px 16px;
    }
    
    .fcp-privacy-footer {
        padding: 10px 16px;
    }
    
    .fcp-privacy-btn-confirm {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Animation for modal appearance */
.fcp-privacy-center {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fcp-privacy-center.fcp-visible {
    opacity: 1;
}

.fcp-privacy-container {
    transform: translate(-50%, -50%) scale(0.9);
    transition: transform 0.3s ease;
}

.fcp-privacy-center.fcp-visible .fcp-privacy-container {
    transform: translate(-50%, -50%) scale(1);
}
