/* Cookie Consent Panel Styles */
.cookie-consent-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.cookie-consent-panel.show {
    transform: translateY(0);
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

.cookie-consent-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.cookie-consent-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.cookie-consent-description a {
    color: #007BFF;
    text-decoration: none;
}

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

/* Cookie Categories */
.cookie-categories {
    display: none;
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-categories.show {
    display: block;
}

.cookie-category {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

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

.cookie-category-checkbox {
    position: relative;
    margin-right: 12px;
    margin-top: 2px;
}

.cookie-category-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

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

.cookie-category-info {
    flex: 1;
}

.cookie-category-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    margin-bottom: 2px;
}

.cookie-category-description {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* Cookie Actions */
.cookie-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-primary {
    background-color: #007BFF;
    color: white;
}

.cookie-btn-primary:hover {
    background-color: #0056b3;
}

.cookie-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.cookie-btn-secondary:hover {
    background-color: #545b62;
}

.cookie-btn-outline {
    background-color: transparent;
    color: #6c757d;
    border: 1px solid #6c757d;
}

.cookie-btn-outline:hover {
    background-color: #f8f9fa;
}

.cookie-btn-settings {
    background-color: transparent;
    color: #007BFF;
    border: 1px solid #007BFF;
}

.cookie-btn-settings:hover {
    background-color: #007BFF;
    color: white;
}

/* Legal Links */
.cookie-legal-links {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.cookie-legal-links a {
    color: #007BFF;
    text-decoration: none;
    margin: 0 5px;
}

.cookie-legal-links a:hover {
    text-decoration: underline;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .cookie-consent-panel {
        max-height: 33vh;
        overflow-y: auto;
    }
    
    .cookie-consent-container {
        padding: 15px;
    }
    
    .cookie-consent-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-consent-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .cookie-consent-description {
        font-size: 13px;
    }
    
    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
    
    .cookie-categories {
        max-height: 150px;
        overflow-y: auto;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-panel {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cookie-consent-panel {
        border-top: 2px solid #000;
    }
    
    .cookie-btn {
        border: 2px solid currentColor;
    }
}