/* Frontend Styles for BV Display */

/* Simple product BV display without styling */
.product-bv-info-simple {
    margin: 10px 0;
}

/* Cart and Checkout BV Display */
.cart-item-bv {
    font-size: 0.9em !important;
    color: #667eea !important;
    margin-top: 5px !important;
    padding: 5px 10px;
    background: #f0f4ff;
    border-radius: 4px;
    display: inline-block;
}

.cart-item-bv strong {
    color: #667eea;
}

.cart-bv-total td,
.checkout-bv-total td {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%) !important;
    padding: 15px !important;
}

.cart-bv-total th,
.checkout-bv-total th {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%) !important;
    padding: 15px !important;
    font-weight: 600 !important;
    color: #667eea !important;
}

.cart-bv-total,
.checkout-bv-total {
    border-top: 2px solid #667eea !important;
    border-bottom: 2px solid #667eea !important;
}

/* Make BV row stand out */
.woocommerce-cart-form__contents .cart-item-bv,
.woocommerce-checkout-review-order-table .cart-item-bv {
    display: block;
    margin-top: 8px;
}

/* Order BV Display */
.woocommerce-order-bv {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 4px;
}

.woocommerce-order-bv h2 {
    margin-top: 0;
    color: #333;
    font-size: 20px;
}

.woocommerce-order-bv .woocommerce-table {
    margin-top: 15px;
}

.woocommerce-order-bv .woocommerce-table th {
    text-align: left;
    padding: 10px;
    background: #fff;
    font-weight: 600;
    width: 40%;
}

.woocommerce-order-bv .woocommerce-table td {
    padding: 10px;
    background: #fff;
}

/* BV Badge on Product Cards */
.woocommerce ul.products li.product .product-bv-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

/* My Account BV Section */
.woocommerce-account .wc-bv-account-section {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
}

.woocommerce-account .wc-bv-account-section h2 {
    margin-top: 0;
    color: #667eea;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.wc-bv-total-display {
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
    margin: 15px 0;
}

.wc-bv-history-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wc-bv-history-item:last-child {
    border-bottom: none;
}

.wc-bv-history-item .bv-amount.positive {
    color: #28a745;
    font-weight: bold;
}

.wc-bv-history-item .bv-amount.negative {
    color: #dc3545;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .product-bv-info {
        padding: 12px;
    }
    
    .product-bv-info .bv-value {
        font-size: 20px;
    }
    
    .wc-bv-total-display {
        font-size: 24px;
    }
}
