@import 'variables';
@import 'functions';

// VARIABLES
$btnTextColor: #fff;
$disabledBgColor: #e2e2eb;
$bgExternal: #fff;

.twofas-btn {
  -moz-appearance: none;
  -webkit-appearance: none;
  align-items: center;
  background-color: $tf-theme-color;
  border: 0;
  border-radius: 20px;
  color: $btnTextColor;
  cursor: pointer;
  display: inline-flex;
  font-size: px-to-rem(11);
  font-weight: 800;
  min-height: 40px;
  letter-spacing: .646px;
  line-height: 1.3;
  outline: none !important;
  padding: 0 24px;
  text-align: center;
  text-transform: uppercase;
  transition: background-color .2s ease-in-out, color .2s ease-in-out;

  &:hover {
    background-color: darken($tf-theme-color, 5%);
    color: $btnTextColor;
  }

  &:focus,
  &:active {
    background-color: $tf-theme-color;
    color: $btnTextColor;
  }

  &[disabled] {
    cursor: not-allowed;
    background-color: $disabledBgColor;
  }

  &.twofas-btn-external {
    background-color: $bgExternal;
    border: 2px solid $tf-theme-color;
    color: $tf-theme-color;

    &:hover {
      color: darken($tf-theme-color, 5%);
    }
  }
}

.twofas-btn-empty {
  -moz-appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border: 0;
  color: $tf-theme-color;
  cursor: pointer;
  display: inline-block;
  font-size: px-to-rem(11);
  font-weight: 700;
  height: 40px;
  letter-spacing: .646px;
  line-height: 40px;
  outline: none !important;
  padding: 0 24px;
  text-align: center;
  text-transform: uppercase;
  transition: color .2s ease-in-out;

  &:hover {
    color: darken($tf-theme-color, 5%);
  }

  &:focus,
  &:active {
    color: $tf-theme-color;
  }

  &[disabled] {
    cursor: not-allowed;
    color: $disabledBgColor;
  }

  &.twofas-qr-refresh-btn {
    height: 14px;
    line-height: 14px;
    padding: 0;

    img {
      display: inline-block;
      height: 14px;
      margin-right: 6px;
      vertical-align: middle;
    }
  }
}

.twofas-btn-close {
  border: 0;
  box-shadow: none;
  cursor: pointer;
  margin: 0;
  outline: none !important;
  padding: 0;

  img {
    display: block;
  }
}

.twofas-btn,
.twofas-btn-empty,
.twofas-btn-close {
  &:hover,
  &:focus,
  &:active {
    box-shadow: none;
  }
}
