To select language text direction the selector will be [dir=rtl] and followed by class .cw-alert, and to select the div except class .alert-button-container :not pseudoclass can be used as follows. [dir=rtl] .cw-alert>div:not(.alert-button-container){
/* Your code here */
}