/* WooCommerce Combo Upsells Frontend Styles */

.wc-combo-upsells-suggestions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.combo-upsells-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.combo-upsell-suggestion {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.combo-upsell-suggestion:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.combo-upsell-image {
    flex-shrink: 0;
    margin-right: 12px;
}

.combo-upsell-image img {
    border-radius: 4px;
    max-width: 60px;
    height: auto;
}

.combo-upsell-details {
    flex-grow: 1;
    margin-right: 12px;
}

.combo-upsell-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
}

.combo-upsell-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.combo-upsell-price .product-price {
    font-weight: 600;
    color: #2c5aa0;
    font-size: 14px;
    margin-right: 8px;
}

.combo-upsell-price .discount-badge {
    background-color: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.combo-upsell-action {
    flex-shrink: 0;
}

.combo-upsell-action .wc-combo-add-to-cart {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.combo-upsell-action .wc-combo-add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .combo-upsell-suggestion {
        flex-direction: column;
        text-align: center;
    }
    
    .combo-upsell-image,
    .combo-upsell-details,
    .combo-upsell-action {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .combo-upsell-action {
        margin-bottom: 0;
    }
    
    .combo-upsell-price {
        justify-content: center;
    }
}

/* Integration with popular themes */
.widget_shopping_cart .wc-combo-upsells-suggestions,
.woocommerce-mini-cart__wrapper .wc-combo-upsells-suggestions {
    margin-top: 15px;
}

/* Breakdance specific styling */
.breakdance .wc-combo-upsells-suggestions {
    font-family: inherit;
}

.breakdance .combo-upsells-title {
    color: inherit;
}

.breakdance .combo-upsell-suggestion {
    background-color: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.1);
}

.breakdance .combo-upsell-suggestion:hover {
    background-color: rgba(0,0,0,0.05);
}

/* Animation for adding/removing suggestions */
.combo-upsell-suggestion {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}