/**
 * Cookie Consent Banner Styles
 * GDPR/CPRA-compliant design
 */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.cookie-banner-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto 0 auto;
    background: white;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    padding: 24px;
}

.cookie-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cookie-banner-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.cookie-banner-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}

.cookie-banner-close:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.cookie-banner-text {
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 20px 0;
    font-size: 14px;
}

.cookie-link {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-link:hover {
    color: #1d4ed8;
}

/* Customize Panel */
.cookie-customize-panel {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.cookie-category {
    background: white;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category-header {
    margin-bottom: 8px;
}

.cookie-category-header label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.cookie-category-header input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #2563eb;
}

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

.cookie-category-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 15px;
    flex: 1;
}

.cookie-badge {
    background: #dbeafe;
    color: #1e40af;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-category-desc {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    padding-left: 32px;
}

/* Actions */
.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-banner-actions.customize-mode {
    justify-content: flex-end;
}

.cookie-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    text-align: center;
}

.cookie-btn-reject {
    background: white;
    color: #4b5563;
    border-color: #d1d5db;
}

.cookie-btn-reject:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.cookie-btn-customize {
    background: white;
    color: #2563eb;
    border-color: #2563eb;
}

.cookie-btn-customize:hover {
    background: #eff6ff;
}

.cookie-btn-accept,
.cookie-btn-save {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.cookie-btn-accept:hover,
.cookie-btn-save:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

/* GPC Notice */
.cookie-gpc-notice {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    padding: 12px;
    border-radius: 6px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        padding: 20px;
        border-radius: 16px 16px 0 0;
    }
    
    .cookie-banner-header h3 {
        font-size: 18px;
    }
    
    .cookie-banner-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-customize-panel {
        max-height: 300px;
    }
}

/* Scrollbar for customize panel */
.cookie-customize-panel::-webkit-scrollbar {
    width: 8px;
}

.cookie-customize-panel::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.cookie-customize-panel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.cookie-customize-panel::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animation for category items */
.cookie-category {
    animation: slideIn 0.3s ease;
}

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