/* GDPR Cookie Banner Styles */

.gdpr-cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 420px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    animation: slideInUp 0.4s ease-out;
}

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

.gdpr-cookie-content {
    padding: 24px;
}

.gdpr-cookie-header h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.gdpr-cookie-text {
    margin-bottom: 16px;
}

.gdpr-cookie-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #4a4a4a;
}

.gdpr-cookie-categories {
    margin: 16px 0;
    border-top: 1px solid #e5e5e5;
    padding-top: 16px;
}

.gdpr-cookie-category {
    margin-bottom: 12px;
}

.gdpr-cookie-category label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.gdpr-cookie-category input[type="checkbox"] {
    margin: 2px 8px 0 0;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.gdpr-cookie-category input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.category-name {
    flex: 1;
}

.category-description {
    margin: 4px 0 0 26px;
    font-size: 12px;
    color: #6b6b6b;
    line-height: 1.4;
}

.gdpr-cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.gdpr-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.gdpr-btn-accept {
    background: #2563eb;
    color: #ffffff;
}

.gdpr-btn-accept:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.gdpr-btn-selected {
    background: #10b981;
    color: #ffffff;
}

.gdpr-btn-selected:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.gdpr-btn-reject {
    background: #f3f4f6;
    color: #4b5563;
}

.gdpr-btn-reject:hover {
    background: #e5e7eb;
}

.gdpr-cookie-links {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.gdpr-cookie-links a {
    font-size: 12px;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gdpr-cookie-links a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Cookie Settings Trigger Button */
.gdpr-settings-trigger {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    z-index: 999998;
    transition: all 0.2s ease;
}

.gdpr-settings-trigger:hover {
    background: #1d4ed8;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.gdpr-settings-trigger svg {
    width: 20px;
    height: 20px;
}

/* Hide trigger when banner is visible */
.gdpr-cookie-banner:not([style*="display: none"]) ~ .gdpr-settings-trigger {
    display: none;
}

/* Responsive Design */
@media (max-width: 480px) {
    .gdpr-cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
    
    .gdpr-cookie-content {
        padding: 20px;
    }
    
    .gdpr-cookie-header h3 {
        font-size: 16px;
    }
    
    .gdpr-cookie-text p {
        font-size: 13px;
    }
    
    .gdpr-settings-trigger {
        bottom: 10px;
        left: 10px;
        width: 45px;
        height: 45px;
    }
}

/* Divi Theme Compatibility */
.et_pb_section .gdpr-cookie-banner,
.et-db .gdpr-cookie-banner,
.et_builder_inner_content .gdpr-cookie-banner {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Ensure z-index is above Divi elements */
.et_pb_section,
.et-db #et-boc {
    position: relative;
    z-index: auto;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .gdpr-cookie-banner {
        background: #1f2937;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }
    
    .gdpr-cookie-header h3 {
        color: #f9fafb;
    }
    
    .gdpr-cookie-text p {
        color: #d1d5db;
    }
    
    .gdpr-cookie-category label {
        color: #f9fafb;
    }
    
    .category-description {
        color: #9ca3af;
    }
    
    .gdpr-cookie-categories {
        border-color: #374151;
    }
    
    .gdpr-cookie-links {
        border-color: #374151;
    }
    
    .gdpr-btn-reject {
        background: #374151;
        color: #d1d5db;
    }
    
    .gdpr-btn-reject:hover {
        background: #4b5563;
    }
}
