Dynamic, Percentage-Based Tariff Surcharge at Checkout—Any Workarounds?

Actually came up with a solution—though a little hacky. Created 2 extensions:

  1. update cart line items with a custom attribute _hasTariff:'true' based on condition shipping country is US and my other validations
  2. Create a cart transform function to use expand() to bundle a tariff product ($0) with new price of 30% of the qualifying product with _hasTariff attribute