/* 
 * Cookie Consent Styles for AutoChina Website
 * Author: AutoChina Team
 * Version: 1.0
 */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 9999;
    display: none;
}

.cookie-banner.active {
    display: block;
    animation: slideUp 0.5s forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.cookie-content h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.cookie-content p {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-settings-panel {
    display: none;
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius-medium);
}

.cookie-settings-panel.active {
    display: block;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cookie-settings-panel h4 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.cookie-option {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-color);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option label {
    display: flex;
    align-items: center;
    font-weight: 600;
    margin-bottom: 5px;
    cursor: pointer;
}

.cookie-option input[type="checkbox"] {
    margin-right: 10px;
}

.cookie-option p {
    margin-left: 25px;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.cookie-settings-buttons {
    margin-top: 20px;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .cookie-content {
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .cookie-option label {
        align-items: flex-start;
    }
    
    .cookie-option input[type="checkbox"] {
        margin-top: 4px;
    }
}
