Hello,
Add this to the desktop:
body .product-label.attribute-label:not(.label-with-img) {
background-color: rgba(255, 255, 255, 1);
color: #000000;
width: 100px;
font-size: 12px;
}
Add this to Mobile:
body .product-label.attribute-label:not(.label-with-img) {
background-color: rgba(255, 255, 255, 1);
color: #000000;
width: 50px;
font-size: 10px;
}
Change these values as per your needs:
width: 50px;
font-size: 10px;
For example width for desktop – 100 and for mobile 50
Best Regards