/* Thành Phát EV v0.0.67 — simplify WooCommerce product purchase controls.
 * Quantity remains a WooCommerce input (default 1), visually hidden on product
 * detail pages; shoppers adjust the amount in the WooCommerce cart.
 * No checkout or add-to-cart interception: existing stock/variation checks remain. */

/* Leave the input in the form for WooCommerce, but remove it from visual layout. */
body.single-product.woocommerce div.product.product-type-simple form.cart .quantity,
body.single-product.woocommerce div.product.product-type-variable form.cart .woocommerce-variation-add-to-cart .quantity,
body.single-product.woocommerce div.product.product-type-simple form.cart .quantity.tpa-ev-v066-quantity {
  display:none!important;
}

/* Two true native actions, same row and equal widths on mobile and desktop. */
body.single-product.woocommerce div.product.product-type-simple form.cart {
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  align-items:stretch!important;
}
body.single-product.woocommerce div.product.product-type-simple form.cart > .single_add_to_cart_button,
body.single-product.woocommerce div.product.product-type-simple form.cart > .tpa-ev-buy-now {
  grid-column:auto!important;
  grid-row:auto!important;
  min-width:0!important;
  width:100%!important;
  margin:0!important;
}

/* Variations keep the attribute selection UI above the pair of purchase buttons. */
body.single-product.woocommerce div.product.product-type-variable form.cart .woocommerce-variation-add-to-cart {
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:stretch!important;
  gap:10px!important;
}
body.single-product.woocommerce div.product.product-type-variable form.cart .woocommerce-variation-add-to-cart > .single_add_to_cart_button,
body.single-product.woocommerce div.product.product-type-variable form.cart .woocommerce-variation-add-to-cart > .tpa-ev-buy-now {
  flex:none!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
}

@media(max-width:767px){
  body.single-product.woocommerce div.product.product-type-simple form.cart,
  body.single-product.woocommerce div.product.product-type-variable form.cart .woocommerce-variation-add-to-cart {
    gap:9px!important;
  }
  body.single-product.woocommerce div.product.product-type-simple form.cart > .single_add_to_cart_button,
  body.single-product.woocommerce div.product.product-type-simple form.cart > .tpa-ev-buy-now,
  body.single-product.woocommerce div.product.product-type-variable form.cart .woocommerce-variation-add-to-cart > .single_add_to_cart_button,
  body.single-product.woocommerce div.product.product-type-variable form.cart .woocommerce-variation-add-to-cart > .tpa-ev-buy-now {
    min-height:48px!important;
    padding:8px 7px!important;
    font-size:12.5px!important;
    line-height:1.25!important;
    white-space:normal!important;
    border-radius:11px!important;
  }
}
@media(max-width:359px){
  body.single-product.woocommerce div.product.product-type-simple form.cart > .single_add_to_cart_button,
  body.single-product.woocommerce div.product.product-type-simple form.cart > .tpa-ev-buy-now,
  body.single-product.woocommerce div.product.product-type-variable form.cart .woocommerce-variation-add-to-cart > .single_add_to_cart_button,
  body.single-product.woocommerce div.product.product-type-variable form.cart .woocommerce-variation-add-to-cart > .tpa-ev-buy-now {
    font-size:11.5px!important;
    padding:8px 5px!important;
  }
}
