/**
 * WooCommerce Quantity Pricing v2 - Frontend Styles
 */

/* Container */
.wqp-pricing-container {
    margin: 20px 0;
    clear: both;
}

/* Caption */
.wqp-pricing-caption {
    color: #1e73be;
    text-align: center;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.05em;
    font-family: inherit;
}

/* Table */
.wqp-pricing-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    font-size: 0.95em;
    margin-bottom: 1em;
    table-layout: fixed;
}

.wqp-pricing-table th,
.wqp-pricing-table td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: center;
    vertical-align: middle;
    line-height: 1.4;
}

.wqp-pricing-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.wqp-pricing-table td {
    background-color: #fff;
    transition: background-color 0.2s ease;
}

.wqp-pricing-table tr:hover td {
    background-color: #f9f9f9;
}

/* Price styling */
.wqp-pricing-table .woocommerce-Price-amount {
    color: #77a464;
    font-weight: 500;
}

/* Strikethrough prices in cart */
.woocommerce-cart-form del,
.cart-subtotal del,
.order-total del,
.woocommerce-checkout-review-order-table del {
    display: block;
    opacity: 0.6;
    font-size: 0.9em;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.woocommerce-cart-form ins,
.cart-subtotal ins,
.order-total ins,
.woocommerce-checkout-review-order-table ins {
    text-decoration: none;
    display: block;
    font-weight: 600;
}

/* Mini cart */
.widget_shopping_cart del {
    opacity: 0.6;
    font-size: 0.85em;
}

.widget_shopping_cart ins {
    text-decoration: none;
    font-weight: 600;
}

/* Responsive */
@media screen and (max-width: 480px) {
    .wqp-pricing-table th,
    .wqp-pricing-table td {
        padding: 8px 6px;
        font-size: 0.85em;
    }

    .wqp-pricing-caption {
        font-size: 0.95em;
    }
}

/* Print styles */
@media print {
    .wqp-pricing-table {
        border-color: #000;
    }

    .wqp-pricing-table th,
    .wqp-pricing-table td {
        border-color: #000;
    }
}
