/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(45, 80, 22, 0.98);
    backdrop-filter: blur(15px);
    color: #F5F1E8;
    padding: 25px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid #E55B3C;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

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

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

.cookie-banner-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
}

.cookie-banner-text h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #F5F1E8;
}

.cookie-banner-text p {
    margin: 0 0 10px 0;
    opacity: 0.95;
}

.cookie-banner-text a {
    color: #E55B3C;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-banner-text a:hover {
    color: #F5F1E8;
    text-decoration: none;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
}

.cookie-btn-accept {
    background: #E55B3C;
    color: white;
    box-shadow: 0 4px 15px rgba(229, 91, 60, 0.3);
}

.cookie-btn-accept:hover {
    background: #d14a2f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 91, 60, 0.4);
}

.cookie-btn-reject {
    background: transparent;
    color: #F5F1E8;
    border: 2px solid #F5F1E8;
}

.cookie-btn-reject:hover {
    background: #F5F1E8;
    color: #2D5016;
    transform: translateY(-1px);
}

.cookie-btn-customize {
    background: rgba(245, 241, 232, 0.1);
    color: #F5F1E8;
    border: 1px solid rgba(245, 241, 232, 0.3);
    font-size: 13px;
    padding: 10px 20px;
}

.cookie-btn-customize:hover {
    background: rgba(245, 241, 232, 0.2);
    border-color: rgba(245, 241, 232, 0.5);
    transform: translateY(-1px);
}

/* Cookie Preferences Modal */
.cookie-preferences-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.cookie-preferences-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-preferences-modal.show .cookie-preferences-content {
    transform: scale(1);
}

.cookie-preferences-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.cookie-preferences-header h2 {
    color: #2D5016;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.cookie-preferences-header p {
    color: #666;
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fafafa;
}

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

.cookie-category h3 {
    color: #2D5016;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

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

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

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

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #E55B3C;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #2D5016;
    cursor: not-allowed;
}

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

.cookie-preferences-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.cookie-preferences-actions .cookie-btn {
    min-width: 120px;
}

.cookie-btn-close {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.cookie-btn-close:hover {
    background: #e0e0e0;
    color: #333;
}

.cookie-btn-save {
    background: #2D5016;
    color: white;
}

.cookie-btn-save:hover {
    background: #1a3a0a;
    transform: translateY(-1px);
}

/* Responsive design for cookie banner */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 20px;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: auto;
        font-size: 13px;
        padding: 10px 16px;
    }
    
    .cookie-preferences-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .cookie-preferences-actions {
        flex-direction: column;
    }
    
    .cookie-preferences-actions .cookie-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 16px;
    }
    
    .cookie-banner-text {
        font-size: 14px;
    }
    
    .cookie-banner-text h3 {
        font-size: 16px;
    }
    
    .cookie-btn {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .cookie-banner-actions {
        flex-direction: column;
        gap: 8px;
    }
}