.sbx-custom {
  display: inline-block;
  position: relative;
  width: 375px;
  height: 28px;
  white-space: nowrap;
  box-sizing: border-box;
  font-size: 12px;
}

.sbx-custom__wrapper {
  width: 100%;
  height: 100%;
}

.sbx-custom__input {
  display: inline-block;
  -webkit-transition: box-shadow .4s ease, background .4s ease;
  transition: box-shadow .4s ease, background .4s ease;
  border: 0;
  border-radius: 1px;
  box-shadow: inset 0 0 0 1px #D0D0D0;
  background: #FFFFFF;
  padding: 0;
  padding-right: 65px;
  padding-left: 8px;
  width: 100%;
  height: 100%;
  vertical-align: middle;
  white-space: normal;
  font-size: inherit;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.sbx-custom__input::-webkit-search-decoration, .sbx-custom__input::-webkit-search-cancel-button, .sbx-custom__input::-webkit-search-results-button, .sbx-custom__input::-webkit-search-results-decoration {
  display: none;
}

.sbx-custom__input:hover {
  box-shadow: inset 0 0 0 1px #909090;
}

.sbx-custom__input:focus, .sbx-custom__input:active {
  outline: 0;
  box-shadow: inset 0 0 0 1px #A0A0A0;
  background: #FFFFFF;
}

.sbx-custom__input::-webkit-input-placeholder {
  color: #fff;
}

.sbx-custom__input::-moz-placeholder {
  color: #fff;
}

.sbx-custom__input:-ms-input-placeholder {
  color: #fff;
}

.sbx-custom__input::placeholder {
  color: #fff;
}

.sbx-custom__submit {
  position: absolute;
  top: 0;
  right: 0;
  left: inherit;
  margin: 0;
  border: 0;
  border-radius: 0 0px 0px 0;
  background-color: #fff;
  padding: 0;
  width: 60px;
  height: 100%;
  vertical-align: middle;
  text-align: center;
  font-size: inherit;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.sbx-custom__submit::before {
  display: inline-block;
  margin-right: -4px;
  height: 100%;
  vertical-align: middle;
  content: '';
}

.sbx-custom__submit:hover, .sbx-custom__submit:active {
  cursor: pointer;
  background-color: #fff;
}

.sbx-custom__submit:focus {
  outline: 0;
}

.sbx-custom__submit svg {
  width: 15px;
  height: 15px;
  vertical-align: middle;
  fill: #FFFFFF;
}

.sbx-custom__reset {
  display: inline-block;
  position: absolute;
  top: 0px;
  right: -32px;
  margin: 0px;
  border: 0;
  background-color: #fff;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 100%;
  vertical-align: middle;
  font-size: inherit;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  fill: rgba(0, 0, 0, 0.5);
}

.sbx-custom__reset:hover, .sbx-custom__reset:active {
  cursor: pointer;
  background-color: #0E0E0E;
}

.sbx-custom__reset:focus {
  outline: 0;
}

.sbx-custom__reset svg {
  display: block;
  margin: 4px;
  width: 15px;
  height: 15px;
  vertical-align: middle;
  fill: #FFFFFF;
}

.sbx-custom__input:valid ~ .sbx-custom__reset {
  display: block;
  -webkit-animation-name: sbx-reset-in;
          animation-name: sbx-reset-in;
  -webkit-animation-duration: .15s;
          animation-duration: .15s;
}

@-webkit-keyframes sbx-reset-in {
  0% {
    -webkit-transform: translate3d(-20%, 0, 0);
            transform: translate3d(-20%, 0, 0);
    opacity: 0;
  }
  100% {
    -webkit-transform: none;
            transform: none;
    opacity: 1;
  }
}

@keyframes sbx-reset-in {
  0% {
    -webkit-transform: translate3d(-20%, 0, 0);
            transform: translate3d(-20%, 0, 0);
    opacity: 0;
  }
  100% {
    -webkit-transform: none;
            transform: none;
    opacity: 1;
  }
}
