/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2D2D2D;
    color: white;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-top: 3px solid #7A9B7A;
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.cookie-content h3 {
    color: #7A9B7A;
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.cookie-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.9;
}

.cookie-link {
    color: #7A9B7A;
    text-decoration: underline;
}

.cookie-link:hover {
    color: #F4A460;
}

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

.cookie-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn.accept {
    background-color: #7A9B7A;
    color: white;
}

.cookie-btn.accept:hover {
    background-color: #5B7C5B;
}

.cookie-btn.reject {
    background-color: #dc3545;
    color: white;
}

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

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

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

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background-color: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

.cookie-modal-header h3 {
    color: #2D2D2D;
    margin: 0;
    font-size: 1.3rem;
}

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

.cookie-close:hover {
    color: #2D2D2D;
}

.cookie-modal-body {
    padding: 24px;
}

.cookie-category {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #F0F0F0;
}

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

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

.cookie-category h4 {
    color: #2D2D2D;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.cookie-category p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Cookie Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-switch 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: #7A9B7A;
}

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

.cookie-slider.essential {
    background-color: #7A9B7A;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 24px;
    border-top: 1px solid #E5E5E5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-policy-link {
    color: #7A9B7A;
    text-decoration: none;
    font-size: 14px;
}

.cookie-policy-link:hover {
    text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .cookie-content {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: space-between;
    }
    
    .cookie-btn {
        flex: 1;
        font-size: 11px;
        padding: 8px 12px;
    }
    
    .cookie-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 16px;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
        gap: 12px;
    }
}