.input {
  display: inline-block;
  vertical-align: middle;
  position: relative;
}

.form-horizontal {
  .input {
    display: block;
    width: 100%;
  }
}

.input-field {
  &[readonly] {
    cursor: pointer;
    background: $brand-pure;
    box-shadow: none;
  }

  &[disabled] {
    cursor: not-allowed;
    background: $input-bg-disabled;

    + .input-addon {
      cursor: not-allowed;
    }
  }
}

.input-field-addon {
  padding-right: 0.75rem * 2 + 0.5;
}

.input-pill {
  border-radius: 10rem;
}

.input-addon {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 50%;
  z-index: 2;
  padding: 0 1px;
  transform: translateY(-50%);
  opacity: 0.8;

  &:hover {
    opacity: 1;
  }
}
