.flex {
  color: #fff;
  border-radius: 2px;
  font-size: 14px;
  border: none !important;
  visibility: middle;
  text-align: center;
  padding: 0 16px;

  &[disabled],
  &[disabled]:hover,
  &[disabled]:focus,
  &[disabled]:active {
    color: rgba(255, 255, 255, 0.4);
    background: #4b4e5a;
  }
}

.default {
  background-color: #3d404c;
  .flex();

  &:hover {
    background-color: #5a5d69;
    border: 1px solid #5a5d69;
    color: #fff;
  }

  &:focus {
    background-color: #5a5d69;
    border: 1px solid #5a5d69;
    color: #fff;
  }
}

.danger {
  .flex();
  background-color: #eb515a;

  &:hover {
    background-color: #f17178;
    border: 1px solid #f17178;
    color: #fff;
  }

  &:focus {
    background-color: #f17178;
    border: 1px solid #f17178;
    color: #fff;
  }
}

.ghost {
  color: #3a89fe;
  border-radius: 2px;
  font-size: 14px;
  background-color: transparent;
  visibility: middle;
  text-align: center;
  transition: all 0.3s;
  padding: 0 16px;
  border: 1px solid #3a89fe;
  border-radius: 2px;

  &[disabled],
  &[disabled]:hover,
  &[disabled]:focus,
  &[disabled]:active {
    color: rgba(186, 188, 197, 0.5);
    background: rgba(117, 120, 130, 0.12);
    border: 1px solid rgba(117, 120, 130, 0.5);
  }

  &:hover,
  &:focus {
    color: #62a3f8;
    background-color: transparent;
    border-color: #62a3f8;
  }
}

.primary {
  .flex();
  background-color: #3a89fe;

  > i {
    // line-height: 20px;
    // display: inline-block;
  }

  &:hover {
    background-color: #62a3f8;
    border: 1px solid #62a3f8;
    color: #fff;
  }

  &:focus {
    background-color: #62a3f8;
    border: 1px solid #62a3f8;
    color: #fff;
  }
}
