/*just for demo...*/
*, *:before, *:after {
  box-sizing: border-box;
}

body {
  font-family: BlinkMacSystemFont, futura, 'Roboto', sans-serif;
}

.number-picker {
  display: inline-block;
  position: relative;
  font-size: 0;
  overflow: hidden;
  border-radius: 3px;
  width: 37px;
  height: 132px;
}
.number-picker button {
  display: block;
  width: 37px;
  height: 37px;
  position: absolute;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  font-family: bonds, sans-serif;
  cursor: pointer;
  -moz-transition: color 200ms;
  -o-transition: color 200ms;
  -webkit-transition: color 200ms;
  transition: color 200ms;
}
.number-picker button:focus {
  outline: none;
  color: #ffffff;
}
.number-picker button.disabled,
.number-picker button:disabled {
  background: #999;
  color: #ccc;
  cursor: default;
}
.number-picker button:first-child {
  bottom: 0;
}
.number-picker button:first-child:before {
  content: "-";
}
.number-picker button:last-child {
  top: 0;
}
.number-picker button:last-child:before {
  content: "+";
}
.number-picker button:last-child:focus {
  color: #ffffff;
}
.number-picker input[type="number"] {
  position: absolute;
  width: 37px;
  height: 100%;
  top: 37px;
  margin: 0;
  border: 0;
  font-size: 17.6px;
  font-weight: bold;
  text-align: center;
  -moz-appearance: textfield;
}
.number-picker input[type="number"]::-webkit-outer-spin-button, .number-picker input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.number-picker:after {
  display: none;
  content: "";
  position: absolute;
  font-size: 9.68px;
  left: 0;
  right: 0;
  line-height: 1;
  padding: 3.52px 0 3.52px 0;
  width: 37px;
  margin: 0 auto;
  border-top: 1px solid #ccc;
  color: #888;
  text-align: center;
  bottom: 34%;
}
.number-picker.horiz {
  width: 111px;
  height: 37px;
}
.number-picker.horiz button:first-child {
  left: 0;
}
.number-picker.horiz button:last-child {
  right: 0;
}
.number-picker.horiz:after {
  bottom: 0;
}
.number-picker.horiz input[type="number"] {
  position: absolute;
  top: 0;
  left: 37px;
}
.number-picker.stacked {
  width: 88px;
  height: 88px;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}
.number-picker.stacked:after {
  width: 100%;
  bottom: 50%;
}
.number-picker.stacked button {
  float: none;
  top: auto;
  bottom: 0;
}
.number-picker.stacked button:first-child {
  left: 0;
}
.number-picker.stacked button:last-child {
  right: 0;
}
.number-picker.stacked input[type="number"] {
  top: 0;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  border: 1px solid #eee;
  width: 100%;
}
.number-picker.stacked input[type="number"]:after {
  width: 100%;
}
