/* Enhanced Cookie Banner Styles */

/* Cookie banner visibility control using CSS checkbox hack */
#cookie-toggle {
    display: none;
}

#accept-toggle,
#reject-toggle,
#customize-toggle {
    display: none;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #343A40;
    border-top: 2px solid #2EE6D6;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: block;
}

/* Show banner by default, hide when accepted/rejected */
#accept-toggle:checked ~ .cookie-banner,
#reject-toggle:checked ~ .cookie-banner {
    transform: translateY(100%);
    visibility: hidden;
}

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

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

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h4 {
    color: #2EE6D6;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.cookie-text p {
    color: #E8D9C4;
    margin: 0;
    line-height: 1.5;
    opacity: 0.9;
}

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

.cookie-actions label {
    cursor: pointer;
    margin: 0;
}

.cookie-actions .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    white-space: nowrap;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    border: none;
}

.cookie-actions .btn-primary {
    background: linear-gradient(135deg, #2EE6D6, #FF7A1A);
    color: #0A1224;
    border: 2px solid transparent;
}

.cookie-actions .btn-primary:hover {
    box-shadow: 0 4px 15px rgba(46, 230, 214, 0.3);
    transform: translateY(-1px);
}

.cookie-actions .btn-secondary {
    background-color: transparent;
    color: #2EE6D6;
    border: 2px solid #2EE6D6;
}

.cookie-actions .btn-secondary:hover {
    background-color: #2EE6D6;
    color: #0A1224;
}

.cookie-actions .btn-outline {
    background-color: transparent;
    color: #E8D9C4;
    border: 2px solid #E8D9C4;
}

.cookie-actions .btn-outline:hover {
    background-color: #E8D9C4;
    color: #0A1224;
}

/* Cookie Customization Panel */
.cookie-customization {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(46, 230, 214, 0.2);
}

#customize-toggle:checked ~ .cookie-banner .cookie-customization {
    display: block;
}

.cookie-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.cookie-category {
    background-color: rgba(46, 230, 214, 0.05);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(46, 230, 214, 0.1);
}

.category-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.category-header input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #2EE6D6;
}

.category-header label {
    flex: 1;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-header label strong {
    color: #E8D9C4;
    font-size: 0.95rem;
}

.category-desc {
    color: #E8D9C4;
    opacity: 0.7;
    font-size: 0.85rem;
    line-height: 1.4;
}

.customization-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-policy-link {
    color: #2EE6D6;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 16px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: left;
        gap: 16px;
    }
    
    .cookie-text {
        min-width: auto;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .cookie-categories {
        grid-template-columns: 1fr;
    }
    
    .customization-actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .cookie-text h4 {
        font-size: 1rem;
    }
    
    .cookie-text p {
        font-size: 0.9rem;
    }
}