I am new to wordpress and I want to apply css on single product page only for changing the location of "Sale" icon. I am trying following code in custom css but its not making any changes.
@media only screen and (max-width: 767px){
.single-product .woocommerce .has-product-nav span.onsale {
top: 7rem !important;
margin-top: 0px;
}
}