Please remove the previous code and add the below Custom CSS code to Theme Settings > Custom CSS > Global Custom CSS. Change the value as per your requirements to adjust this.
.wd-nav-sticky > li > a .wd-nav-img {
--nav-img-width: 40px;
--nav-img-height: 40px;
right: 10px !important;
position: relative;
}
.wd-nav-sticky > li > a .nav-link-text {
font-size: 20px;
margin-left: 10px !important
}