.radio-button{ width: 25px; height: 25px; position: relative; margin: 0 auto; } .radio-button label{ background-color: #fff; height: 100%; border: 2px solid #f0f0f0; border-radius: 50%; box-shadow: inset 1px 2px 7px 2px rgba(0, 0, 0, 0.2); display: block; cursor: pointer; transition: all 0.4s ease; } .radio-button input[type=radio]{ margin: auto; visibility: hidden; position: absolute; left: 0; right: 0; bottom: 0; top: 0; } .radio-button input[type=radio]:checked+label{ background: linear-gradient(90deg, #da4453, #89216b); border-width: 6px; box-shadow: 4px 4px 4px 0px rgba(51, 51, 51, 0.4); } @media only screen and (max-width:767px){ .radio-button{ margin: 0 0 20px; } }