.bp-btn {
  align-items: center;
  justify-content: center;
  display: flex;
  transition: 0.2s;
  border: none;
  cursor: pointer;
  text-align: center;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  padding: 7px 15px;
  vertical-align: middle;
  background-color: transparent;
  outline: none;

  &::before {
    content: "";
    display: none;
    //display: inline-block;
    min-height: inherit;
    height: 100%;
    vertical-align: middle;
  }

  &.bp-btn-default {
    padding: 17px 27px;
    background-color: #000;
    border: 1px solid #000000;
    //opacity: 0.7;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;

    &.bp-btn-link {
      background-color: initial;
      color: #000;
    }

    &.bp-btn-xl {
      padding: 1.35em 1.5em;
      font-size: 18px;
      line-height: 1.2;
      font-weight: 400;
      letter-spacing: 0;
      text-transform: uppercase;
    }

    &.bp-btn-sm {
      padding: 0.35em 0.5em;
      font-size: 16px;
      line-height: 1.1;
    }

    &:hover {
      opacity: 1;
      border: 1px solid #000000;
      background-color: #fff;
      color: #000;
    }
  }

  &.bp-btn-outline-default {
    border: 1px solid #000000;
    background-color: #fff;
    color: #000000;

    &.bp-btn-xl {
      padding: 1.35em 1.5em;
      font-size: 18px;
      line-height: 1.2;
      font-weight: 400;
      letter-spacing: 0;
      text-transform: uppercase;
    }

    &.bp-btn-sm {
      padding: 0.35em 0.5em;
      font-size: 16px;
      line-height: 1.1;
    }

    &:hover {
      background-color: #000000;
      color: #fff;
    }
  }

  &.bp-btn-primal {
    padding: 17px 27px;
    background-color: #109ab6;
    opacity: 0.7;
    color: #fff;
    font-weight: 400;
    line-height: 22px;
    text-transform: uppercase;

    &:hover {
      opacity: 1;
    }

    &.bp-btn-link {
      background-color: initial;
      color: #109ab6;
    }
  }

  &.bp-btn-outline-primal {
    border: 1px solid #00157b;
    color: #00157b;
    background-color: #fff;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: 0;

    &:hover {
      background-color: #00157b;
      color: #fff;
    }

    &.bp-btn-xl {
      padding: 17px 7px;
      text-transform: uppercase;
    }

    &.bp-btn-sm {
      padding: 0.35em 0.5em;
      font-size: 16px;
      line-height: 1.1;
    }
  }

  &.bp-btn-login {
    background: $orange06;
    color: #fff;
    border: 1px solid $orange06;

    &:hover {
      background: $orange;
    }
  }

  &.bp-btn-register {
    background-color: $dGray06;
    border: 1px solid $dGray06;
    color: #fff;

    &:hover {
      background-color: $dGray;
    }
  }

  &.bp-btn-black {
    height: 72px;
    color: #fff;
    background-color: #000000;
    width: 100%;
    font-size: 18px;
    font-weight: 300;
    text-transform: uppercase;
  }

  &.bp-btn-download {
    background: transparent;
    border: 1px solid $gray;
    text-transform: uppercase;
    height: 65px;
    max-width: 308px;
    min-width: 308px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 45px;
    padding-left: 5px;
    color: #1f3042;
    font-size: 20px;
    font-weight: 400;
    position: relative;

    &::after {
      content: "";
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='28' viewBox='0 0 21 28'%3E%3Cdefs%3E%3Cstyle%3E.a%7Bfill:%23424242;%7D%3C/style%3E%3C/defs%3E%3Cg transform='translate(-69 -675)'%3E%3Cpath class='a' d='M80.853,687.646a.5.5,0,0,0-.707.707l4.5,4.5a.5.5,0,0,0,.707,0l4.5-4.5a.5.5,0,0,0-.707-.707L85.5,691.293V675.5a.5.5,0,0,0-1,0v15.793Z' transform='translate(-5.5)'/%3E%3Cpath class='a' d='M83.5,691a.5.5,0,0,0,0,1H89v18H70V692h5.5a.5.5,0,0,0,0-1H69v20H90V691Z' transform='translate(0 -8)'/%3E%3C/g%3E%3C/svg%3E");
      height: 28px;
      width: 21px;
      background-repeat: no-repeat;
      background-position: center;
      position: absolute;
      right: 15px;
    }

    &:hover {
      background: $gray;
      border: 1px solid $gray;
      color: #fff;
      text-decoration: none;

      &::after {
        filter: invert(100%);
      }
    }
  }

  &.bp-btn-search {
    background-color: initial;

    &::after {
      content: "";
      display: inline-block;
      height: 23px;
      width: 23px;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 21 21'%3E%3Cpath d='M19.057 20.217l-5.07-5.07 1.259-1.259 5.07 5.07a1.409 1.409 0 0 1-1.26 1.259zM8.009 15.305c-4.023 0-7.296-3.273-7.296-7.297C.713 3.985 3.986.712 8.009.712c4.024 0 7.297 3.273 7.297 7.296 0 4.024-3.273 7.297-7.297 7.297zm7.22-2.423l-.922.93-.396-.4a7.98 7.98 0 0 0 2.104-5.404C16.015 3.592 12.424 0 8.008 0 3.592 0 0 3.592 0 8.008c0 4.417 3.593 8.009 8.009 8.009a7.98 7.98 0 0 0 5.403-2.103l.4.4-.832.865L18.77 21h.147C20.084 21 21 19.985 21 18.818v-.148z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: center;
      background-size: cover;
      position: relative;
    }
  }

  &.bp-btn-border {
    background-color: #ffff;
    color: #109ab6;
    border: 1px solid #109ab6;

    &:hover {
      background-color: #109ab6;
      color: #fff;
    }
  }

  &.bp-btn-icon {
    display: flex;
    gap: .5rem;
    border: 1px solid $black;
  }

  &.bp-btn-alert {
    background: $red;
    color: $white;
  }

  &.bp-btn-stretch {
    align-self: stretch;
  }

  &.bp-btn-loader {
    position: relative;

    &::after {
      content: "";
      display: inline-block;
      border-radius: 50%;
      animation: spin 2s linear infinite;
      position: absolute;
      right: 5%;

      width: 10px;
      height: 10px;
      top: 10%;
      border: 2px solid var(--main-bg-color, #003f91);
      border-top: 2px solid hsla(0, 0%, 100%, 0);
    }
  }

  &.bp-btn-sm {
    padding: 0.35em 0.5em;
    font-size: 16px;
    line-height: 1.1;
  }

  &[disabled],
  &.bp-disabled {
    opacity: 0.6;
    pointer-events: none;
  }
}

@media (max-width: 991px) {
  .bp-btn {
    &.bp-btn-default {
      &.bp-btn-xl {
        padding: 0.35em 1em;
      }
    }

    &.bp-btn-outline-default {
      &.bp-btn-xl {
        padding: 0.35em 1em;
      }
    }

    &.bp-btn-outline-primal {
      &.bp-btn-xl {
        padding: 0.35em 1em;
      }
    }
  }

  .bp-modal {
    &.modal {
      .modal__container {
        &.modal__container-2 {
          padding: 30px;
        }
      }
    }
  }
}
