.selector
{
  /* the common selector */
}

.wrapper
{
  display: inline-block;
}

.baseline
{
  display: inline-block;
  overflow: visible;

  width: 100%;

  vertical-align: top;

  font: inherit;
}

.shape
{
  position: relative;

  display: block;
  overflow: hidden;

  width: 100%;

  border-radius: 3px;

  font: inherit;
}

.control
{
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  transition: margin .1s ease-out;
  white-space: nowrap;

  font: inherit;

  -webkit-tap-highlight-color: transparent;
}

.label
{
  display: inline-block;

  box-sizing: border-box;

  cursor: pointer;
  text-align: center;

  border-radius: 3px;
  background: #f2f2f2;
  box-shadow: inset 0 0 0 1px #c2c2c2;

  font: inherit;
}

.label:first-child
{
  background: #ffeba0;
  box-shadow: inset 0 0 0 1px #ccbd80;
}

.delimiter
{
  display: inline-block;

  cursor: pointer;
  transition: box-shadow .1s ease-out;

  border-radius: 3px;
  background: white;
  box-shadow: inset 0 0 0 1px #ccc;

  font: inherit;
}

.native
{
  position: absolute;

  opacity: 0;
}

.native:checked + .control
{
  margin-left: 0;
}

.native:focus + .control .delimiter
{
  box-shadow: inset 0 0 0 2px #fc0;
}

.native:disabled + .control .label
{
  cursor: default;

  color: rgba(0,0,0,.5);
  background: #ebebeb;
  box-shadow: inset 0 0 0 1px #ebebeb;
}

.native:disabled + .control .label:first-child
{
  background: #d9d9d9;
  box-shadow: inset 0 0 0 1px #d9d9d9;
}

.native:disabled + .control .delimiter
{
  cursor: default;

  background: #d8d8d8;
  box-shadow: none;
}

.native:disabled:checked + .control .delimiter
{
  background: #c8c8c8;
}
