'How to use input element through the specified class in woocommerce?

I am trying to use the input[type=number] Quantity number through a class in woo-commerce beside the add to cart button but it's not working, I think a simple thing is missing here.

input[type=number].input-text.qty.text {
    padding: 0.4em !important;
    width: 9em !important;
    text-align: center !important;
}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source