/* Cookie Banner Styles */
#cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    padding: 20px;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-banner-text {
    flex: 1;
    color: #5a6b5a;
    font-size: 14px;
    line-height: 1.4;
}

.cookie-banner-text a {
    color: #4a7c59;
    text-decoration: none;
    font-weight: 500;
}

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

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

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

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

.cookie-btn-reject {
    background-color: #f5f5f5;
    color: #5a6b5a;
    border: 1px solid #e0e0e0;
}

.cookie-btn-reject:hover {
    background-color: #e8e8e8;
}

.cookie-btn-customize {
    background-color: transparent;
    color: #4a7c59;
    border: 1px solid #4a7c59;
}

.cookie-btn-customize:hover {
    background-color: #4a7c59;
    color: white;
}

/* Cookie Customization Modal */
#cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.cookie-modal-content {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c5530;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #666;
}

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

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

.cookie-category-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c5530;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: #4a7c59;
}

input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

input:disabled + .cookie-slider {
    background-color: #4a7c59;
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-category-description {
    font-size: 14px;
    color: #5a6b5a;
    line-height: 1.4;
    margin: 0;
}

.cookie-modal-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

#save-preferences {
    background-color: #4a7c59;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#save-preferences:hover {
    background-color: #3d6b47;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .cookie-banner-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 80px;
    }
    
    .cookie-modal-content {
        padding: 20px;
        margin: 20px;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    #cookie-banner {
        padding: 15px;
    }
    
    .cookie-banner-text {
        font-size: 13px;
    }
    
    .cookie-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .cookie-modal-content {
        padding: 15px;
        margin: 10px;
    }
}

/* Body padding when banner is visible */
body.cookie-banner-visible {
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    body.cookie-banner-visible {
        padding-bottom: 120px;
    }
}