.wc-marketing-quantity-breaks {
    margin: 25px 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    clear: both;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    width: 100%;
    box-sizing: border-box;
}

/* 确保在所有产品类型下都正确显示 */
.single-product .wc-marketing-quantity-breaks,
.woocommerce .wc-marketing-quantity-breaks,
.product .wc-marketing-quantity-breaks {
    display: block;
    visibility: visible;
    opacity: 1;
}

.quantity-breaks-header {
    margin-bottom: 20px;
    text-align: left;
}

.quantity-breaks-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 5px 0;
    letter-spacing: -0.3px;
}

.quantity-breaks-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.quantity-breaks-table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: #fff;
    width: 100%;
    display: block;
    -webkit-overflow-scrolling: touch;
}

.quantity-breaks-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin: 0;
    table-layout: auto;
}

.quantity-breaks-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.quantity-breaks-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    border: none;
}

.quantity-breaks-table th.col-quantity {
    width: 30%;
}

.quantity-breaks-table th.col-price {
    width: 35%;
}

.quantity-breaks-table th.col-savings {
    width: 35%;
}

.quantity-breaks-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.quantity-breaks-table tbody tr:last-child {
    border-bottom: none;
}

.quantity-breaks-table tbody tr:hover {
    background-color: #f8f9ff;
}

.quantity-breaks-table tbody tr.active {
    background-color: #f0f4ff;
    border-left: 4px solid #667eea;
}

.quantity-breaks-table tbody tr.active td {
    font-weight: 600;
}

.quantity-breaks-table td {
    padding: 18px 20px;
    vertical-align: middle;
    border: none;
}

.quantity-cell {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.qty-value {
    display: inline-block;
    padding: 4px 12px;
    background: #f5f5f5;
    border-radius: 6px;
    font-weight: 700;
    color: #333;
}

.quantity-break-row.active .qty-value {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.price-cell {
    padding: 18px 20px;
    white-space: nowrap;
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.discounted-price {
    font-size: 20px;
    font-weight: 700;
    color: #e74c3c;
    line-height: 1.2;
}

.quantity-break-row.active .discounted-price {
    color: #667eea;
    font-size: 22px;
}

.original-price {
    font-size: 15px;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.savings-cell {
    text-align: left;
    white-space: nowrap;
}

.savings-badge {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.25);
}

.savings-amount {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.savings-percentage {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.95;
    letter-spacing: 0.3px;
}

.no-savings {
    color: #ccc;
    font-size: 14px;
}

.quantity-breaks-info {
    margin-top: 20px;
    padding: 0;
}

.current-discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.badge-icon {
    font-size: 20px;
}

.discount-label {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.95;
}

.discount-price {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.discount-savings {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.95;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wc-marketing-quantity-breaks {
        margin: 20px 0;
    }
    
    .quantity-breaks-title {
        font-size: 18px;
    }
    
    .quantity-breaks-subtitle {
        font-size: 13px;
    }
    
    .quantity-breaks-table th,
    .quantity-breaks-table td {
        padding: 14px 15px;
        font-size: 14px;
    }
    
    .quantity-breaks-table th {
        font-size: 12px;
    }
    
    .discounted-price {
        font-size: 18px;
    }
    
    .quantity-break-row.active .discounted-price {
        font-size: 20px;
    }
    
    .savings-badge {
        padding: 6px 12px;
    }
    
    .savings-amount {
        font-size: 14px;
    }
    
    .savings-percentage {
        font-size: 11px;
    }
    
    .current-discount-badge {
        flex-wrap: wrap;
        padding: 10px 15px;
    }
    
    .discount-price {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .quantity-breaks-table-wrapper {
        border-radius: 6px;
    }
    
    .quantity-breaks-table th,
    .quantity-breaks-table td {
        padding: 12px 10px;
    }
    
    .price-wrapper {
        flex-direction: column;
        gap: 4px;
    }
    
    .discounted-price {
        font-size: 16px;
    }
    
    .original-price {
        font-size: 13px;
    }
}
