/**
 * Dynamic Rules Public Styles
 */

/* Tiered Pricing Table */
.b2bsk-tiered-pricing-table {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.b2bsk-tiered-pricing-table h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

.b2bsk-tiered-pricing-table .shop_table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.b2bsk-tiered-pricing-table .shop_table th,
.b2bsk-tiered-pricing-table .shop_table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

.b2bsk-tiered-pricing-table .shop_table th {
    background: #f5f5f5;
    font-weight: bold;
    color: #333;
}

.b2bsk-tiered-pricing-table .shop_table tr:nth-child(even) {
    background: #f9f9f9;
}

.b2bsk-tiered-pricing-table .shop_table tr:hover {
    background: #f0f8ff;
}

/* Savings Display */
.b2bsk-savings {
    color: #27ae60;
    font-weight: bold;
    font-size: 0.9em;
}

/* Price Display Modifications */
.b2bsk-original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 5px;
}

.b2bsk-discounted-price {
    color: #e74c3c;
    font-weight: bold;
}

/* Quantity Discounts Info */
.b2bsk-quantity-discount-info {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    font-size: 14px;
}

.b2bsk-quantity-discount-info .discount-title {
    font-weight: bold;
    color: #2e7d32;
    margin-bottom: 5px;
}

/* B2B Pricing Badge */
.b2bsk-b2b-price-badge {
    display: inline-block;
    background: #2196f3;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 5px;
}

/* Information Table */
.b2bsk-information-table {
    margin: 15px 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.b2bsk-information-table h4 {
    margin: 0;
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    color: #333;
    font-size: 16px;
}

.b2bsk-information-table .info-content {
    padding: 15px;
}

.b2bsk-information-table .info-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.b2bsk-information-table .info-row:last-child {
    border-bottom: none;
}

.b2bsk-information-table .info-label {
    font-weight: bold;
    color: #555;
}

.b2bsk-information-table .info-value {
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .b2bsk-tiered-pricing-table .shop_table {
        font-size: 14px;
    }
    
    .b2bsk-tiered-pricing-table .shop_table th,
    .b2bsk-tiered-pricing-table .shop_table td {
        padding: 8px 5px;
    }
    
    .b2bsk-information-table .info-row {
        flex-direction: column;
        gap: 2px;
    }
}

/* Cart Item Pricing */
.woocommerce-cart .cart_item .product-price del {
    color: #999;
    margin-right: 5px;
}

.woocommerce-cart .cart_item .product-price ins {
    text-decoration: none;
    color: #e74c3c;
    font-weight: bold;
}

/* Product Loop Pricing */
.woocommerce ul.products li.product .price del {
    color: #999;
    font-size: 0.9em;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    color: #e74c3c;
}