
.hidden { display: none; }
table.form-table th {
    width: 220px;
    vertical-align: top;
}

/* Multistore Discounts Styles */

/* Admin Styles */
.multistore-discount-notice {
    background: #d4edda !important;
    border: 1px solid #c3e6cb !important;
    color: #155724 !important;
    padding: 10px !important;
    margin: 10px 0 !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.multistore-discount-notice strong {
    color: #155724 !important;
    font-weight: 600 !important;
}

/* Single Product Page Discount Notice */
.woocommerce .multistore-discount-notice {
    background: #d4edda !important;
    border: 1px solid #c3e6cb !important;
    color: #155724 !important;
    padding: 15px !important;
    margin: 20px 0 !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.woocommerce .multistore-discount-notice strong {
    color: #155724 !important;
    font-weight: 600 !important;
}

/* Cart Price Display Styles */
.multistore-discount-price {
    color: #c31724 !important;
    font-weight: bold !important;
}

.multistore-discount-price del {
    color: #999 !important;
    font-size: 0.9em !important;
}

.multistore-discount-price ins {
    text-decoration: none !important;
    font-weight: bold !important;
    color: #c31724 !important;
}

/* WooCommerce price overrides */
.woocommerce .multistore-discount-price .woocommerce-Price-amount {
    color: #c31724 !important;
    font-weight: bold !important;
}

.woocommerce .multistore-discount-price del .woocommerce-Price-amount {
    color: #999 !important;
    font-size: 0.9em !important;
}

.woocommerce .multistore-discount-price ins .woocommerce-Price-amount {
    color: #c31724 !important;
    font-weight: bold !important;
}

.multistore-savings {
    color: #666;
    font-size: 12px;
}

.multistore-bogo-info {
    color: #666;
    font-size: 12px;
}

/* Cart Subtotal Styles - Show only final prices in gray */
.multistore-discount-subtotal {
    color: #666 !important;
    font-weight: normal !important;
}

/* WooCommerce subtotal overrides */
.woocommerce .multistore-discount-subtotal .woocommerce-Price-amount {
    color: #666 !important;
    font-weight: normal !important;
}

/* Single Product Page Price Styles */
/* Only apply red color to discounted prices, not all prices */
.woocommerce .multistore-discount-price .woocommerce-Price-amount.amount {
    color: #c31724 !important;
    font-weight: bold !important;
}

.woocommerce .multistore-discount-price del .woocommerce-Price-amount.amount {
    color: #999 !important;
    font-weight: normal !important;
}

.woocommerce .multistore-discount-price ins .woocommerce-Price-amount.amount {
    color: #c31724 !important;
    font-weight: bold !important;
    text-decoration: none !important;
}

/* Ensure variation prices maintain proper styling - more specific selectors */
.woocommerce .woocommerce-variation-price .price del .woocommerce-Price-amount.amount,
.woocommerce .woocommerce-variation-price .price del,
.woocommerce .price del .woocommerce-Price-amount.amount {
    color: #999 !important;
    font-weight: normal !important;
    text-decoration: line-through !important;
}

.woocommerce .woocommerce-variation-price .price ins .woocommerce-Price-amount.amount,
.woocommerce .woocommerce-variation-price .price ins,
.woocommerce .price ins .woocommerce-Price-amount.amount {
    color: #c31724 !important;
    font-weight: bold !important;
    text-decoration: none !important;
}

/* Override any dynamic price updates */
.woocommerce .woocommerce-variation-price .price,
.woocommerce .woocommerce-variation-price .price * {
    transition: none !important;
}

/* Ensure strikethrough stays gray even after dynamic updates */
.woocommerce .woocommerce-variation-price .price del,
.woocommerce .woocommerce-variation-price .price del *,
.woocommerce .price del,
.woocommerce .price del * {
    color: #999 !important;
    font-weight: normal !important;
    text-decoration: line-through !important;
}

/* Cart Page Specific Styles */
.woocommerce-cart .multistore-discount-price {
    color: #c31724 !important;
    font-weight: bold !important;
}

.woocommerce-cart .multistore-discount-price del {
    color: #999 !important;
    font-size: 0.9em !important;
}

.woocommerce-cart .multistore-discount-price ins {
    color: #c31724 !important;
    font-weight: bold !important;
    text-decoration: none !important;
}

.woocommerce-cart .multistore-discount-subtotal {
    color: #666 !important;
    font-weight: normal !important;
}

/* Free Products Section Styles */
.multistore-free-products-section {
    margin: 20px 0;
}

.multistore-free-products-section h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
}

/* Free Product Item Styles */
.free-product-item {
    background: white;
    border-left: 4px solid #28a745;
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.free-product-item .product-image {
    margin-right: 15px;
}

.free-product-item .product-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.free-product-item .product-details {
    flex: 1;
}

.free-product-item .product-details h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.free-product-item .product-details .product-meta {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.free-product-item .product-quantity {
    margin: 0 15px;
    text-align: center;
}

.free-product-item .product-quantity .quantity-display {
    background: #e9ecef;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: bold;
    color: #28a745;
}

.free-product-item .product-quantity .quantity-label {
    color: #6c757d;
    font-size: 12px;
}

.free-product-item .product-price {
    text-align: right;
}

.free-product-item .product-price .price-amount {
    font-size: 18px;
    font-weight: bold;
    color: #28a745;
}

.free-product-item .product-price .price-value {
    color: #6c757d;
    font-size: 12px;
    margin-top: 2px;
}

/* Free Product Name Styles */
.multistore-free-product-name {
    color: #28a745 !important;
}

/* Free Product Price Styles */
.multistore-free-product-price {
    color: #28a745 !important;
    font-weight: bold !important;
}

.multistore-free-product-subtotal {
    color: #28a745 !important;
    font-weight: bold !important;
}

/* Free Product Quantity Styles */
.multistore-free-quantity {
    background: #e9ecef !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    color: #28a745 !important;
}

/* WooCommerce free product overrides */
.woocommerce .multistore-free-product-price .woocommerce-Price-amount {
    color: #28a745 !important;
    font-weight: bold !important;
}

.woocommerce .multistore-free-product-subtotal .woocommerce-Price-amount {
    color: #28a745 !important;
    font-weight: bold !important;
}

/* WooCommerce Cart Table Styles for Free Products */
.multistore-free-products-section .shop_table {
    margin-bottom: 0 !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 4px !important;
}

.multistore-free-products-section .shop_table th {
    background: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
    padding: 12px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

.multistore-free-products-section .shop_table td {
    padding: 12px !important;
    border-bottom: 1px solid #dee2e6 !important;
    vertical-align: middle !important;
}

.multistore-free-products-section .shop_table .product-thumbnail img {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
}

.multistore-free-products-section .shop_table .product-name a:hover {
    text-decoration: underline !important;
}

.multistore-free-products-section .shop_table .product-name .product-meta {
    color: #666 !important;
    font-size: 12px !important;
    margin-top: 5px !important;
}

.multistore-free-products-section .shop_table .product-quantity {
    text-align: center !important;
}

.multistore-free-products-section .shop_table .product-quantity .quantity-display {
    font-weight: bold !important;
    color: #28a745 !important;
    background: #e9ecef !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    display: inline-block !important;
}

.multistore-free-products-section .shop_table .product-quantity .quantity-label {
    color: #666 !important;
    font-size: 12px !important;
    margin-top: 5px !important;
}

.multistore-free-products-section .shop_table .product-subtotal .woocommerce-Price-amount {
    color: #28a745 !important;
    font-weight: bold !important;
    font-size: 16px !important;
}

.multistore-free-products-section .shop_table .product-subtotal .price-value {
    color: #666 !important;
    font-size: 12px !important;
    margin-top: 2px !important;
}

/* Admin Form Styles */
#variations-row {
    display: none;
}

#variations-row .select2-container {
    width: 100% !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .multistore-free-products-section .shop_table {
        font-size: 14px;
    }
    
    .multistore-free-products-section .shop_table th,
    .multistore-free-products-section .shop_table td {
        padding: 8px;
    }
    
    .multistore-free-products-section .shop_table .product-thumbnail img {
        width: 40px;
        height: 40px;
    }
}

