﻿.counter-disable {
  position: absolute;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: white;
  opacity: 0.5;
}
.counter {
  width: 78px;
  height: 30px;
  position: relative;
}
.counter .mid {
  width: 59px;
  height: 28px;
  -webkit-border-radius: 4px 0 0 4px;
  -moz-border-radius: 4px 0 0 4px;
  border-radius: 4px 0 0 4px;
  background-color: #fff;
  -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
  border: solid 1px #d8d8d8;
  background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.05));
  background-image: -moz-linear-gradient(top, rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.05));
  background-image: -o-linear-gradient(top, rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.05));
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.05));
  position: absolute;
  top: 0;
  left: 0;
  -webkit-box-sizing: content-box;
}
.counter input {
  background: none;
  border: none;
  width: 53px;
  font-size: 15px;
  color: #666;
  margin: 3px 0 0 3px;
  text-align: center;
  outline: none;
}
.counter .top-button {
  width: 16px;
  height: 13px;
  -webkit-border-radius: 0 4px 0 NaN 3px 0 0;
  -moz-border-radius: 0 4px 0 NaN 3px 0 0;
  border-radius: 0 4px 0 NaN 3px 0 0;
  background-color: #fff;
  -webkit-box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.23);
  -moz-box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.23);
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.23);
  border: solid 1px #d8d8d8;
  background-image: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0.07));
  background-image: -moz-linear-gradient(bottom, rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0.07));
  background-image: -o-linear-gradient(bottom, rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0.07));
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0.07));
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
  -webkit-box-sizing: content-box;
  border-radius: 0 3px 0 0;
}
.counter .top-button div {
  width: 10px;
  height: 5px;
  background: url('counter_buttons.png') 0px 0px;
  position: absolute;
  left: 3px;
  top: 4px;
}
.counter .bottom-button {
  width: 16px;
  height: 13px;
  -webkit-border-radius: 0 0 4px;
  -moz-border-radius: 0 0 4px;
  border-radius: 0 0 4px;
  background-color: #fff;
  -webkit-box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.23);
  -moz-box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.23);
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.23);
  border: solid 1px #d8d8d8;
  background-image: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0.07));
  background-image: -moz-linear-gradient(bottom, rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0.07));
  background-image: -o-linear-gradient(bottom, rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0.07));
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0.07));
  position: absolute;
  bottom: 0;
  right: 0;
  cursor: pointer;
  -webkit-box-sizing: content-box;
}
.counter .bottom-button div {
  width: 10px;
  height: 5px;
  background: url('counter_buttons.png') 0 -5px;
  position: absolute;
  left: 3px;
  top: 4px;
}