// Button styles.
.btn, .btn.form-control {
  border-radius: rem-calc(8);
  padding: rem-calc(12);
  font-size: 1rem;
  line-height: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0px 5px 4px -4px rgba(0, 0, 0, 0.02), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
  &:hover,
  &:focus {
    text-decoration: underline;
  }
  &-medium {
    padding: rem-calc(10);
  }
  &-small {
    padding: rem-calc(6);
  }
  &-default {
    border: 1px solid $card-border-color;
    background: $white;
    &:hover,
    &:focus {
      border: 1px solid $card-border-dark;
    }
    &:focus {
      box-shadow: 0px 0px 0px 3px rgba(86, 97, 129, 0.08);
    }
  }
  &-primary {
    background: $primary;
    color: $white;
    border-color: $primary;
    &:hover,
    &:focus {
      background: $primary-hover;
      color: $white;
      border-color: $primary-hover;
    }
  }
  &-secondary {
    background: $secondary;
    color: $white;
    border-color: $secondary;
    &:hover,
    &:focus {
      background: $secondary-hover;
      color: $white;
      border-color: $secondary-hover;
    }
  }
  &-outlined {
    background: $white;
    color: $text-primary;
    border-color: $secondary;
    border: 1px solid var(--border-light, #E7E8E9);
    &:hover,
    &:focus {
      background: $secondary-contrast;
      border: 1px solid var(--border-dark, #D9DBDD);
      color: $text-primary;
    }
  }
  &.form-control {
    width: auto;
    display: inline-block;
    margin-right: $card-spacing;
  }
  svg.svg-inline--fa {
    margin-right: rem-calc(10);
  }
}

.btn-outline {
  &-primary {
    color: $primary;
    border-color: $primary;
    &:hover,
    &:focus {
      background: $primary;
      color: $white;
      border-color: $primary;
    }
  }
  &-secondary {
    color: $secondary;
    border-color: $secondary;
    &:hover,
    &:focus {
      background: $secondary;
      color: $white;
      border-color: $secondary;
    }
  }
}

.icon-link {
  visibility: collapse;
  width: rem-calc(20);
  height: rem-calc(25);
  display: block;
  svg {
    visibility: visible;
    width: rem-calc(20);
    height: rem-calc(25);
  }
}

.button-align {
  &-inline {
    .field {
      display: flex;
      .field__item {
        margin-right: rem-calc(15);
      }
    }
  }
  &-stacked {
    .field {
      display: flex;
      flex-direction: column;
      .field__item {
        margin-bottom: rem-calc(15);
      }
    }
  }
}