/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2C2C2C;
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cookie-content p {
    margin: 0;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.cookie-content a {
    color: #7A8450;
    text-decoration: underline;
}

.cookie-content a:hover {
    color: #8A9460;
}

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

.cookie-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    min-width: 100px;
}

.cookie-btn.accept {
    background-color: #4A5D23;
    color: white;
}

.cookie-btn.accept:hover {
    background-color: #3A4D13;
}

.cookie-btn.reject {
    background-color: transparent;
    color: #E8E8E8;
    border: 1px solid #666;
}

.cookie-btn.reject:hover {
    background-color: #444;
    border-color: #888;
}

.cookie-btn.customize {
    background-color: #7A8450;
    color: white;
}

.cookie-btn.customize:hover {
    background-color: #6A7440;
}

/* Cookie Preferences Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    color: #2C2C2C;
}

.cookie-modal h3 {
    color: #4A5D23;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #E8E8E8;
    border-radius: 4px;
}

.cookie-category h4 {
    color: #4A5D23;
    margin-bottom: 8px;
    font-size: 1rem;
}

.cookie-category p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background-color: #CCC;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cookie-switch.active {
    background-color: #4A5D23;
}

.cookie-switch.disabled {
    background-color: #999;
    cursor: not-allowed;
}

.cookie-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.cookie-switch.active::after {
    transform: translateX(26px);
}

.cookie-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.cookie-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.cookie-modal-btn.save {
    background-color: #4A5D23;
    color: white;
}

.cookie-modal-btn.save:hover {
    background-color: #3A4D13;
}

.cookie-modal-btn.cancel {
    background-color: transparent;
    color: #666;
    border: 1px solid #CCC;
}

.cookie-modal-btn.cancel:hover {
    background-color: #F5F5F5;
}

/* Responsive design for cookie banner */
@media (max-width: 768px) {
    .cookie-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cookie-btn {
        width: 200px;
    }
    
    .cookie-modal-content {
        padding: 20px;
        margin: 10px;
    }
    
    .cookie-modal-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cookie-modal-btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 15px;
    }
}