.button.button__line-1 { position: relative; .button__text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } .button__bg { height: 54px; margin: auto; } .button__inner { position: absolute; top: 50%; left: 50%; max-width: 190px; width: 100%; height: 54px; transform: translate(-50%, -50%); opacity: 0; z-index: 11; } }