Hiding Line Item Text Box Based On Selected Variant

I want to make a textbox hidden when shopify variant is No and show when it is Yes.

below is the dropbox code


        

          
          
          

        

      

below is the textbox code

{%- if product_collections contains 'wedding-bouquets' -%}
  
     
          
             
       
  

{%-endif%-}