.wrapper { display: flex; justify-content: space-between; align-items: center; border: 1px solid #aaa; border-radius: 4px; overflow: hidden; width: 100%; } .focused { border-color: #66afe9; outline: 0; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6); }