.fm-button {
  display: block;
  outline: 0 none;
  cursor: pointer;
  -webkit-appearance: none;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  padding: 0;
  text-align: center;
  font-size: 18px;
  height: 47px;
  line-height: 47px;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  white-space: nowrap;
  color: #000;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  html:not([data-scale]) .fm-button {
    position: relative;
    border: none;
  }
  html:not([data-scale]) .fm-button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 200%;
    height: 200%;
    border: 1px solid #ddd;
    border-radius: 10px;
    -webkit-transform-origin: 0 0;
        -ms-transform-origin: 0 0;
            transform-origin: 0 0;
    -webkit-transform: scale(0.5);
        -ms-transform: scale(0.5);
            transform: scale(0.5);
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    pointer-events: none;
  }
}
.fm-button.fm-button-active {
  background-color: #ddd;
}
.fm-button.fm-button-disabled {
  color: rgba(0, 0, 0, 0.3);
  opacity: 0.6;
  pointer-events: none;
}
.fm-button-primary {
  color: #fff;
  background-color: #108ee9;
  border: 1px solid #108ee9;
  border-radius: 5px;
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  html:not([data-scale]) .fm-button-primary {
    position: relative;
    border: none;
  }
  html:not([data-scale]) .fm-button-primary::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 200%;
    height: 200%;
    border: 1px solid #108ee9;
    border-radius: 10px;
    -webkit-transform-origin: 0 0;
        -ms-transform-origin: 0 0;
            transform-origin: 0 0;
    -webkit-transform: scale(0.5);
        -ms-transform: scale(0.5);
            transform: scale(0.5);
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    pointer-events: none;
  }
}
.fm-button-primary.fm-button-active {
  color: rgba(255, 255, 255, 0.3);
  background-color: #0e80d2;
}
.fm-button-primary.fm-button-disabled {
  color: rgba(255, 255, 255, 0.6);
  opacity: 0.4;
}
.fm-button-danger {
  color: #fff;
  background-color: #e94f4f;
}
.fm-button-danger.fm-button-active {
  color: rgba(255, 255, 255, 0.3);
  background-color: #d24747;
}
.fm-button-danger.fm-button-disabled {
  color: rgba(255, 255, 255, 0.6);
  opacity: 0.4;
}
.fm-button.fm-button-loading {
  position: relative;
  pointer-events: none;
}
.fm-button.fm-button-loading:before {
  background: #fff;
  opacity: 0.35;
}
.fm-button-font {
  width: auto;
  height: auto;
  padding: 0;
  background: transparent;
  border: none;
  -webkit-box-shadow: none;
          box-shadow: none;
}
.fm-button-font:hover,
.fm-button-font:focus,
.fm-button-font:active,
.fm-button-font.active {
  background: transparent;
}
.fm-button-font:before {
  border: none !important;
}
.fm-button-inline {
  display: inline-block;
  padding: 0 15px;
}
.fm-button-inline.fm-button-icon {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
}
.fm-button-small {
  font-size: 13px;
  height: 30px;
  line-height: 30px;
  padding: 0 15px;
}
.fm-button-round {
  opacity: 1;
  height: 47px;
  padding: 0 23.5px;
  font-size: 16px;
  border-radius: 47px;
  border: 0;
}
.fm-button-round.fm-button-small {
  height: 30px;
  padding: 0 15px;
  font-size: 14px;
  border-radius: 30px;
}
.fm-button-round:before {
  display: none !important;
}
.fm-button-circle {
  width: 47px;
  height: 47px;
  padding: 0;
  font-size: 16px;
  border-radius: 50%;
  border: 0;
}
.fm-button-circle.fm-button-small {
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 14px;
  border-radius: 50%;
}
.fm-button-circle:before {
  display: none !important;
}
.fm-button-full {
  display: block;
  width: 100%;
  border-radius: 0;
  border: 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}
.fm-button-full:before {
  display: none !important;
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  html:not([data-scale]) .fm-button-full {
    border-top: none;
  }
  html:not([data-scale]) .fm-button-full::before {
    content: '';
    position: absolute;
    background-color: #ddd;
    display: block;
    z-index: 1;
    top: 0;
    right: auto;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 1px;
    -webkit-transform-origin: 50% 50%;
        -ms-transform-origin: 50% 50%;
            transform-origin: 50% 50%;
    -webkit-transform: scaleY(0.5);
        -ms-transform: scaleY(0.5);
            transform: scaleY(0.5);
  }
}
@media (-webkit-min-device-pixel-ratio: 2) and (-webkit-min-device-pixel-ratio: 3), (min-resolution: 2dppx) and (min-resolution: 3dppx) {
  html:not([data-scale]) .fm-button-full::before {
    -webkit-transform: scaleY(0.33);
        -ms-transform: scaleY(0.33);
            transform: scaleY(0.33);
  }
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  html:not([data-scale]) .fm-button-full {
    border-bottom: none;
  }
  html:not([data-scale]) .fm-button-full::after {
    content: '';
    position: absolute;
    background-color: #ddd;
    display: block;
    z-index: 1;
    top: auto;
    right: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    -webkit-transform-origin: 50% 100%;
        -ms-transform-origin: 50% 100%;
            transform-origin: 50% 100%;
    -webkit-transform: scaleY(0.5);
        -ms-transform: scaleY(0.5);
            transform: scaleY(0.5);
  }
}
@media (-webkit-min-device-pixel-ratio: 2) and (-webkit-min-device-pixel-ratio: 3), (min-resolution: 2dppx) and (min-resolution: 3dppx) {
  html:not([data-scale]) .fm-button-full::after {
    -webkit-transform: scaleY(0.33);
        -ms-transform: scaleY(0.33);
            transform: scaleY(0.33);
  }
}
.fm-button-icon {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.fm-button-background-ghost {
  background: transparent!important;
  color: #fff;
  border-color: #fff;
}
.fm-button-background-ghost.fm-button-active {
  color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}
.fm-button-background-ghost.fm-button-disabled {
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.6);
}
.fm-button-primary.fm-button-background-ghost {
  color: #108ee9;
  border-color: #108ee9;
}
.fm-button-primary.fm-button-background-ghost.fm-button-active {
  color: rgba(16, 142, 233, 0.3);
  border-color: rgba(16, 142, 233, 0.3);
}
.fm-button-primary.fm-button-background-ghost.fm-button-disabled {
  color: rgba(16, 142, 233, 0.6);
  border-color: rgba(16, 142, 233, 0.6);
}
.fm-button-background-ghost.fm-button-danger {
  color: #e94f4f;
  border-color: #e94f4f;
}
.fm-button-background-ghost.fm-button-danger.fm-button-active {
  color: rgba(233, 79, 79, 0.3);
  border-color: rgba(233, 79, 79, 0.3);
}
.fm-button-background-ghost.fm-button-danger.fm-button-disabled {
  color: rgba(233, 79, 79, 0.6);
  border-color: rgba(233, 79, 79, 0.6);
}
.fm-button > .fm-button-icon {
  margin-left: 0.5em;
  margin-right: 0.5em;
}
