/* Cookie Consent Banner Styles */
.cookie-consent-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    animation: fadeIn 0.3s ease-in-out;
}

.cookie-consent-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cookie-consent-modal {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    position: relative;
}

.cookie-consent-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.cookie-consent-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-consent-header h2::before {
    content: "🍪";
    font-size: 24px;
}

.cookie-consent-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.cookie-consent-close:hover {
    background: #f3f4f6;
    color: #1a1a1a;
}

.cookie-consent-body {
    padding: 24px;
}

.cookie-consent-description {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 20px;
}

.cookie-consent-link {
    color: #2563eb;
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-consent-link:hover {
    color: #1d4ed8;
}

.cookie-consent-options {
    margin: 24px 0;
}

.cookie-consent-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.cookie-consent-option:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.cookie-consent-option.active {
    background: #eff6ff;
    border-color: #3b82f6;
}

.cookie-consent-option input[type="checkbox"] {
    margin-top: 2px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.cookie-consent-option input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.cookie-consent-option-content {
    flex: 1;
}

.cookie-consent-option-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-consent-option-required {
    font-size: 11px;
    background: #fee2e2;
    color: #991b1b;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.cookie-consent-option-description {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.cookie-consent-details {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.cookie-consent-option.expanded .cookie-consent-details {
    display: block;
}

.cookie-consent-toggle {
    background: transparent;
    border: none;
    color: #2563eb;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    margin-top: 8px;
    text-decoration: underline;
}

.cookie-consent-toggle:hover {
    color: #1d4ed8;
}

.cookie-consent-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-consent-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    white-space: nowrap;
}

.cookie-consent-btn-primary {
    background: #3b82f6;
    color: white;
}

.cookie-consent-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cookie-consent-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.cookie-consent-btn-secondary:hover {
    background: #e5e7eb;
}

.cookie-consent-btn-settings {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.cookie-consent-btn-settings:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Small Cookie Notification Bar (shown after dismissal) */
.cookie-consent-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    align-items: center;
    gap: 12px;
    z-index: 99998;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
}

.cookie-consent-bar.show {
    display: flex;
}

.cookie-consent-bar-text {
    font-size: 14px;
    color: #4b5563;
    flex: 1;
}

.cookie-consent-bar-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cookie-consent-bar-btn:hover {
    background: #2563eb;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-modal {
        width: 95%;
        max-height: 85vh;
    }
    
    .cookie-consent-header h2 {
        font-size: 18px;
    }
    
    .cookie-consent-body {
        padding: 20px;
    }
    
    .cookie-consent-footer {
        flex-direction: column;
    }
    
    .cookie-consent-btn {
        width: 100%;
    }
    
    .cookie-consent-bar {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Smooth Scrolling */
.cookie-consent-modal {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.cookie-consent-modal::-webkit-scrollbar {
    width: 8px;
}

.cookie-consent-modal::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.cookie-consent-modal::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.cookie-consent-modal::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}