
/* Cookie Consent Popup Styles */
.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.cookie-consent-overlay.show {
    opacity: 1;
}

.cookie-consent-overlay.hide {
    opacity: 0;
}

.cookie-consent-modal {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-header {
    padding: 24px;
    border-bottom: 1px solid #eee;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.cookie-consent-header i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.cookie-consent-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.cookie-consent-content {
    padding: 24px;
    line-height: 1.6;
}

.cookie-consent-content p {
    margin-bottom: 16px;
    color: #333;
}

.consent-details {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
}

.consent-details h4 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 1.1rem;
}

.consent-details ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.consent-details li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.consent-details li i {
    color: #667eea;
    width: 16px;
}

.consent-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 16px !important;
}

.consent-note a {
    color: #667eea;
    text-decoration: none;
}

.consent-note a:hover {
    text-decoration: underline;
}

.cookie-consent-actions {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-consent-actions button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.btn-consent-accept {
    background: #28a745;
    color: white;
}

.btn-consent-accept:hover {
    background: #218838;
    transform: translateY(-1px);
}

.btn-consent-reject {
    background: #dc3545;
    color: white;
}

.btn-consent-reject:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.btn-consent-manage {
    background: #6c757d;
    color: white;
}

.btn-consent-manage:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-consent-save {
    background: #007bff;
    color: white;
}

.btn-consent-save:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.btn-consent-back {
    background: #6c757d;
    color: white;
}

.btn-consent-back:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.consent-footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    background: #f8f9fa;
    border-radius: 0 0 16px 16px;
}

.consent-footer a {
    color: #667eea;
    text-decoration: none;
}

.consent-footer a:hover {
    text-decoration: underline;
}

.vendor-info {
    font-weight: 600;
    color: #333;
}

/* Manage Options Styles */
.manage-content {
    max-height: 60vh;
    overflow-y: auto;
}

.cookie-categories {
    margin: 20px 0;
}

.cookie-category {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

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

.category-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
}

.category-header h4 i {
    color: #667eea;
}

.category-status {
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.category-status.required {
    background: #e2e3e5;
    color: #495057;
}

.cookie-category p {
    padding: 16px;
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Cookie Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

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

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

.cookie-toggle input:checked + .toggle-slider {
    background-color: #28a745;
}

.cookie-toggle input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Vendor List */
.vendor-list {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
}

.vendor-list h4 {
    margin: 0 0 12px 0;
    color: #333;
}

.vendor-details {
    font-size: 0.9rem;
}

.vendor-item {
    margin-bottom: 8px;
    color: #666;
}

.vendor-item strong {
    color: #333;
}

.vendor-more {
    margin-top: 8px;
    font-style: italic;
    color: #999;
}

/* Settings Button */
.cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.cookie-settings-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.cookie-settings-btn i {
    font-size: 1.2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-modal {
        width: 95%;
        margin: 10px;
    }
    
    .cookie-consent-content {
        padding: 16px;
    }
    
    .cookie-consent-header {
        padding: 16px;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
        padding: 16px;
    }
    
    .cookie-consent-actions button {
        width: 100%;
        justify-content: center;
    }
    
    .category-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .cookie-settings-btn {
        bottom: 10px;
        left: 10px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-modal {
        width: 98%;
        margin: 5px;
        max-height: 95vh;
    }
    
    .consent-details ul {
        padding-left: 0;
    }
    
    .consent-details li {
        font-size: 0.9rem;
    }
}
